Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!sun-barr!ccut!wnoc-tyo-news!cs.titech!titccy.cc.titech!necom830!mohta From: mohta@necom830.cc.titech.ac.jp (Masataka Ohta) Newsgroups: comp.unix.wizards Subject: Re: Shared libraries (was Re: Window system bashing (was Re: X11 bashing)) Message-ID: <117@titccy.cc.titech.ac.jp> Date: 18 Apr 91 12:20:20 GMT References: <26550@adm.brl.mil> <97@titccy.cc.titech.ac.jp> <1991Apr17.020930.25198@NCoast.ORG> <112@titccy.cc.titech.ac.jp> Sender: news@titccy.cc.titech.ac.jp Organization: Tokyo Institute of Technology Lines: 26 In article <112@titccy.cc.titech.ac.jp> mohta@necom830.cc.titech.ac.jp (Masataka Ohta) writes: >You may claim shared libraries reduces the amount of required memory. >But, even if you run all the command at the same time, total code >space consumed is only 24884KB (including non-library code). On the >other hand, if you run single X11 application, with shared library, >mere /lib/X11.a consumes 3.3MB of virtual (and often real, as libraries >tends to be scattered) memory. Let me add one more fact. On SONY NWS3860, the largest X application under /usr/bin/X11 is mwm. If you run mwm, xdm and as many xterms as you want, text data bss dec hex 1007616 192512 27168 1227296 12ba20 /usr/bin/X11/mwm 413696 86016 27792 527504 80c90 /usr/bin/X11/xdm 585728 139264 39376 764368 ba9d0 /usr/bin/X11/xterm still, total text size is below 2MB. So, shared library is NO solution even to reduce memory consumption of X11. Masataka Ohta