On Fri, 31 Oct 1997, Sean Butler wrote: > >>Dear lord...35mb at boot? You mean, you're using up that much memory > it has a reasonably large wilderness. One thing that no one > offered as a way to cut down on some of the overhead is to compile > the mud without the -g option (debugging info). This will reduce > the amount of memory it consumes to some degree. Maybe because it isn't true? (unless you are running some *very* archaic or braindead OS that will map more than just code+data sections into memory): ~/ed/src# uname -a Linux shire 2.0.31 #16 Tue Sep 2 22:12:17 MET DST 1997 i586 The program, not stripped, with debugging symbols: ~/ed/src# ls -la envy -rwxr-xr-x 1 root root 4733401 Oct 28 00:26 envy* ~/ed/src# size envy text data bss dec hex filename 888004 748806 506744 2143554 20b542 envy ~/ed/src# I start it: PID TTY MAJFLT MINFLT TRS DRS SIZE SWAP RSS SHRD LIB DT COMMAND 557 4 1671 1197 968 4004 4972 0 4972 1272 0 924 ../src/env Total size is 4972kb. Resident size is 4972k too. Now stripping all debugging symbols: ~/ed/src# strip envy ~/ed/src# ls -la envy -rwxr-xr-x 1 root root 1642860 Oct 31 19:53 envy* ~/ed/src# size envy text data bss dec hex filename 888004 748806 506744 2143554 20b542 envy And restarting: (output of ps -m BTW) PID TTY MAJFLT MINFLT TRS DRS SIZE SWAP RSS SHRD LIB DT COMMAND 564 4 1024 1109 972 3972 4944 0 4944 1272 0 917 ../src/env Size is nearly identical - the 30k difference is probably to the memory/string manager picking another heap size based on data from the previous run, or random mobprogs not behaving in the exact same way - but definitely not due to 3.1 mb of debug info disappearing. BTW, the full version of AR has a RSS of 25000kb+ on a Solaris machine (interestingly enough, the binary is a whole 7.4 mb there - not statically linked). 11441284 bytes are used for strings, 2335484 is code+data+bss, and the rest is dynamically (pre)allocated data: 24927 rooms, 10297 loaded objects, 37669 exits etc. I can provide a couple pages of statistics if anyone is interested :) ============================================================================= Erwin Andreasen Herlev, Denmark <erwin@pip.dknet.dk> UNIX System Programmer <URL:http://pip.dknet.dk/~erwin/> <*> (not speaking for) DDE ============================================================================= +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST