Can I tell Linux not to swap out a particular processes' memory?

后端 未结 7 1962
孤城傲影
孤城傲影 2020-12-02 13:29

Is there a way to tell Linux that it shouldn\'t swap out a particular processes\' memory to disk?

Its a Java app, so ideally I\'m hoping for a way to do this from th

7条回答
  •  一生所求
    2020-12-02 13:40

    You can do that by the mlock family of syscalls. I'm not sure, however, if you can do it for a different process.

提交回复
热议问题