[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Test-lock hang (not 100% reproducible) on GNU/Linux

From: Pavel Raiskup
Subject: Re: Test-lock hang (not 100% reproducible) on GNU/Linux
Date: Mon, 02 Jan 2017 15:18:28 +0100
User-agent: KMail/5.3.3 (Linux/4.8.15-300.fc25.x86_64; KDE/5.27.0; x86_64; ; )

On Saturday, December 24, 2016 6:52:07 PM CET Bruno Haible wrote:
> Wow, a 30x speed increase by using a lock instead of 'volatile'!
> Thanks for the testing. I cleaned up the patch to do less
> code duplication and pushed it.

Thanks, that's nice speedup!  And sorry for the delay..

I still see infinite hang on ppc64le (sometimes), as discussed in [1].  It
looks like starvation of writers in test_rwlock().

Could we set PTHREAD_RWLOCK_PREFER_WRITER_NP (in test-lock.c) to avoid
those issues?  One thing I'm afraid of is that writers could finish too
early.  Could we could artificially slow them down?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]