Static linking and memory usage

Pete French petefrench at ticketswitch.com
Tue Aug 14 07:31:05 PDT 2007


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, but possibly that is not correct.

cheers,

-pcf.



More information about the freebsd-stable mailing list