| To: | Mark Goodwin <markgw@xxxxxxx> |
|---|---|
| Subject: | Re: PCP patch for top/libgtop conversion |
| From: | Mike Mason <mmlnx@xxxxxxxxxx> |
| Date: | Wed, 25 Sep 2002 10:17:40 -0700 |
| Cc: | pcp@xxxxxxxxxxx |
| References: | <Pine.LNX.4.44.0209251450170.17688-100000@sherman.melbourne.sgi.com> |
| Sender: | pcp-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 |
Mark, Sorry for missing some of the help text. I thought I'd taken care of that :-) See comments below: Mark Goodwin wrote:
First, I got these backwards: proc.psinfo.cmd is new and proc.psinfo.psargs is modified. Top sometimes needs the full command line. Until this patch, neither psargs nor the instance name actually gave the full command line. Now they both do. Top also wants just the command name at times, so I added proc.psinfo.cmd. I could parse the command name out of the instance name, but I thought it was easier to use proc.psinfo.cmd, which grabs the command name from /proc/<pid>/status. Either way works for me. It's your call.
You should have also seen a warning about an address mismatch between System.map and /proc/ksyms. Did that message appear as well? Yes, a zero length string means the wait channel address is 0 and the process is not blocked.
I'm just passing through the output from /proc/<pid>/status. I'll have to check what's output when a process is swapped.
This is needed by libgtop. I couldn't think of any other way to represent the maps in PCP. As far as I know, there's no way to represent instances within instances. Have you ever considered adding the capability? I don't think the copyout limit is an issue for PCP. There's code in proc/array.c to handle maps files greater than 4K. We just read it, so I don't think we need to do anything special.
Regards, Mike -- Mike Mason IBM Linux Technology Center, RAS Group Beaverton, OR, USA mmlnx@xxxxxxxxxx (503) 578-4123 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: PCP patch for top/libgtop conversion, Mike Mason |
|---|---|
| Next by Date: | Re: PCP patch for top/libgtop conversion, Mike Mason |
| Previous by Thread: | Re: PCP patch for top/libgtop conversion, Mark Goodwin |
| Next by Thread: | Re: PCP patch for top/libgtop conversion, Ken McDonell |
| Indexes: | [Date] [Thread] [Top] [All Lists] |