*BSD News Article 29474


Return to BSD News archive

Xref: sserve comp.os.386bsd.misc:2318 comp.os.linux.misc:12915
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!library.ucla.edu!ihnp4.ucsd.edu!sdd.hp.com!nigel.msen.com!zib-berlin.de!irz401!uriah!not-for-mail
From: j@uriah.sax.de (J Wunsch)
Newsgroups: comp.os.386bsd.misc,comp.os.linux.misc
Subject: Re: Impressions: FreeBSD vs Linux
Date: 17 Apr 1994 19:31:12 +0200
Organization: Private U**X site; member IN e.V.
Lines: 23
Message-ID: <2orrp0INN6ok@bonnie.sax.de>
References: <CnH9JG.3Ap@hippo.ru.ac.za> <yX2Lkc3w165w@oasys.pc.my>
NNTP-Posting-Host: bonnie.sax.de

othman@oasys.pc.my (Othman Ahmad) writes:

>Warning! Shared libs will slow down your machine and save only little of
>your overall disk space(only 10%), because data is much more than code.

Warning! This guy is kidding!

My notebook wouldn't be what it is without shared libs. (Great work,
Paul K.!)  Especially for X programs, the improvement is considerable.
A simple `xlogo', statically linked, consumes half a megabyte! Linked
shared, it's 8 K.

Not only they save disk space, they also save physical RAM pages.
Every X application needs the Xlib, and almost every the Xt lib. It's
just obvious that it's better to have this half meg loaded once only,
instead of paged in/out with every context switch between the appl's.
Of course, it does make a larger difference it your machine has only 5
MB of RAM, and not 16 :)
-- 
cheers, J"org                             work:    joerg_wunsch@tcd-dresden.de
                                          private:   joerg_wunsch@uriah.sax.de
Steinbach's Guideline for Systems Programming:
        Never test for an error condition you don't know how to handle.