2 ms·
>working set size limit on a process which includes the buffer cache You can control this with cgroups. Plug a process into a separate cgroup and set the `memo
by throwaway8941 7y ago
>working set size limit on a process which includes the buffer cache
You can control this with cgroups. Plug a process into a separate cgroup and set the `memory.limit_in_bytes` knob to whatever your heart desires.
I use it to limit the qBittorrent's memory usage on my machine. `firejail` is very convenient for doing this. If I don't set a limit (30% RAM in my case), it eats up all the memory with a uselessly large file cache, which does not improve upload speeds at all.
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/resource_management_guide/sec-memory https://access.redhat.com/documentation/en-us/red_hat_enterp...