From: Peter Zijlstra <peterz@infradead.org>
To: Divyesh Shah <dpshah@google.com>
Cc: linux-kernel@vger.kernel.org, mingo@elte.hu, kenchen@google.com
Subject: Re: [PATCH][RESEND] Export per-tid and per-tgid cputime in nanoseconds.
Date: Mon, 01 Mar 2010 19:05:40 +0100 [thread overview]
Message-ID: <1267466740.1579.36.camel@laptop> (raw)
In-Reply-To: <af41c7c41003010744m54fc325bjccae0ff6965656eb@mail.gmail.com>
On Mon, 2010-03-01 at 07:44 -0800, Divyesh Shah wrote:
> On Sat, Feb 27, 2010 at 3:43 AM, Peter Zijlstra <peterz@infradead.org> wrote:
> >
> > On Fri, 2010-02-26 at 18:03 -0800, Divyesh Shah wrote:
> > > This can be used by applications to get finer granularity cputime usage on
> > > platforms that use timestamp counters or HPET.
> >
> > I guess the patch looks good, I'm just not sure what HPET got to do with
> > anything.. the scheduler certainly doesn't use HPET for timekeeping, its
> > terribly slow to read.
>
> Yes you're right. Please ignore the HPET comment.
>
> >
> > Also, it would be good to get some more justification than 'some
> > applications can use this', which is basically a truism for any patch
> > that adds a user interface.
>
> 1) This should be useful for a shared or virtualized environment where
> the shared management infrastructure needs to charge each application
> as accurately as possible for cpu usage.
> 2) An application that services different users and does some
> cpu-intensive work may want to measure cpu time spent for each user by
> the serving thread.
>
> I think applications like web servers, remote database servers, etc.
> fit into the second category.
>
> For units of work smaller than a jiffy, this really helps as some
> threads could potentially hide from the jiffy based accounting.
>
> Please let me know if you want me to send the patch again with the
> corrected description and added justification.
Its all should and may, anything concrete?
Also, doesn't muck like schedstat, task_delay_accounting, cpuacct-cgroup
or some other stuff expose this number already?
next prev parent reply other threads:[~2010-03-01 18:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-27 2:03 Divyesh Shah
2010-02-27 11:43 ` Peter Zijlstra
2010-03-01 15:44 ` Divyesh Shah
2010-03-01 18:05 ` Peter Zijlstra [this message]
2010-03-22 18:57 ` Divyesh Shah
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=1267466740.1579.36.camel@laptop \
--to=peterz@infradead.org \
--cc=dpshah@google.com \
--cc=kenchen@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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®