[Interest] dynamic library question

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Tue Mar 18 11:28:46 CET 2014


>>
>> However, if KSP is enabled, the kernel might realise the pages are identical
>> and drop one copy. I would recommend you don't depend on it, so simply don't
>> duplicate the files.
>
> Doesn't KSP scan only the pages that have been explictly marked as
> mergeable via madvise? Why would the dynamic linker use such flag on
> the libraries it maps into memory? (It would be pointless in the vast
> majority of the cases except in OP's scenario?)

Just to be clear, you guys are talking about KSM (kernel samepage
merging) right?

-mandeep



More information about the Interest mailing list