From: Andrew Morton <akpm@linux-foundation.org>
To: "J.C. Pizarro" <jcpiza@gmail.com>
Cc: "Rik van Riel" <riel@redhat.com>,
"Mike Galbraith" <efault@gmx.de>,
LKML <linux-kernel@vger.kernel.org>,
"Linus Torvalds" <torvalds@linux-foundation.org>
Subject: Re: Please, put 64-bit counter per task and incr.by.one each ctxt switch.
Date: Mon, 25 Feb 2008 12:34:39 -0800 [thread overview]
Message-ID: <20080225123439.90645f2f.akpm@linux-foundation.org> (raw)
In-Reply-To: <998d0e4a0802240512t859c5a1y3c30bd401530a43@mail.gmail.com>
On Sun, 24 Feb 2008 14:12:47 +0100 "J.C. Pizarro" <jcpiza@gmail.com> wrote:
> It's statistic, yes, but it's a very important parameter for the CPU-scheduler.
> The CPU-scheduler will know the number of context switches of each task
> before of to take a blind decision into infinitum!.
We already have these:
unsigned long nvcsw, nivcsw; /* context switch counts */
in the task_struct.
next prev parent reply other threads:[~2008-02-25 20:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-24 3:08 J.C. Pizarro
2008-02-24 3:17 ` Rik van Riel
2008-02-24 4:08 ` J.C. Pizarro
2008-02-24 4:26 ` Rik van Riel
2008-02-24 13:12 ` J.C. Pizarro
2008-02-24 17:53 ` Mike Galbraith
2008-02-25 20:34 ` Andrew Morton [this message]
2008-02-26 13:20 ` J.C. Pizarro
2008-02-26 13:41 ` Alexey Dobriyan
2008-02-24 5:08 ` Mike Galbraith
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=20080225123439.90645f2f.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=efault@gmx.de \
--cc=jcpiza@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=riel@redhat.com \
--cc=torvalds@linux-foundation.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
Powered by JetHome