From: Jan Stancek <jstancek@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 2/2] syscalls/pselect: Add a zero latency constraint
Date: Fri, 11 Aug 2017 07:26:06 -0400 (EDT) [thread overview]
Message-ID: <1217268944.70548669.1502450766723.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <ad947ee0-ee2a-840a-b9ac-74170d0ec7f3@linaro.org>
----- Original Message -----
> On 10/08/2017 13:50, Jiri Jaburek wrote:
> > On 08/10/17 10:01, Daniel Lezcano wrote:
> >> The pselect_01 testcase works well on an x86 as it is a fast platform,
> >> with
> >> fast exit latency idle routine.
> >>
> >> However on ARM[64] the idle routine can take much more time, for example
> >> 1500us.
> >>
> >> The pselect fails on the ARM[64] platforms because of these slow exit
> >> latencies,
> >> the delay between the expected expiration and the observed one is not
> >> acceptable.
> >>
> >> The fix could be to increase the deviation on ARM64 but that wouldn't make
> >> sense as some platforms, for the same architecture, can have faster or
> >> different delays, hence we can potentially miss a bug.
> >>
> >> The simplest solution is to set the cpu_dma latency constraint to zero, so
> >> the
> >> idle driver will always choose the fastest idle state, thus fixing the
> >> issue
> >> above. The latency constraint will apply only for this test.
> >
> > I think a more generic LTP-wide solution could be made; there are more
> > tests that fail ie. on virtualized environments because of CPU over-
> > provisioning on the host (x86, s390, ppc, etc.)
>
> Not sure a latency constraint will fix the above.
We could detect bare-metal / (some [1]) virt and adjust threshold
for timer tests, but I'm assuming Daniel sees this on bare metal,
so this patch would be useful anyway.
[1] kvm/xen is easy to detect, lpars might be more tricky
Regards,
Jan
next prev parent reply other threads:[~2017-08-11 11:26 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-10 8:01 [LTP] [PATCH 1/2] ltp: Add the ability to specify the latency constraint Daniel Lezcano
2017-08-10 8:01 ` [LTP] [PATCH 2/2] syscalls/pselect: Add a zero " Daniel Lezcano
2017-08-10 11:50 ` Jiri Jaburek
2017-08-10 12:00 ` Daniel Lezcano
2017-08-11 11:26 ` Jan Stancek [this message]
2017-08-11 11:25 ` [LTP] [PATCH 1/2] ltp: Add the ability to specify the " Jan Stancek
2017-08-11 12:54 ` [LTP] [PATCH V2 " Daniel Lezcano
2017-08-11 12:54 ` [LTP] [PATCH V2 2/2] syscalls/pselect: Add a zero " Daniel Lezcano
2017-08-11 14:09 ` [LTP] [PATCH V2 1/2] ltp: Add the ability to specify the " Cyril Hrubis
2017-08-11 14:52 ` Daniel Lezcano
2017-08-11 15:28 ` Cyril Hrubis
2017-08-14 12:56 ` Daniel Lezcano
2017-08-14 13:33 ` Cyril Hrubis
2017-08-14 14:19 ` Daniel Lezcano
2017-08-14 14:36 ` Cyril Hrubis
2017-08-14 15:43 ` Daniel Lezcano
2017-08-15 11:06 ` Cyril Hrubis
2017-08-15 20:15 ` Daniel Lezcano
2017-08-17 13:50 ` Cyril Hrubis
2017-08-17 14:02 ` Daniel Lezcano
2017-08-17 15:00 ` [LTP] [PATCH V3] ltp: Add a zero latency constraint for the timer tests library Daniel Lezcano
2017-08-18 12:25 ` Cyril Hrubis
2017-12-12 14:48 ` Jan Stancek
2017-12-12 14:56 ` Daniel Lezcano
2017-12-12 15:04 ` Jan Stancek
2017-12-12 15:21 ` Daniel Lezcano
2017-12-13 17:00 ` Daniel Lezcano
2017-12-13 20:42 ` Jan Stancek
2018-02-01 22:52 ` Jan Stancek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1217268944.70548669.1502450766723.JavaMail.zimbra@redhat.com \
--to=jstancek@redhat.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox