2 ms·
> On Windows? Pretty sure that both on Mac OS and Linux I can have the swap mostly unused. Nope, on Linux. My macOS system is not using its swap at the moment,
by bayindirh 2y ago
> On Windows? Pretty sure that both on Mac OS and Linux I can have the swap mostly unused.
Nope, on Linux. My macOS system is not using its swap at the moment, but I saw it's using it when both memory pressure was low and there was free space. OTOH, on my 32GB Linux system, current state is as follows:
total used free shared buff/cache available
Mem: 31894 10051 2967 169 19498 21843
Swap: 15722 2506 13216
This is system has not been stressed to full RAM since last boot. It's Linux kernel's own choice to move these pages to swap over time.
> Or even run without swap on Linux.
This is how Kubernetes systems and most HPC clusters run, and hard-lock the moment you hit 0 on "free" column.