cancel
Showing results for 
Search instead for 
Did you mean: 

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
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.