On Mon, 12 Jul 2004 07:34:05 -0700 (PDT)
Steve Potter
--- Andi Kleen
wrote: On Mon, Jul 12, 2004 at 09:56:04AM -0400, Mikailov, Anar wrote:
Does anyone know how to change or view the maximum process size ?
There is no soft maximum unless you set one using ulimit. Hard maximum is 512GB right now.
The maximum process size for a 64-bit process is 512GB. The maximum process size for a 32-bit process on a 64-bit machine is 4GB (2GB on a 32-bit machine with a stock kernel, since Linux reserves 1/2 the virtual memory).
It's actually 3GB on 32bit.
However, both can be limited further by the amount of swap that you have. The swap available can change from instant to instant,
It depends. With overcommit you can allocate more. Just your process may get killed when you use more than swap+memory together.
and I don't know of any easy way (programatically) to find out how much is available at any given instant.
cat /proc/meminfo -Andi