![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| current CPU usage, memory usage, disk I/O oid(snmp) | S_venkatesh | SUN Solaris | 2 | 12-13-2008 06:19 AM |
| how can I find cpu usage memory usage swap usage and logical volume usage | alert0919 | HP-UX | 3 | 12-02-2008 02:38 PM |
| Memory usage of a process | tafil | Shell Programming and Scripting | 7 | 09-03-2008 04:02 AM |
| RAM Physical Memory usage by each Process. | bsrajirs | SUN Solaris | 12 | 11-19-2007 09:18 AM |
| how to restrict memory usage by a process | frankkahle | UNIX for Advanced & Expert Users | 4 | 10-25-2007 09:26 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
how could I get a process Memory Usage
I use pstat API to get Process Infomation
I would like to get a process 1.process owner 2.how many physical memory and virtual memory and total memory used(KB) and usage(%) 3.a process excution file create time 4.a process excution file access time I do't know which attribute it i need thanks _T_LONG_T pst_uid; /* Real UID */ _T_LONG_T pst_pid; /* Process ID */ _T_LONG_T pst_ppid; /* Parent process ID */ _T_LONG_T pst_dsize; /* # real pages used for data */ _T_LONG_T pst_tsize; /* # real pages used for text */ _T_LONG_T pst_ssize; /* # real pages used for stack */ _T_LONG_T pst_nice; /* Nice value */ struct __psdev pst_term;/* TTY of this process; -1/-1 if there isn't one */ _T_LONG_T pst_pgrp; /* Process group of this process */ _T_LONG_T pst_pri; /* priority of process */ _T_LONG_T pst_addr; /* address of process (in memory) */ _T_LONG_T pst_cpu; /* processor utilization for scheduling */ _T_LONG_T pst_utime; /* user time spent executing (in seconds) */ _T_LONG_T pst_stime; /* system time spent executing (in seconds) */ _T_LONG_T pst_start; /* time process started (seconds since epoch) */ _T_LONG_T pst_flag; /* flags associated with process */ _T_LONG_T pst_stat; /* Current status */ _T_LONG_T pst_wchan; /* If state PS_SLEEP, value sleeping on */ _T_LONG_T pst_procnum; /* processor this proc last run on */ char pst_cmd[PST_CLEN]; /* Command line for the process, if available */ _T_LONG_T pst_time; /* resident time for scheduling */ _T_LONG_T pst_cpticks; /* ticks of CPU time */ _T_LONG_T pst_cptickstotal; /* total ticks for life of process */ _T_LONG_T pst_fss; /* fair share scheduler group ID */ float pst_pctcpu; /* %CPU for this process during p_time */ _T_LONG_T pst_rssize; /* resident set size for process (private pages)*/ _T_LONG_T pst_suid; /* saved UID */ char pst_ucomm[PST_UCOMMLEN]; /* executable basename the process is running*/ _T_LONG_T pst_shmsize; /* # real pages used for shared memory */ _T_LONG_T pst_mmsize; /* # real pages used for memory mapped files */ _T_LONG_T pst_usize; /* # real pages used for U-Area & K-Stack */ _T_LONG_T pst_iosize; /* # real pages used for I/O device mapping */ |
|
||||
|
don't forget kmeminfo, available from HP
![]() # ./kmeminfo -user | more tool: kmeminfo 9.04 - libp4 9.344 - libhpux 1.236 - HP CONFIDENTIAL unix: /stand/current/vmunix 11.31 64bit IA64 on host "mybox.net" core: /dev/kmem live link: Thu Sep 25 09:08:17 PDT 2008 boot: Thu Feb 5 19:14:12 2009 time: Fri May 8 12:10:01 2009 nbpg: 4096 bytes ---------------------------------------------------------------------- Summary of processes memory usage: List sorted by physical size, in pages/bytes: virtual physical swap pid ppid pages / bytes pages / bytes pages / bytes command 16275 16211 319645 1.2g 155083 605.8m 165574 646.8m java 2955 1 649031 2.5g 150051 586.1m 190355 743.6m java 15451 1 1668487 6.4g 69734 272.4m 105079 410.5m oracle 15453 1 1668487 6.4g 69310 270.7m 105079 410.5m oracle 3210 1 1713574 6.5g 65854 257.2m 71403 278.9m oracle 11650 1 1708438 6.5g 64232 250.9m 68805 268.8m oracle 15461 1 1660295 6.3g 63867 249.5m 96901 378.5m oracle 15467 1 1660295 6.3g 63646 248.6m 96969 378.8m oracle 15449 1 1660807 6.3g 63424 247.8m 97359 380.3m oracle 15455 1 1660807 6.3g 63400 247.7m 97359 380.3m oracle 15465 1 1659527 6.3g 63370 247.5m 96192 375.8m oracle 15443 1 1659655 6.3g 63070 246.4m 96132 375.5m oracle 15457 1 1663031 6.3g 62990 246.1m 99593 389.0m oracle 15463 1 1659271 6.3g 62975 246.0m 95850 374.4m oracle 15459 1 1659271 6.3g 62933 245.8m 95850 374.4m oracle 24379 1 1708438 6.5g 62880 245.6m 68801 268.8m oracle 15469 1 1659143 6.3g 62879 245.6m 95736 374.0m oracle |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|