mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: J K Rai <jk.anurag@yahoo.com>
Cc: lkml <linux-kernel@vger.kernel.org>,
	Peter Zijlstra <a.p.zijlstra@chello.nl>,
	Ingo Molnar <mingo@elte.hu>
Subject: Re: Instantaneous snapshot of CPU schedule
Date: Tue, 27 Oct 2009 10:36:32 +0000	[thread overview]
Message-ID: <20091027103632.2b6db019@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <256042.70547.qm@web94710.mail.in2.yahoo.com>

On Tue, 27 Oct 2009 13:14:34 +0530 (IST)
J K Rai <jk.anurag@yahoo.com> wrote:

> Hello
> 
> Is there any utility using which we can take current (instantaneous) snapshot of process schedule on the linux based system from user land. Like use a system call or command to know what is running on each of the cpus 0..n-1 (assuming n cpus in the system). Output could be like tuple (pid, cpu_no).
> 
> If such utility does not exist then kindly throw some light / ideas so that it could be implemented.

I'm not sure it would be terribly useful. You know what is running on at
least one of the processors - your snapshot tool. So for uniprocessor its
100% useless, for dual processor 50% useless.

It would also be incredibly expensive to serialize everything on the
system just to take a measurement.

  reply	other threads:[~2009-10-27 10:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-27  7:44 J K Rai
2009-10-27 10:36 ` Alan Cox [this message]
2009-11-08  9:48 ` Ingo Molnar

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=20091027103632.2b6db019@lxorguk.ukuu.org.uk \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=a.p.zijlstra@chello.nl \
    --cc=jk.anurag@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /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®