From: chrubis@suse.cz
To: Jan Stancek <jstancek@redhat.com>
Cc: ltp-list@lists.sourceforge.net, Drew Jones <drjones@redhat.com>,
Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Subject: Re: [LTP] [PATCH] getrusage/getrusage04.c: Fix factor_nr = 1 -> factor_nr = 5
Date: Tue, 15 Oct 2013 16:39:27 +0200 [thread overview]
Message-ID: <20131015143927.GB27433@rei> (raw)
In-Reply-To: <2139370019.7163656.1381846796437.JavaMail.root@redhat.com>
Hi!
> > The problem with the test is that it tries to assert that granurality of
> > gerusage CPU time accounting is as good as possible. The granularity
> > itself depends on kernel config options, mainly on CONFIG_HZ. But as the
> > kernel compilation options are not exported (by running kernel) in any
> > reliable way the code I've added tries to guess them by side channel
> > (the CLOCK_REALTIME_COARSE resolution). If CLOCK_REALTIME_COARSE is not
> > supported it goes with 4ms which should correspond with CONFIG_HZ=250.
> >
> > Now the accuracy on xen may be off for several reasons. It can have
> > CONFIG_HZ=100. Or xen may not be able to account virtual CPU time with
> > the same accuracy as on the real CPU...
>
> Drew (from xen team) mentioned something along these lines as well.
>
> Do we have some simple way to detect that test is running on xen (dom0/domU),
> so we could end test with TCONF in that case?
I'm not aware of any. But feel free to add a function into LTP lib/.
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
prev parent reply other threads:[~2013-10-15 14:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-10 5:56 [LTP] [PATCH] getrusage/getrusage04.c: Fix factor_nr = 1 -> factor_nr = 5 曾令钢
2013-10-10 7:17 ` Jan Stancek
2013-10-10 8:16 ` [LTP] 答复: " 曾令钢
2013-10-11 10:19 ` [LTP] " Zeng Linggang
2013-10-11 10:35 ` Jan Stancek
2013-10-14 3:37 ` Zeng Linggang
2013-10-15 11:50 ` Jan Stancek
2013-10-15 13:55 ` chrubis
[not found] ` <2139370019.7163656.1381846796437.JavaMail.root@redhat.com>
2013-10-15 14:39 ` chrubis [this message]
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=20131015143927.GB27433@rei \
--to=chrubis@suse.cz \
--cc=drjones@redhat.com \
--cc=jstancek@redhat.com \
--cc=ltp-list@lists.sourceforge.net \
--cc=zenglg.jy@cn.fujitsu.com \
/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