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?

  • 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 4 '17 at 20:00

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.