public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
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 15:55:33 +0200	[thread overview]
Message-ID: <20131015135532.GC25867@rei> (raw)
In-Reply-To: <1096964421.7014139.1381837841727.JavaMail.root@redhat.com>

Hi!
> > When kernel is vmlinuz-2.6.18-371.el5xen, the case will fail.
> > But with vmlinuz-2.6.18-371.el5, it works well.
> 
> I'm seeing the same as you also with previous minor RHEL5 releases on dom0:
> 5.3 2.6.18-128.el5xen
> 5.6 2.6.18-238.el5xen
> 5.9 2.6.18-348.el5xen
> 5.10 2.6.18-371.el5xen
> 
> > Maybe the case is not suit for xen kernel.
> 
> It's possible, it doesn't look like regression to me so far.
> The systems are definitely not "slow" ones, and test can pass on bare-metal kernel. 

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...

-- 
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

  reply	other threads:[~2013-10-15 13:55 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 [this message]
     [not found]         ` <2139370019.7163656.1381846796437.JavaMail.root@redhat.com>
2013-10-15 14:39           ` chrubis

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=20131015135532.GC25867@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