Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6501

Locking memory on fault

$
0
0

Starting with kernel 4.4 a new way of locking the memory was introduced according to this link.

When a particular shared library resides on a block device we know that the kernel will load into memory more than the requested page based on a read ahead property. By default, this is set to 128KB (i.e. 32 pages of 4KB).

My question is: all the 32 pages will be locked in memory or only the needed one? If it is only the needed one that will be locked, what happens with the rest?

Thanks,


Viewing all articles
Browse latest Browse all 6501

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>