From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24892 invoked by alias); 18 Apr 2007 16:21:20 -0000 Received: (qmail 24877 invoked by uid 22791); 18 Apr 2007 16:21:15 -0000 X-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: sourceware.org Received: from e32.co.us.ibm.com (HELO e32.co.us.ibm.com) (32.97.110.150) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 18 Apr 2007 17:21:12 +0100 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e32.co.us.ibm.com (8.12.11.20060308/8.13.8) with ESMTP id l3IGITLD006396 for ; Wed, 18 Apr 2007 12:18:29 -0400 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v8.3) with ESMTP id l3IGLABS167626 for ; Wed, 18 Apr 2007 10:21:10 -0600 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l3IGL9mJ027674 for ; Wed, 18 Apr 2007 10:21:09 -0600 Received: from [127.0.0.1] (wecm-9-67-32-109.wecm.ibm.com [9.67.32.109]) by d03av04.boulder.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l3IGL6s8027400; Wed, 18 Apr 2007 10:21:08 -0600 Message-ID: <4626455A.1030901@us.ibm.com> Date: Wed, 18 Apr 2007 16:21:00 -0000 From: Mike Mason User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: "Frank Ch. Eigler" CC: systemtap@sources.redhat.com Subject: Re: Script to measure resource usage based on process arguments References: <45A2E7D0.6030809@us.ibm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2007-q2/txt/msg00086.txt.bz2 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 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