From: Thomas Gleixner <tglx@linutronix.de>
To: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: linux-kernel@vger.kernel.org,
Rob van der Heij <rvdheij@gmail.com>,
Heiko Carstens <heiko.carstens@de.ibm.com>,
Ingo Molnar <mingo@elte.hu>, john stultz <johnstul@us.ibm.com>
Subject: Re: [patch 2/2] keep on ticking if oprofile is active
Date: Thu, 28 May 2009 22:29:38 +0200 (CEST) [thread overview]
Message-ID: <alpine.LFD.2.00.0905282220400.3397@localhost.localdomain> (raw)
In-Reply-To: <20090528150502.305840931@de.ibm.com>
On Thu, 28 May 2009, Martin Schwidefsky wrote:
> From: Martin Schwidefsky <schwidefsky@de.ibm.com>
>
> On a NOHZ system with oprofile enabled the timer tick should not be
> stopped when a cpu goes idle. Oprofile needs the pt_regs structure
> of the interrupt and allocates memory in the ring buffer for each
> sample. Current a maximum of 1 tick is accounted with oprofile if a
> cpu sleeps for a longer period of time. This does bad things to the
> percentages in the oprofile output. To postpone the oprofile tick to
> tick_nohz_restart_sched_tick analog to the in kernel profiler is not
> possible as there is no pt_regs structure in the context the
> tick_nohz_restart_sched_tick function is called and it is not a good
> idea to create hundreds of samples at once.
Sigh. That's stupid.
OTOH, thinking more about the patch itself it might be even useful
for things aside oprofile. Runtime switching from and to nohz mode
for debugging or evaluation purposes comes to my mind. That would
need some sysfs interface, but that's not too hard to do.
So yeah, I think we should satisfy oprofile needs and utilize it further.
Thanks,
tglx
next prev parent reply other threads:[~2009-05-28 20:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-28 15:04 [patch 0/2] NOHZ vs. profile/oprofile Martin Schwidefsky
2009-05-28 15:04 ` [patch 1/2] idle profile hits with NOHZ Martin Schwidefsky
2009-05-28 20:19 ` Thomas Gleixner
2009-05-29 12:56 ` Martin Schwidefsky
2009-05-29 13:15 ` Thomas Gleixner
2009-05-28 15:04 ` [patch 2/2] keep on ticking if oprofile is active Martin Schwidefsky
2009-05-28 20:29 ` Thomas Gleixner [this message]
2009-05-29 12:57 ` Martin Schwidefsky
2009-05-29 13:14 ` Thomas Gleixner
2009-06-01 8:09 ` Andi Kleen
2009-06-01 10:22 ` Martin Schwidefsky
2009-06-03 15:22 [patch 0/2] NOHZ vs. profile/oprofile v2 Martin Schwidefsky
2009-06-03 15:22 ` [patch 2/2] keep on ticking if oprofile is active Martin Schwidefsky
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=alpine.LFD.2.00.0905282220400.3397@localhost.localdomain \
--to=tglx@linutronix.de \
--cc=heiko.carstens@de.ibm.com \
--cc=johnstul@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rvdheij@gmail.com \
--cc=schwidefsky@de.ibm.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
all inboxes | Powered by JetHome®