Script to measure resource usage based on process arguments

Mike Mason mmlnx@us.ibm.com
Wed Apr 18 16:21:00 GMT 2007


Agreed.  I need to revisit this script in light of the changes since it was written.  It's on my todo list.  

Thanks,
Mike

Frank Ch. Eigler wrote:
> Mike Mason <mmlnx@us.ibm.com> writes:
> 
>> I wrote the attached script [long ago!] in response to a customer
>> question. They wanted to know if SystemTap could show them which set
>> of java processes were consuming the most resources, based on the
>> process arguments.  [...]
> 
> Reading over this old script again, I'd take away the following
> observations:
> 
> - process argument fetching routines would be welcome the tapset library
> - a syntax to initialize a systemtap array would be useful - both at
>   compile time ("global array[maxsize] = [idx]=value, [idx2]=value2")
>   and at run time (module option string "[idx]=value, ...")
> - some systemtap policies/libraries have become more favourable to this
>   kind of script since January.
> - a new script that exploits these hypothetical features would be much
>   more compact and may still make the shell script wrapping unnecessary
> 
> 
> - FChE



More information about the Systemtap mailing list