Re: [Interest] dynamic library question

2014-03-18 Thread Giuseppe D'Angelo
On 17 March 2014 23:21, Thiago Macieira thiago.macie...@intel.com wrote: 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

Re: [Interest] dynamic library question

2014-03-18 Thread Mandeep Sandhu
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

Re: [Interest] dynamic library question

2014-03-18 Thread Giuseppe D'Angelo
On 18 March 2014 11:28, Mandeep Sandhu mandeepsandhu@gmail.com wrote: Just to be clear, you guys are talking about KSM (kernel samepage merging) right? Uhm, yes, I was. I failed the acronym... Cheers, -- Giuseppe D'Angelo ___ Interest mailing

Re: [Interest] dynamic library question

2014-03-18 Thread Thiago Macieira
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

Re: [Interest] dynamic library question

2014-03-17 Thread Thiago Macieira
Em seg 17 mar 2014, às 21:27:00, Damian Ivanov escreveu: Hi, A general question but maybe you are so kind and help me :-) /usr/lib/libMyLib.so and /opt/MyProj/lib/libMyLib.so (100% indentical files) So when I have 2 programs: one uses the one and the other, the other lib, will they still