From: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [PATCH 1/9] ia64: VIRT_CPU_ACCOUNTING (accurate cpu time accounting)
Date: Fri, 02 Nov 2007 03:15:32 +0000 [thread overview]
Message-ID: <472A9654.4090908@jp.fujitsu.com> (raw)
In-Reply-To: <4714BDC7.1070702@jp.fujitsu.com>
Thank you for your nice words.
Tony Luck wrote:
> Overall impression: nice! There have always been some pathalogical
> workloads that have confused the scheduler by executing synchronously
> with the timer tick ... this should end their tricks.
>
> A couple of comments:
>
>> + Select this option to enable more accurate task and CPU time
>> + accounting. This is done by reading a CPU counter on each
>> + kernel entry and exit and on transitions within the kernel
>> + between system, softirq and hardirq state, so there is a
>> + small performance impact.
>
> I haven't tried any macro-level benchmarks, but on a micro-benchmark to
> measure system call overhead I see an additional 19-20 cycles in the
> cached case. This doesn't look like a "small" performance impact (the
> execution time for a syscall in my benchmark is only ~61 cycles). But
> I'd like to see some real benchmarks to see whether the micro-level
> problem is measureable at the macro scale.
Now I'm preparing benchmarks...
I suppose there is still room for improvement(i.e. Peter's hint).
>> -- Adding ACCOUNT_SYS_ENTER adds around 40 cycles to the system
>> call path. If you wanted, you could move reading ITC earlier (it
>> takes up to 36 cycles), and overlap with other work.
The impact of this option would not be 0, however it can be said that
this feature is quite useful enough to be default option of some powerpc
and s390 where that already have its implementation.
(ex.
arch/powerpc/configs/ps3_defconfig:18:CONFIG_VIRT_CPU_ACCOUNTING=y)
> One warning generated by this patch:
> kernel/posix-cpu-timers.c:41: warning: passing arg 1 of
> `timespec_to_cputime' discards qualifiers from pointer target type
There was a dropped "const", now fixed.
Thanks,
H.Seto
next prev parent reply other threads:[~2007-11-02 3:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-16 13:33 [PATCH 1/9] ia64: VIRT_CPU_ACCOUNTING (accurate cpu time accounting) Hidetoshi Seto
2007-11-01 20:29 ` Tony Luck
2007-11-02 3:15 ` Hidetoshi Seto [this message]
2007-11-07 6:59 ` Luck, Tony
2007-11-07 9:46 ` Kenji Kaneshige
2007-11-19 4:34 ` Simon Horman
2007-11-19 5:17 ` Hidetoshi Seto
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=472A9654.4090908@jp.fujitsu.com \
--to=seto.hidetoshi@jp.fujitsu.com \
--cc=linux-ia64@vger.kernel.org \
/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