Re: sharing text segments of all programs

2000-12-28 Thread Rik van Riel
On Thu, 28 Dec 2000, Ari Heitner wrote: > this has to be a dumb idea Not really, you're just 8 (9?) years too late... > The question is, why shouldn't it be possible to share the text > segments of *all* running programs? Linux uses shared mmap() for "loading" executables (well, they're just

sharing text segments of all programs

2000-12-28 Thread Ari Heitner
this has to be a dumb idea -- either it's way harder to implement than i think, or it's just plain impossible. but i'm curious why it won't work. So, if you fork, all the pages in both the child and the parent are marked COW. Since the text segment is read only, it'll never be written to; all

sharing text segments of all programs

2000-12-28 Thread Ari Heitner
this has to be a dumb idea -- either it's way harder to implement than i think, or it's just plain impossible. but i'm curious why it won't work. So, if you fork, all the pages in both the child and the parent are marked COW. Since the text segment is read only, it'll never be written to; all

Re: sharing text segments of all programs

2000-12-28 Thread Rik van Riel
On Thu, 28 Dec 2000, Ari Heitner wrote: this has to be a dumb idea Not really, you're just 8 (9?) years too late... The question is, why shouldn't it be possible to share the text segments of *all* running programs? Linux uses shared mmap() for "loading" executables (well, they're just