Re: Proc entry to know task/thread sleep time
From: Andrew Morton
Date: Thu Apr 23 2009 - 01:13:24 EST
On Wed, 22 Apr 2009 12:41:45 -0700 "Venky Venkatesh (venky)" <venky@xxxxxxxxx> 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?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/