This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] nptl/tst-robust-fork: Increase timeout to 30 seconds.


On 05/18/2017 03:28 PM, Tulio Magno Quites Machado Filho wrote:
> Carlos O'Donell <carlos@redhat.com> writes:
> 
>> The default test timeout is 20 seconds.
>>
>> On certain x86_64 hardware I can see tst-robust-fork test take 22 seconds on average.
>>
>> This results in spurious failures.
>>
>> I suggest we increase the timeout to 25 seconds and add a note about this.
>>
>> If nobody objects I'll check this in at some point next week when I get a
>> free minute.
>>
>> I don't know if it's particularly useful to list the kernel version or
>> hardware under which the slow timing came from i.e. linux 4.10 on an older
>> i5-4690K.
>>
>> 2017-05-18  Carlos O'Donell  <carlos@redhat.com>
>>
>> 	* nptl/tst-robust-fork.c (TIMEOUT): Define.
> 
> I agree with this change.
> 
> I have already proposed another patch increasing it to 35s [1].
> IMO, 25 is too close to the time we both measured.
> 
> By the way, it isn't restricted to x86_64.  I've seen this on powerpc as well.
> 
> [1] https://patchwork.sourceware.org/patch/19174/
 
I agree with you.

I disagree with Florian on the basis that we need to do
_everything_ possible to have `make check` just work (tm)
so developers don't have to set TIMEOUTFACTOR for average
developer machines.

I'm OK with 35s. I'll raise it to 35s and simplify the
comment a bit.

v2
- Raise to 35s.

OK with this?

2017-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
	    Carlos O'Donell  <carlos@redhat.com>

	* nptl/tst-robust-fork.c (TIMEOUT): Set to 35.

Diff from v1:

diff --git a/nptl/tst-robust-fork.c b/nptl/tst-robust-fork.c
index d2c8a5a..c3a10da 100644
--- a/nptl/tst-robust-fork.c
+++ b/nptl/tst-robust-fork.c
@@ -25,11 +25,10 @@
 #include <support/xunistd.h>
 #include <sys/mman.h>
 
-/* This test can take as long as 22 seconds on some x86_64 hardware,
-   so increase the timeout to 25 seconds to allow it to pass.  More
-   than half of the time is spent in page_fault() in the kernel and
-   do_lookup_x() in ld.so.  */
-#define TIMEOUT 25
+/* This test takes as long as 20-30s on average developer hardware
+   so we increase it to 35s. More than half of the time is spent
+   in the kernel page_fault() or ld.so's do_lookup_x().  */
+#define TIMEOUT 35
 
 /* Data shared between processes. */
 struct shared
---

-- 
Cheers,
Carlos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]