public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* Integrate delay accounting with systemtap?
@ 2007-07-11  6:45 Ananth N Mavinakayanahalli
  2007-07-11 20:06 ` Mike Mason
  0 siblings, 1 reply; 7+ messages in thread
From: Ananth N Mavinakayanahalli @ 2007-07-11  6:45 UTC (permalink / raw)
  To: SystemTAP

Hi,

The delay accounting infrastructure has been part of the mainline kernel
for sometime now. From what I've heard from customer-facing people, it
is a great tool to determine where the performance bottlenecks are.

See Documentation/accounting/* for more information about this
infrastructure.

Combining this feature with the features SystemTap currently provides
would be a good thing. Would it therefore be possible to add support for
this infrastructure in SystemTap?

Ananth

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

* Re: Integrate delay accounting with systemtap?
  2007-07-11  6:45 Integrate delay accounting with systemtap? Ananth N Mavinakayanahalli
@ 2007-07-11 20:06 ` Mike Mason
  2007-07-12  8:32   ` Ananth N Mavinakayanahalli
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Mason @ 2007-07-11 20:06 UTC (permalink / raw)
  To: ananth; +Cc: SystemTAP

We can easily add functions to access the task_delay_info values in task_struct.  Would that be sufficient or are you thinking of something more than that?

Mike

Ananth N Mavinakayanahalli wrote:
> Hi,
> 
> The delay accounting infrastructure has been part of the mainline kernel
> for sometime now. From what I've heard from customer-facing people, it
> is a great tool to determine where the performance bottlenecks are.
> 
> See Documentation/accounting/* for more information about this
> infrastructure.
> 
> Combining this feature with the features SystemTap currently provides
> would be a good thing. Would it therefore be possible to add support for
> this infrastructure in SystemTap?
> 
> Ananth

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

* Re: Integrate delay accounting with systemtap?
  2007-07-11 20:06 ` Mike Mason
@ 2007-07-12  8:32   ` Ananth N Mavinakayanahalli
  2007-07-12 14:27     ` Frank Ch. Eigler
  0 siblings, 1 reply; 7+ messages in thread
From: Ananth N Mavinakayanahalli @ 2007-07-12  8:32 UTC (permalink / raw)
  To: Mike Mason; +Cc: SystemTAP

On Wed, Jul 11, 2007 at 11:03:25AM -0700, Mike Mason wrote:
> We can easily add functions to access the task_delay_info values in 
> task_struct.  Would that be sufficient or are you thinking of something 
> more than that?

We shouldn't be using any probes or functions in kernel for this
feature. Rather, SystemTap should be taught to listen to the netlink
socket where this information is available.

Ananth

> 
> Mike
> 
> Ananth N Mavinakayanahalli wrote:
> >Hi,
> >
> >The delay accounting infrastructure has been part of the mainline kernel
> >for sometime now. From what I've heard from customer-facing people, it
> >is a great tool to determine where the performance bottlenecks are.
> >
> >See Documentation/accounting/* for more information about this
> >infrastructure.
> >
> >Combining this feature with the features SystemTap currently provides
> >would be a good thing. Would it therefore be possible to add support for
> >this infrastructure in SystemTap?
> >
> >Ananth

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

* Re: Integrate delay accounting with systemtap?
  2007-07-12  8:32   ` Ananth N Mavinakayanahalli
@ 2007-07-12 14:27     ` Frank Ch. Eigler
  2007-07-12 14:34       ` Ananth N Mavinakayanahalli
  0 siblings, 1 reply; 7+ messages in thread
From: Frank Ch. Eigler @ 2007-07-12 14:27 UTC (permalink / raw)
  To: ananth; +Cc: Mike Mason, SystemTAP

Ananth N Mavinakayanahalli <ananth@in.ibm.com> writes:

> [...]  We shouldn't be using any probes or functions in kernel for
> this feature. Rather, SystemTap should be taught to listen to the
> netlink socket where this information is available.

What do you mean by "listen to the netlink socket"?  The netlink
widget is (roughly speaking) a way for user-space programs to run
kernel queries outside the many other available methods.  But
systemtap scripts already run in kernel space.  How/why would you want
them to talk across netlink sockets?

- FChE

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

* Re: Integrate delay accounting with systemtap?
  2007-07-12 14:27     ` Frank Ch. Eigler
@ 2007-07-12 14:34       ` Ananth N Mavinakayanahalli
  2007-07-12 14:39         ` Frank Ch. Eigler
  0 siblings, 1 reply; 7+ messages in thread
From: Ananth N Mavinakayanahalli @ 2007-07-12 14:34 UTC (permalink / raw)
  To: Frank Ch. Eigler; +Cc: Mike Mason, SystemTAP

On Thu, Jul 12, 2007 at 10:13:16AM -0400, Frank Ch. Eigler wrote:
> Ananth N Mavinakayanahalli <ananth@in.ibm.com> writes:
> 
> > [...]  We shouldn't be using any probes or functions in kernel for
> > this feature. Rather, SystemTap should be taught to listen to the
> > netlink socket where this information is available.
> 
> What do you mean by "listen to the netlink socket"?  The netlink
> widget is (roughly speaking) a way for user-space programs to run
> kernel queries outside the many other available methods.  But
> systemtap scripts already run in kernel space.  How/why would you want
> them to talk across netlink sockets?

See Documentation/accounting/getdelays.c

Given the data is available without any additional kernel probe/hook, it
would be good for SystemTap to do something similar to getdelays.c

Ananth

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

* Re: Integrate delay accounting with systemtap?
  2007-07-12 14:34       ` Ananth N Mavinakayanahalli
@ 2007-07-12 14:39         ` Frank Ch. Eigler
  2007-07-12 15:12           ` Ananth N Mavinakayanahalli
  0 siblings, 1 reply; 7+ messages in thread
From: Frank Ch. Eigler @ 2007-07-12 14:39 UTC (permalink / raw)
  To: Ananth N Mavinakayanahalli; +Cc: systemtap

[-- Attachment #1: Type: text/plain, Size: 808 bytes --]

Hi -

On Thu, Jul 12, 2007 at 07:59:23PM +0530, Ananth N Mavinakayanahalli wrote:

> > [...]  But systemtap scripts already run in kernel space.  How/why
> > would you want them to talk across netlink sockets?

> See Documentation/accounting/getdelays.c

Yes, I see that, but this is exactly a user-space program using the
netlink api to query the kernel.  This scenario does not apply to
systemtap probes that run in kernel space.

> Given the data is available without any additional kernel
> probe/hook, it would be good for SystemTap to do something similar
> to getdelays.c

But the netlink widget is necessary primarly because user space has no
access to the task struct with all the statistics fields in it.  A
probe running in kernel space can access the task struct (more or
less) directly.

- FChE

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: Integrate delay accounting with systemtap?
  2007-07-12 14:39         ` Frank Ch. Eigler
@ 2007-07-12 15:12           ` Ananth N Mavinakayanahalli
  0 siblings, 0 replies; 7+ messages in thread
From: Ananth N Mavinakayanahalli @ 2007-07-12 15:12 UTC (permalink / raw)
  To: Frank Ch. Eigler; +Cc: systemtap

On Thu, Jul 12, 2007 at 10:34:31AM -0400, Frank Ch. Eigler wrote:
> Hi -
> 
> On Thu, Jul 12, 2007 at 07:59:23PM +0530, Ananth N Mavinakayanahalli wrote:
> 
> > > [...]  But systemtap scripts already run in kernel space.  How/why
> > > would you want them to talk across netlink sockets?
> 
> > See Documentation/accounting/getdelays.c
> 
> Yes, I see that, but this is exactly a user-space program using the
> netlink api to query the kernel.  This scenario does not apply to
> systemtap probes that run in kernel space.
> 
> > Given the data is available without any additional kernel
> > probe/hook, it would be good for SystemTap to do something similar
> > to getdelays.c
> 
> But the netlink widget is necessary primarly because user space has no
> access to the task struct with all the statistics fields in it.  A
> probe running in kernel space can access the task struct (more or
> less) directly.

Agreed. I was just thinking we should possibly not take a probe hit if
its not needed. I am fine as long as the information is available either
way.

Ananth

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

end of thread, other threads:[~2007-07-12 14:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-11  6:45 Integrate delay accounting with systemtap? Ananth N Mavinakayanahalli
2007-07-11 20:06 ` Mike Mason
2007-07-12  8:32   ` Ananth N Mavinakayanahalli
2007-07-12 14:27     ` Frank Ch. Eigler
2007-07-12 14:34       ` Ananth N Mavinakayanahalli
2007-07-12 14:39         ` Frank Ch. Eigler
2007-07-12 15:12           ` Ananth N Mavinakayanahalli

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).