On 08/01/2019 12:37, Jiri Kosina wrote:
On Tue, 8 Jan 2019, Bernd Petrovitsch wrote:
quoted
Shouldn't the application use e.g. mlock()/.... to guarantee no page
faults in the first place?
Calling mincore() on pages you've just mlock()ed is sort of pointless
though.
Obviously;-)
Sorry for being unclear above: If I want my application to
avoid suffering from page faults, I use simply mlock()
(and/or friends) to nail the relevant pages into physical
RAM and not "look if they are out, if yes, get them in" which
has also the risk that these important pages are too soon
evicted again.
But perhaps I'm missing some very special use cases ....
MfG,
Brend
--
Bernd Petrovitsch Email : bernd@petrovitsch.priv.at
LUGA : http://www.luga.at