Operating System - HP-UX
1834789 Members
2359 Online
110070 Solutions
New Discussion

Swapspace reservation and MAXSSIZ

 
SOLVED
Go to solution
Michael Kelly_5
Valued Contributor

Swapspace reservation and MAXSSIZ

HP-UX 11i
When the kernel reserves swapspace for a new process, does it include MAXSSIZ bytes as well as space for the code, text & data pages in the process image?
I'm trying to estimate the likely effect of increasing MAXSSIZ.

Thanks.
The nice thing about computers is that they do exactly what you tell them. The problem with computers is that they do EXACTLY what you tell them.
2 REPLIES 2
Stefan Farrelly
Honored Contributor
Solution

Re: Swapspace reservation and MAXSSIZ

No, MAXSSIZ is just the maximum limit a program may grow to - only what is actually used is reserved in swap.

There is no impact to setting this value really high unless you have many programs which will start expanding to the new high limit and thus consume more memory and swap.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Jdamian
Respected Contributor

Re: Swapspace reservation and MAXSSIZ

I think text and shared libraries aren't included. Text might be included in the rare case when text is modified (copy on write).

Private (= not shared) data is included.

For detailed info, read these two white papers:

HP-UX Memory Management (HP-UX 10.x)
HP-UX Process Management (HP-UX 10.x)

in the following URL:

http://docs.hp.com/hpux/os/10.x/index.html