From: bert hubert <ahu@ds9a.nl>
To: Andrew Morton <akpm@osdl.org>
Cc: Peter Chubb <peterc@gelato.unsw.edu.au>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] 2.6.0-test4 -- add context switch counters
Date: Wed, 27 Aug 2003 16:41:01 +0200 [thread overview]
Message-ID: <20030827144101.GA31458@outpost.ds9a.nl> (raw)
In-Reply-To: <20030826181807.1edb8c48.akpm@osdl.org>
On Tue, Aug 26, 2003 at 06:18:07PM -0700, Andrew Morton wrote:
> > always zero. The appended patch adds fields to struct task_struct to
> > count context switches, and adds code to do the counting.
> OK... Why is this useful? A bit of googling doesn't show much interest in
> it.
I'm unaware of the cost of accounting this, but I for one have had
occasions where my system was reporting 20kcs, and I had no clue which
process was causing it. After a while I learned that linuxthreads on SMP can
cause this.
> What apps should be reporting this info? /usr/bin/time?
/proc/$$/stat would also be nice.
Thanks.
--
http://www.PowerDNS.com Open source, database driven DNS Software
http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
next prev parent reply other threads:[~2003-08-27 14:41 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-27 0:57 Peter Chubb
2003-08-27 1:18 ` Andrew Morton
2003-08-27 1:29 ` Mike Fedyk
2003-08-27 1:52 ` Peter Chubb
2003-08-27 7:16 ` William Lee Irwin III
2003-08-27 7:39 ` Peter Chubb
2003-08-27 7:51 ` William Lee Irwin III
2003-08-28 16:55 ` Mike Fedyk
2003-08-28 17:07 ` William Lee Irwin III
2003-08-28 17:09 ` William Lee Irwin III
2003-08-28 17:48 ` Mike Fedyk
2003-08-27 8:10 ` William Lee Irwin III
2003-08-27 1:50 ` Peter Chubb
2003-08-27 7:26 ` William Lee Irwin III
2003-11-18 1:18 ` William Lee Irwin III
2003-08-27 14:41 ` bert hubert [this message]
2003-08-27 6:54 ` William Lee Irwin III
2003-08-27 15:52 ` Larry McVoy
2003-08-27 16:01 ` William Lee Irwin III
2003-08-27 16:09 ` Larry McVoy
2003-08-27 17:57 ` William Lee Irwin III
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=20030827144101.GA31458@outpost.ds9a.nl \
--to=ahu@ds9a.nl \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peterc@gelato.unsw.edu.au \
/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®