9

If the system doesn't have enough RAM for everything, does the kernel take the nice value into account when it decides what to swap out to reduce memory stress?

user8292439
  • 3,888
  • 1
    If I understand correctly, a process with a high nice value alias low priority is likely to be swapped out when processes with higher priority need RAM. – sudodus Nov 04 '17 at 20:00

1 Answers1

3

The kernel does not take into account the nice value for virtual memory consumption. However, if a process has a low nice value and has not been active for a while then the kernel may take a preference in swapping out the unused pages of this process compared to a busy process that may be consuming more memory.