Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How much memory can a process use?

memory process
0
Posted

How much memory can a process use?

0

Updated: 04/07/01 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

0

The first limiter is probably 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 all you have left.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123