Skip to main content
deleted 1 character in body
Source Link
Dan D.
  • 613
  • 1
  • 6
  • 14

/proc/sys/vm/swappiness is nice, but I want a knob that is per process like /proc/$PID/oom_adj. So that I can make certain processes less likely than others to have any of their pages swapped out. Unlike memlock(), this doesn't prevent a program from being swapped out. And - like nice -nice, the user by default can't make their programs less likely, but only more likely to get swapped. I think I had to call this /proc/$PID/swappiness_adj.

/proc/sys/vm/swappiness is nice, but I want a knob that is per process like /proc/$PID/oom_adj. So that I can make certain processes less likely than others to have any of their pages swapped out. Unlike memlock(), this doesn't prevent a program from being swapped out. And - like nice - the user by default can't make their programs less likely, but only more likely to get swapped. I think I had to call this /proc/$PID/swappiness_adj.

/proc/sys/vm/swappiness is nice, but I want a knob that is per process like /proc/$PID/oom_adj. So that I can make certain processes less likely than others to have any of their pages swapped out. Unlike memlock(), this doesn't prevent a program from being swapped out. And like nice, the user by default can't make their programs less likely, but only more likely to get swapped. I think I had to call this /proc/$PID/swappiness_adj.

A little bit of archeology for the googlers of the future
Source Link

How to set per process swapiness for linux?

/proc/sys/vm/swappiness is nice, but iI want a knob that'sthat is per process like /proc/$PID/oom_adj so. So that iI can make certain processes less likely than others to have any of their pages swapped out unlike memlock. Unlike memlock(), this doesn't prevent a program from being swapped andout. And - like nice - the user by default can't make their programs less likely, but only more likely to get swapped i. I think i'd aI had to call this /proc/$PID/swappiness_adj.

per process swapiness for linux

/proc/sys/vm/swappiness is nice but i want a knob that's per process like /proc/$PID/oom_adj so that i can make certain processes less likely than others to have any of their pages swapped out unlike memlock this doesn't prevent a program from being swapped and like nice the user by default can't make their programs less likely but only more likely to get swapped i think i'd a call this /proc/$PID/swappiness_adj

How to set per process swapiness for linux?

/proc/sys/vm/swappiness is nice, but I want a knob that is per process like /proc/$PID/oom_adj. So that I can make certain processes less likely than others to have any of their pages swapped out. Unlike memlock(), this doesn't prevent a program from being swapped out. And - like nice - the user by default can't make their programs less likely, but only more likely to get swapped. I think I had to call this /proc/$PID/swappiness_adj.

Tweeted twitter.com/#!/StackUnix/status/52611022560833536
edited tags
Link
Gilles 'SO- stop being evil'
  • 865.3k
  • 205
  • 1.8k
  • 2.3k
Source Link
Dan D.
  • 613
  • 1
  • 6
  • 14
Loading