user1047069
user1047069

Reputation: 953

non swapable pages in memory ? why?

I wonder : Why would one want to set a page to be non-swapable ?

There are, of course, performance issues, but other than that, is there a reason for a non-swapable page ?

Upvotes: 0

Views: 78

Answers (1)

damienfrancois
damienfrancois

Reputation: 59072

The man page for mlock mentions two main uses:

  • when the application must be reactive, such as real time systems or watchdogs
  • when the data are sensitive (e.g. password) and you'd rather not have them copied to persistent storage beyond the control of your application.

Upvotes: 4

Related Questions