Single Process Maximum Possible Memory in x64 Linux

后端 未结 3 1677
不知归路
不知归路 2021-01-16 01:20

is there any memory limit for a single process in x64 Linux?

we are running a Linux Server with 32Gb of RAM and I\'m wondering if I can allocate most of it for a sin

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-16 01:55

    Certain kernels have different limits, but on any modern 64-bit linux the single-process limit is still far over 32GB (assuming that process is a 64-bit executable). Various distributions may also have set per-process limits using sysctl, so you'll want to check your local environment to make sure that there aren't arbitrarily low limits set (also check ipcs -l on RPM-based systems).

    The Debian port documentation for the AMD64 port specifically mentions that the per-process virtual address space limit is 128TiB (twice the physical memory limit), so that should be the reasonable upper bound you're working with.

提交回复
热议问题