Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

comp.sys.hp.hpux FAQ
Section - 5.10.1 How much memory can a process use?

( Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Schools ]


Top Document: comp.sys.hp.hpux FAQ
Previous Document: 5.10 Process Management
Next Document: 5.10.2 Why do my processes keep dying at 64 MB memory usage?
See reader questions & answers on this topic! - Help others by sharing your knowledge

There are three kernel parameters that control this.

The maximum user-stack segment size for a process is specified via the
'maxssiz' kernel parameter.  The user-stack segment is where dynamically
allocated (ie - malloc'ed) data is stored.

The maximum shared-text segment size for a process is specified via the
'maxtsiz' kernel parameter.  The shared-text segment is where executable
code is stored.

The maximum data segment size for a process is specified via the 'maxdsiz'
kernel parameter.  The data segment is where statically allocated data
(ie - arrays) is stored.

The max[std]siz parameters are fences, not consumable resources.
Therefore, you can set them to large values with no impact on the kernel.
Their sole purpose is to prevent poorly written programs from using
massive amounts of memory.

For the values of both maxssiz maxdsiz, use integers that are multiples
of 4096 bytes, the system pagesize.

More information on maxdsiz, maxssiz, and other process-related kernel
parameters is provided online (see section 5.5.3 for more info).

Another potential limiter is swap space.  The combined virtual data space
of all running processes can't exceed swap size.  Run /etc/swapinfo -t and
look at the "total" line.  That's what you have left.

User Contributions:

Comment about this article, ask questions, or add new information about this topic:




Top Document: comp.sys.hp.hpux FAQ
Previous Document: 5.10 Process Management
Next Document: 5.10.2 Why do my processes keep dying at 64 MB memory usage?

Single Page

[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
hpux.faq@gmail.com





Last Update March 27 2014 @ 02:11 PM