The values I am seeing on linux for proc.psinfo.*time seem suspicious.
# Get utime, stime directly
cat /proc/26048/stat | awk '{print $14,$15}'
5 4
# quite different results from pminfo (massaged with awk):
pminfo -dtTf proc.psinfo | awk '/^proc/ {X=$1} /26048/ {print X,$0}' |
grep -v awk | grep time
proc.psinfo.ppid inst [26570 or "026570 grep time"] value 26048
process inst [26570 or "026570 grep time"] value 26048
proc.psinfo.utime inst [26048 or "026048 bash"] value
18446744073709546616
proc.psinfo.stime inst [26048 or "026048 bash"] value
18446744073709547616
proc.psinfo.cutime inst [26048 or "026048 bash"] value
18446744073709509616
proc.psinfo.cstime inst [26048 or "026048 bash"] value
18446744073709515616
proc.psinfo.start_time inst [26048 or "026048 bash"] value 28547402
Nothing in pmdas/linux_proc/pmda.c seems suspicious at a brief glance.
Seems to be looking in the right field of stat.
/* proc.psinfo.utime */
{ NULL,
{ PMDA_PMID(CLUSTER_PID_STAT,13), KERNEL_ULONG, PROC_INDOM,
PM_SEM_COUNTER,
PMDA_PMUNITS(0,1,0,0,PM_TIME_MSEC,0) } },
/* proc.psinfo.stime */
{ NULL,
{ PMDA_PMID(CLUSTER_PID_STAT,14), KERNEL_ULONG, PROC_INDOM,
PM_SEM_COUNTER,
PMDA_PMUNITS(0,1,0,0,PM_TIME_MSEC,0) } },
Thoughts?
|