Operating System - HP-UX
1752482 Members
5881 Online
108788 Solutions
New Discussion

doubt regarding pstat.h and RSS

 
jerish sunny
Occasional Advisor

doubt regarding pstat.h and RSS



Sep 21, 2010 05:33:05 GMT
i am using the pstat.h library and using the pst_status to get the rss value of a process.

the glance output shows the RSS as 1.29gb, but the script rss value is 336134.

This is how i am getting the rss value:
(void)printf("%5ld | ", process->pst_rssize);

can any one help me out to understand if i am using the same value or is there any conversion factor i am missing.
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: question regarding pstat.h and RSS

>is there any conversion factor I am missing.

pst_rssize is in terms of pages. You'll need to call sysconf(2) to get the page size.