1753917 Members
7962 Online
108810 Solutions
New Discussion юеВ

Re: Memory pages HP-UX

 
SOLVED
Go to solution
Kalin Evtimov
Regular Advisor

Memory pages HP-UX

Hi!

In order to monitor our memory, I have written a small tool, that uses the freemem program to check memory and create a graph out of the values. It gives all values in memory pages, but I want to show them in KB, for instance. How big is a memory page and can I calculate it in KB?

Thank you!
3 REPLIES 3
Dietmar Konermann
Honored Contributor
Solution

Re: Memory pages HP-UX

/usr/include/limits.h:
# define PAGESIZE 4096

In general 1 page is 4K.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Kalin Evtimov
Regular Advisor

Re: Memory pages HP-UX

The same here. Thank you!
Ted Buis
Honored Contributor

Re: Memory pages HP-UX

Is this still the case if you use chatr to change the page size of the executable? There is the possibility to have variable page sizes?
Mom 6