mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Peter Chubb <peterc@gelato.unsw.edu.au>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Microstate Accounting for 2.6.11
Date: Thu, 10 Mar 2005 20:08:08 -0800	[thread overview]
Message-ID: <20050310200808.306caf98.akpm@osdl.org> (raw)
In-Reply-To: <16945.5058.251259.828855@berry.gelato.unsw.EDU.AU>

Peter Chubb <peterc@gelato.unsw.edu.au> wrote:
>
>  Timing data on threads at present is pretty crude:  when the timer
>  interrupt occurs, a tick is added to either system time or user time
>  for the currently running thread.  Thus in an unpacthed kernel one can
>  distinguish three timed states:  On-cpu in userspace, on-cpu in system
>  space, and not running.
> 
>  The actual number of states is much larger.  A thread can be on a
>  runqueue or  the expired queue (i.e., ready to run but not running),
>  sleeping on a semaphore or on a futex, having its time stolen to
>  service an interrupt, etc., etc.
> 
>  This patch adds timers per-state to each struct task_struct, so that
>  time in all these states can be tracked.  This patch contains the core
>  code do the timing, and to initialise the timers.  Subsequent patches
>  enable the code (by adding Kconfig options) and add hooks to track
>  state changes.

Why does the kernel need this feature?

Have you any numbers on the overhead?

The preempt_disable() in sys_msa() seems odd.

  reply	other threads:[~2005-03-11  4:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-11  3:42 Peter Chubb
2005-03-11  4:08 ` Andrew Morton [this message]
2005-03-11  5:01   ` Peter Chubb
2005-03-11  7:14   ` Andi Kleen
2005-03-11  8:39     ` Peter Chubb

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=20050310200808.306caf98.akpm@osdl.org \
    --to=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®