|
Posted by Tom on November 7, 2004, 12:17 am
Please log in for more thread options
I am trying to use Proc::ProcessTable to get (amongst other things) the
size of a process. Here are the numbers for a process via top and
Proc::ProcessTable. Although I couldn't capture the top and
Proc::Processtable at the exactly same time, it was very close. But the
disparity in the size and rss #'s are something I can't figure out.
This is Perl 5.8, Proc::ProcessTable 0.39 on RH Linux 9.
From top:
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
1243 rstarr 15 0 20160 4148 2688 R 2.1 1.0 0:33 0 kdeinit
Proc::ProcessTable:
$VAR1 = {'1243' => {'euid' => 500,'priority' => 0,'wchan' =>
'-1072538531','cmndline' => 'kdeinit: konsole -session
11c0a8c902000108978720100000011690015_1091581304_270551','fname' =>
'kdeinit','cmajflt' => 0,'state' => 'sleep','pid' => 1243,'cwd' =>
'/home/rstarr','cminflt' => 0,'exec' => '/usr/bin/kdeinit','uid' =>
500,'cstime' => 0,'minflt' => 1072,'pctcpu' => '0.01','suid' =>
500,'utime' => 16000,'pgrp' => 1183,'start' => '1099596299','gid' =>
500,'fgid' => 500,'pctmem' => '1.00','time' => 18000,'sess' =>
1183,'egid' => 500,'size' => 41463808,'ttynum' => 0,'stime' =>
2000,'ctime' => 0,'sgid' => 500,'flags' => 64,'cutime' => 0,'majflt' =>
5093,'fuid' => 500,'ppid' => 1183,'rss' => 4276224}};
|
| Similar Threads | Posted | | Proc::ProcessTable | August 4, 2004, 9:00 am |
| Issues with Proc::ProcessTable module on Solaris 9 | April 20, 2007, 8:02 am |
| Comparing structures, ignoring floating point roundoff differences | November 18, 2005, 11:07 am |
| Proc::Simple - Poll | January 18, 2006, 1:52 pm |
| Has the interface to Proc::PID_File changed? | January 5, 2005, 4:49 am |
| ANNOUNCE: PTools-Proc-NWay | May 11, 2007, 12:43 pm |
| Has anyone had success with Proc::Simple on Win32? | September 10, 2007, 9:36 am |
| Term-Size make fails on debian | September 6, 2005, 4:28 pm |
| BerkeleyDB Queue Database Array Size | August 14, 2006, 2:50 am |
| help with module naming: filehandle-tie for size-limited/rotating logfile | March 18, 2007, 5:44 am |
|