Re: Static linking and memory usage

2007-08-15 Thread Pete French
> In response to the original post: The kernel's ELF linker/loader for > executables will share the text and read-only segments for static > executables. Thanks, this is what I was looking for - I kind of thought it worked that way but just wanted to check, (because if not I am wasting a lot of

RE: Static linking and memory usage

2007-08-14 Thread David Schwartz
> If I have an executable which is staticly linked with many copies > of it running (a CGI script in fact), will all those copies share > the text segment of the executable on the disc, or will it actually > use up real memory resource with many copies of the executable ? I > have been assuming th

Re: Static linking and memory usage

2007-08-14 Thread Bruce M. Simpson
Jeremy Chadwick wrote: This reminds me: it sure would be useful if we had something like Solaris's pmap(1) on FreeBSD. In response to the original post: The kernel's ELF linker/loader for executables will share the text and read-only segments for static executables. We already have someth

Re: Static linking and memory usage

2007-08-14 Thread Oliver Fromme
Jeremy Chadwick wrote: > Pete French wrote: > > If I have an executable which is staticly linked with many copies > > of it running (a CGI script in fact), will all those copies share > > the text segment of the executable on the disc, or will it actually > > use up real memory resource with m

Re: Static linking and memory usage

2007-08-14 Thread Jeremy Chadwick
On Tue, Aug 14, 2007 at 03:31:04PM +0100, Pete French wrote: > If I have an executable which is staticly linked with many copies > of it running (a CGI script in fact), will all those copies share > the text segment of the executable on the disc, or will it actually > use up real memory resource wi

Static linking and memory usage

2007-08-14 Thread Pete French
If I have an executable which is staticly linked with many copies of it running (a CGI script in fact), will all those copies share the text segment of the executable on the disc, or will it actually use up real memory resource with many copies of the executable ? I have been assuming the former, b