public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <ak@muc.de>
To: Andrew Morton <akpm@osdl.org>
Cc: mikpe@csd.uu.se, linux-kernel@vger.kernel.org
Subject: Re: [PATCH][1/6] perfctr-2.7.3 for 2.6.7-rc1-mm1: core
Date: Tue, 22 Jun 2004 12:21:01 +0200	[thread overview]
Message-ID: <m3pt7revw2.fsf@averell.firstfloor.org> (raw)
In-Reply-To: <29Piu-4H4-27@gated-at.bofh.it> (Andrew Morton's message of "Tue, 22 Jun 2004 11:00:14 +0200")


[few points I just noticed]

Andrew Morton <akpm@osdl.org> writes:
>
> - a general overview of how the whole thing operates (what's
>   PERFCTR_INTERRUPT_SUPPORT do?  What interrupts are generated?  Describe

The hardware can usually generate an interrupt when the performance counter
under or overflows. oprofile uses this too.


>   the backpatching design, etc).  What is "forbidden" on p4 siblings, and

p4 siblings share only a single set of performance counters, so you must
keep them synchronized.

>
> - <canofworms>cannot cpus_copy_to_user() share code with
>   sys_sched_getaffinity()?</canofworms>

The sched_getaffinity code for that is broken, I'm about to submit
a patch for it.  I haven't looked at that one.

>
> - Is there much point in making CONFIG_PERFCTR_VIRTUAL optional?

It slows down an important fast path (context switch) 
But it would be better to use some back patching design like kernel hooks
to keep the cost for the common case (no perfctr getting switched) 
low.  If that common case can be kept at a "no checks at all" level
then it's good. That would be best for distribution kernels too.

-Andi


       reply	other threads:[~2004-06-22 10:21 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <223si-461-9@gated-at.bofh.it>
     [not found] ` <29Piu-4H4-27@gated-at.bofh.it>
2004-06-22 10:21   ` Andi Kleen [this message]
2004-05-31 22:18 [PATCH][1/6] perfctr-2.7.3 for 2.6.7-rc1-mm1: core Mikael Pettersson
2004-06-22  8:53 ` Andrew Morton
2004-06-22  8:59   ` Christoph Hellwig
2004-06-22  9:04     ` Andrew Morton
2004-06-22  9:12       ` Christoph Hellwig
2004-06-22  9:14         ` Andrew Morton
2004-06-22  9:18           ` Christoph Hellwig
2004-06-22  9:20             ` Andrew Morton
2004-06-22 14:38               ` Mikael Pettersson
2004-06-22 17:20                 ` Christoph Hellwig
2004-06-22 20:35                   ` Mikael Pettersson
2004-06-22 13:47   ` Mikael Pettersson
2004-06-22 19:18     ` Andrew Morton
2004-06-22 13:59   ` Mikael Pettersson
2004-06-22 19:22     ` Andrew Morton

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=m3pt7revw2.fsf@averell.firstfloor.org \
    --to=ak@muc.de \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mikpe@csd.uu.se \
    /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