public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* another war story script
@ 2007-05-11 19:37 Frank Ch. Eigler
  2007-05-11 20:21 ` Jim Keniston
  2007-05-16 16:54 ` Mike Mason
  0 siblings, 2 replies; 4+ messages in thread
From: Frank Ch. Eigler @ 2007-05-11 19:37 UTC (permalink / raw)
  To: systemtap

Hi -

http://sources.redhat.com/systemtap/wiki/WSthreadCPUshare

- FChE

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: another war story script
  2007-05-11 19:37 another war story script Frank Ch. Eigler
@ 2007-05-11 20:21 ` Jim Keniston
  2007-05-11 20:24   ` Frank Ch. Eigler
  2007-05-16 16:54 ` Mike Mason
  1 sibling, 1 reply; 4+ messages in thread
From: Jim Keniston @ 2007-05-11 20:21 UTC (permalink / raw)
  To: Frank Ch. Eigler; +Cc: systemtap

On Fri, 2007-05-11 at 15:37 -0400, Frank Ch. Eigler wrote:
> Hi -
> 
> http://sources.redhat.com/systemtap/wiki/WSthreadCPUshare
> 
> - FChE

This is neat.  One observation: The use of the name "tids" for the array
of per-task total-ticks was confusing -- especially given the
declarations

global uticks, kticks, ticks

global tids

which suggest that uticks, kticks, ticks are one sort of animal and tids
is a different sort.

Jim

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: another war story script
  2007-05-11 20:21 ` Jim Keniston
@ 2007-05-11 20:24   ` Frank Ch. Eigler
  0 siblings, 0 replies; 4+ messages in thread
From: Frank Ch. Eigler @ 2007-05-11 20:24 UTC (permalink / raw)
  To: Jim Keniston; +Cc: systemtap

Hi -

> [..]
> global uticks, kticks, ticks
> global tids
> which suggest that uticks, kticks, ticks are one sort of animal and tids
> is a different sort.

Yeah, "tids" could be "total-ticks" or somesuch.  It *is* a different
sort of animal because tids is filled and emptied entirely during the
reporting function.

- FChE

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: another war story script
  2007-05-11 19:37 another war story script Frank Ch. Eigler
  2007-05-11 20:21 ` Jim Keniston
@ 2007-05-16 16:54 ` Mike Mason
  1 sibling, 0 replies; 4+ messages in thread
From: Mike Mason @ 2007-05-16 16:54 UTC (permalink / raw)
  To: Frank Ch. Eigler; +Cc: systemtap

Interesting... I haven't paid much attention to timer.profile, but now see how it can be useful.

I'm probably missing something, but isn't this script essentially doing the same thing as the time accounting done via utime and stime in task_struct?  Does it account for time that isn't reflected in utime and stime?

Mike

Frank Ch. Eigler wrote:
> Hi -
> 
> http://sources.redhat.com/systemtap/wiki/WSthreadCPUshare
> 
> - FChE

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-05-16 16:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-11 19:37 another war story script Frank Ch. Eigler
2007-05-11 20:21 ` Jim Keniston
2007-05-11 20:24   ` Frank Ch. Eigler
2007-05-16 16:54 ` Mike Mason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).