Operating System - Linux
1819901 Members
2606 Online
109607 Solutions
New Discussion юеВ

Re: What is the maximum memory per process

 
Md. Minhaz Khan
Super Advisor

What is the maximum memory per process

Dear Experts,

What is the maximum memory per process that
we can have in Red Hat Linux. In HP-UX we can control process size with maxdsiz,maxdsiz_64bit, maxssiz, maxssiz_64bit.

How can we control Process memory utilization in Linux. Please help.

Note: We are using RHEL 5.3,5.4,5.5

Thanks
Minhaz
4 REPLIES 4
Alzhy
Honored Contributor

Re: What is the maximum memory per process

32bit processes can use as much as ~4GB
64bit processes way way more than your RAM

The above HP-UX kernel parms are non-existent on RHEL 5. Instead, each user or globaly can be set limits to data. segment and stack memory in /etc/security/limits.conf


man limits.conf(5)

HTH.
Hakuna Matata.
Matti_Kurkela
Honored Contributor

Re: What is the maximum memory per process

The HP-UX kernel parameters maxdsiz, maxdsiz_64bit, maxssiz and maxssiz_64bit all control the POSIX standard ulimit values on HP-UX.

maxdsiz* = data segment size limit
maxssiz* = stack size limit

In HP-UX, there are separate limits for 32- and 64-bit programs. In Linux, both types of programs use the same limits.

In RedHat Enterprise Linux, the ulimit values can be configured using /etc/security/limits.conf. The file includes comments that describe the file format, and some examples. You can specify different limits for different users or user groups, if you wish.

You can view the current limits in Linux with:
ulimit -a -H

In Linux, the default limits are "unlimited" (i.e. limited only by the amount of available memory & swap space).

For more information, see "man limits.conf".

When you change the limit definitions, only new sessions started after the change will get the new limits; any existing sessions will still have the old limits.

MK
MK
Md. Minhaz Khan
Super Advisor

Re: What is the maximum memory per process

Dear MK & Alzhy,

Thanks a lot for your help. I have read "man limits.conf" & what i understood is, if we give below entry for user "minhaz" then is it maximum limit for per-process physical memory consumption under "minhaz" user or all processes that run under "minhaz" can not exceed the limit 128 MB:

/etc/security/limits.conf
=========================
minhaz hard as 131072

Thanks
Minhaz
Alzhy
Honored Contributor

Re: What is the maximum memory per process

Salam:

Si. Exactamente
Hakuna Matata.