This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[RFC] Test time/tst-cpuclock1.c intermitent failures
- From: "Lucas A. M. Magalhaes" <lamm at linux dot ibm dot com>
- To: GlibC Alpha List <libc-alpha at sourceware dot org>
- Date: Fri, 24 Jan 2020 09:57:39 -0300
- Subject: [RFC] Test time/tst-cpuclock1.c intermitent failures
The time/tst-cpuclock1.c test fails if running with a high "nice" value
and there are other loads competing for CPU.
First of all, I fail to understand the purpose of this test. It seems
to me that it's a realtime test as It expects times that are reasonable
for realtime applications. Indeed it was moved from rt/ to time/. So,
What is this testing? And why was it moved to time/?
Following, In my attempted to fix it I tried to amortize the fail rate.
So, I tried running the sensible code multiple times and look for 70%
success rate. However this completely failed as well. In my first test
with some CPU load it failed. I will appreciate suggestions of
solution.