mincore is no more useful than pretouch. Unless you lock, a page that was 
resident at the time of the mincore/pretouch operation can be evicted a few 
microseconds later. A “this seems to be resident right now” quality does not 
prevent page faults or long TTSPs and STW pauses on mapped buffer access, it 
just improves the stats a bit.

Sent from my iPad

On Jan 16, 2019, at 9:41 PM, Steven Stewart-Gallus 
<[email protected]<mailto:[email protected]>> wrote:

I think what you want is something like the mincore system call on Linux so 
your thread can write directly if the page is mapped but offload the work to 
another thread if it is not mapped. I don't have any experience with the system 
call though.

--
You received this message because you are subscribed to a topic in the Google 
Groups "mechanical-sympathy" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/mechanical-sympathy/yL4Yaedgqg4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
[email protected]<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"mechanical-sympathy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to