This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
how to get one process's resource usage by systemtap
- From: "tgh" <tianguanhua at ncic dot ac dot cn>
- To: "'Josh Stone'" <jistone at redhat dot com>
- Cc: <systemtap at sourceware dot org>
- Date: Thu, 9 Jul 2009 09:04:43 +0800
- Subject: how to get one process's resource usage by systemtap
- References: <1244936781.212635.16785@debian> <1245365905.663140.941@debian> <4A3AE34B.4050807@redhat.com> <076001c9f07e$e4a73a40$adf5aec0$@ac.cn> <4A3AF41B.7090804@redhat.com>
Thank you
I mean , if I want to get the resource usage information for each process
per minute, such as, cpu usage, memory usage, I/O usage,
How can I get these information with systemtap,
Are There some example scripts for use,
could you help me
Thank you
-----邮件原件-----
发件人: Josh Stone [mailto:jistone@redhat.com]
发送时间: 2009年6月19日 10:13
收件人: tgh
主题: Re: how to get one process's resource usage by systemtap
On 06/18/2009 06:40 PM, tgh wrote:
> Hi
> I use systemtap, and want to get a given process's memory usage, cpu
> usage, IO usage, etc., each time interval, and I do not know how to
achieve
> it,
> I have used systemtap to get the resource usage about the whole
> system on linux 2.6.19, but I hear that in linux2.6.27 , it can get each
> process's resouce usage, but I don't know how to get it,
> Could you help me, give me some example, or where can I get relative
> example
>
> Thank you in advance
That's a good question. I'm not sure what you're referring to in 2.6.27
-- can you give more details about what you heard or read? It would
also help me to know a bit more about what you are trying to achieve.
Please consider re-sending your question to systemtap@sourceware.org,
so other experts can also help, and other users can see the answers.
Thanks,
Josh