[PATCH] Speedup nptl/tst-rwlock19.
Stefan Liebler
stli@linux.ibm.com
Thu Sep 12 12:16:00 GMT 2019
Hi,
the test creates 15 threads which are trying 5000x to pthread_rwlock_rdlock
a modified lock where the number of readers is set to max - 5. If locked
successfully, it sleeps for 1ms.
The test succeeds if the lock was rdlock'ed successfully for at least
one time and it has failed at least once with EAGAIN and the
number of readers needs to be max - 5 again after all threads have joined.
The test is currently running for 5 seconds. Thus this patch reduces
the READTRIES from 5000 to 100 and is increasing the DELAY from 1ms to 5ms.
Then the test runs for roughly 0.5 seconds.
Bye,
Stefan
ChangeLog:
* nptl/tst-rwlock19.c (READTRIES): Reduce to 100.
(DELAY) Increase to 5000000.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20190912_nptl_tstrwlock19.patch
Type: text/x-patch
Size: 1302 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20190912/65b7696c/attachment.bin>
More information about the Libc-alpha
mailing list