*BSD News Article 8771


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!hp9000.csc.cuhk.hk!saimiri.primate.wisc.edu!sdd.hp.com!wupost!tulane!darwin.sura.net!jvnc.net!newsserver.technet.sg!ntuix!ntrc25.ntrc.ntu.ac.sg!othman
From: othman@ntrc25.ntrc.ntu.ac.sg (othman (EEE/Div 4))
Subject: Shared lib benchmarks, and experiences
Message-ID: <1992Dec3.071056.27426@ntuix.ntu.ac.sg>
Sender: news@ntuix.ntu.ac.sg (USENET News System)
Nntp-Posting-Host: ntrc25.ntrc.ntu.ac.sg
Organization: Nanyang Technological University - Singapore
X-Newsreader: TIN [version 1.1 PL6]
Date: Thu, 3 Dec 1992 07:10:56 GMT
Lines: 42


I've installed Joerg's shared lib with little problem.

The improvement in code size is significant for small programs but can be
worse for larger programs such as cc1. cc1 using shared lib is actually
larger than static lib, but SysV manual warns of this problem.
	There is little hard-disk that I manage to save even after installing
the compressed man pages.
	At most 20 megabytes. That is too little but then there is still the
X386 with xview3, which takes up 32Mbyte. No wonder the linux guys refused to
give me figures for comparison.
	Anyone uses shared-lib for X applications or even server?
I'll do it later but it will help a lot if someone can share with me their
experiences.
	However there is some saving in virtual memory size, about 20Kbyte.


386dx25 no cache, no 387

Shared lib:
 ld -o dhry1 /usr/lib/crt0_s.o dhry-1.1.o -lc_s -lgnulib
-rwxr-xr-x    1 root        13744 Dec  2 15:49 dhry1
maxtor200# dhry1
Dhrystone(1.1) time for 500000 passes = 106
This machine benchmarks at 4675 dhrystones/second

Static lib:
 ld -o dhry1.st /usr/lib/crt0.o dhry-1.1.o -lc -lgnulib
-rwxr-xr-x    1 root        23361 Dec  2 15:54 dhry1.st
maxtor200# dhry1.st
Dhrystone(1.1) time for 500000 passes = 115
This machine benchmarks at 4805 dhrystones/second

  UID   PID  PPID CPU PRI NI   VSZ  RSS WCHAN  STAT TT       TIME COMMAND
    0  1904   110  20  33  0    88    0 -      R    p1    0:30.96  (dhry1)
    0  1922   110  13  31  0    96    0 -      R    p1    0:04.59  (dhry1.st)

--
Othman bin Ahmad, School of EEE,
Nanyang Technological University, Singapore 2263.
Internet Email: eoahmad@ntuix.ntu.ac.sg