[Interest] dynamic library question

Thiago Macieira thiago.macieira at intel.com
Tue Mar 18 17:57:28 CET 2014


Em ter 18 mar 2014, às 15:58:46, Mandeep Sandhu escreveu:
> >> 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?

Sorry, yes, KSM. I got the acronym wrong.

And I'm also not sure that the read-only pages are marked "mergeable" with 
madvise. It's quite likely that they aren't because it's not likely to produce 
any non-negligible results in the common case.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list