1834125 Members
2591 Online
110064 Solutions
New Discussion

_SC_PAGE_SIZE ?

 
SOLVED
Go to solution
Joe Profaizer
Super Advisor

_SC_PAGE_SIZE ?

How do I find out the physical page size value of _SC_PAGE_SIZE?
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor
Solution

Re: _SC_PAGE_SIZE ?

Hi Joe:

# getconf PAGE_SIZE

Regards!

...JRF...
S.K. Chan
Honored Contributor

Re: _SC_PAGE_SIZE ?

# getconf _SC_PAGE_SIZE
Mine is 4096 bytes.
For individual process size use "-l" in the ps command. For example ..
# ps -efl
.. the "SZ" column.
Dietmar Konermann
Honored Contributor

Re: _SC_PAGE_SIZE ?

_SC_PAGE_SIZE is to be used with the sysconf(2) system call and is defined in:

$ grep _SC_PAGE_SIZE /usr/include/sys/*
/usr/include/sys/unistd.h:# define _SC_PAGE_SIZE 3001 /* PAGE_SIZE
: Software page size */
/usr/include/sys/unistd.h:# define _SC_PAGESIZE _SC_PAGE_SIZE

The sysconf(_SC_PAGE_SIZE) result should be 4096 bytes == 4 KBytes for current HP-UX implementations.

Regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)