On 4/18/06, Dan Cross <[EMAIL PROTECTED]> wrote: > On Tue, Apr 18, 2006 at 07:54:16PM +0100, Charles Forsyth wrote: > > that's often quoted as a consequence, but in practice, > > not that i've seen in ... what is it now? ... at least six or > > seven different systems. i think the trouble is that to get savings > > that make the pain worthwhile you still need various forms of > > discipline, but with shared libraries, people are even less concerned. > > and RSS continues up. > > I think shared libraries are often times misunderstood. I once knew > someone who thought that a context switch was less expensive using > shared libraries than without. > > - Dan C.
It certainly wouldn't have any effect on the context switch itself necessarily. But it might have an effect on page faults for code that's loaded dynamically and the swapping that would occur while freeing up free memory to load multiple copies of the same code or not. (though it's been said over and over again that physical memory savings of dynamic libraries rarely happens in practice.)
