4

Is there a way to instruct the kernel (Linux kernel) to never swap a certain process that has already been started?

Krastanov
  • 143
  • 4

1 Answers1

3

I don't think you can do this directly from the command line, you would have to do something with the mlock(2) or mlockall(2) functions. There is some discussion of this on stackoverflow here

user9517
  • 114,104
  • 20
  • 206
  • 289