[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?
[1]
https://lists.fedoraproject.org/archives/list/address@hidden/thread/PQD576JZLERFY6ROI3GF7UYXKZIRI33G/
Pavel
- Re: Test-lock hang (not 100% reproducible) on GNU/Linux,
Pavel Raiskup <=
- Re: Test-lock hang (not 100% reproducible) on GNU/Linux, Bruno Haible, 2017/01/02
- Re: Test-lock hang (not 100% reproducible) on GNU/Linux, Pavel Raiskup, 2017/01/02
- Re: Test-lock hang (not 100% reproducible) on GNU/Linux, Bruno Haible, 2017/01/03
- Re: Test-lock hang (not 100% reproducible) on GNU/Linux, Pavel Raiskup, 2017/01/04
- Re: Test-lock hang (not 100% reproducible) on GNU/Linux, Bruno Haible, 2017/01/04
- Re: Test-lock hang (not 100% reproducible) on GNU/Linux, Pádraig Brady, 2017/01/04
- Re: Test-lock hang (not 100% reproducible) on GNU/Linux, Bruno Haible, 2017/01/04
- Re: Test-lock hang (not 100% reproducible) on GNU/Linux, Pavel Raiskup, 2017/01/04