hello! First of all thank you for all your information you give us on this sites. It is a great help to learn for example dtrace. i''ve a little script in work, which shows the cpu utilization per process in percent. this output is refreshed every 2 seconds for example. now i want to extend this script with the output of the allocated bytes of memory per process. how could i display this using dtrace( it has to be dtrace )? i found scripts that gives information about swap and pageout/in and so on, but i found nothing for the bytes per process in ram. Do you know any example scripts for this ? thank you! -- This message posted from opensolaris.org
On Thu, Aug 09, 2007 at 01:41:49AM -0700, florian wrote:> hello! > First of all thank you for all your information you give us on this sites. It is a great help to learn for example dtrace. > > i''ve a little script in work, which shows the cpu utilization per process in percent. this output is refreshed every 2 seconds for example. > > now i want to extend this script with the output of the allocated bytes of memory per process. > how could i display this using dtrace( it has to be dtrace )? > > i found scripts that gives information about swap and pageout/in and so on, but i found nothing for the bytes per process in ram. > > Do you know any example scripts for this ?Is ''prstat -s size'' and ''prstat -s rss'' not enough for you ? What do you want to achive ? przemol -- http://przemol.blogspot.com/ ---------------------------------------------------------------------- Plaza plazy nierowna Kliknij>>>http://link.interia.pl/f1af7
of course prstat is a good thing, but the aim is to get a dtrace monitoring script. i mean, i need a dtrace script doing actually the same thing like prstat. but only the cpu an mem part. as is said i finished already the cpu part, now comes the memory part. so i would be grateful to have a little easy dtrace script which reads the process mem bytes and print it. : ) thank you -- This message posted from opensolaris.org