You are not logged in.

#1 2020-10-05 12:57:17

nmmm
Member
Registered: 2019-03-18
Posts: 15

Archlinux limit memory usage to 1/2 of the ram

I have a long running program (designed by me) that consume lots of memory (I can adjust the memory)

If I run the program on my laptop (16 GB RAM) as non root, the program can not allocate more than 8 GB
if I run the program on my home server (32 GB RAM) as root, the program can not allocate more than 16 GB
If I run it on CentOS, I can allocate all available memory

I can not find where the restriction come from...

Offline

#2 2020-10-05 14:00:21

seth
Member
Registered: 2012-09-03
Posts: 51,056

Re: Archlinux limit memory usage to 1/2 of the ram

https://wiki.archlinux.org/index.php/Cgroups
https://wiki.archlinux.org/index.php/Limits.conf
"ulimit -a"

But I don't think there're limits by default, did you tamper w/ vm.overcommit_memory et al.?

Offline

Board footer

Powered by FluxBB