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,