mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: "Venky Venkatesh (venky)" <venky@cisco.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: Proc entry to know task/thread sleep time
Date: Wed, 22 Apr 2009 22:11:41 -0700	[thread overview]
Message-ID: <20090422221141.d57a3dc0.akpm@linux-foundation.org> (raw)
In-Reply-To: <9E88C8678BF34240A8C61D4078A3D251F7940F@xmb-sjc-23e.amer.cisco.com>

On Wed, 22 Apr 2009 12:41:45 -0700 "Venky Venkatesh (venky)" <venky@cisco.com> wrote:

>  
> Hi,
> I am looking for any proc entry/tool which would provide the time for
> which a thread/task has been sleeping. The use of this is the following:
> I have a multi-threaded application and I am trying to determine the
> extent of multi-processing between threads i.e. determine how much time
> threads spend on blocking for resources/each other Vs doing productive
> work. 
> If the above is available, is there an additional info on
> time-waiting-on-io (i.e. a subset of the above sleep time) that is also
> available thru a proc entry/tool? This would find use in a server like
> application where if all the current threads are spending most of their
> time waiting on I/O then can add more threads.
> In general if there is a proc entry which accounts for time spent by a
> thread in various states that could also help.
> 	 

Do Documentation/accounting/delay-accounting.txt and
Documentation/accounting/getdelays.c suit?

      reply	other threads:[~2009-04-23  5:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-22 19:41 Venky Venkatesh (venky)
2009-04-23  5:11 ` Andrew Morton [this message]

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=20090422221141.d57a3dc0.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=venky@cisco.com \
    /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®