Article View: news.software.nntp
Article #8003Re: INN nnrpd as a shared library
From: Per Hedeland
Date: Mon, 27 May 1996 00:00
Date: Mon, 27 May 1996 00:00
32 lines
2348 bytes
2348 bytes
In article <4oa4bp$rdl@brasil.moneng.mei.com> jgreco@brasil.moneng.mei.com (Joe Greco) writes: >In news.software.nntp article <4o85ru$q94@euas20.eua.ericsson.se>, per@erix.ericsson.se (Per Hedeland) wrote: >:Read Dave's reply again - "other programs". Multiple processes executing >:the same file always share their code segment on Unix (and any other >:sane OS, I'd guess) - i.e. turning code used by a single binary into a >:shared library buys you nothing. > >Shame on you guys! You could explain the problem a little better than this. Well I dunno - if someone proposes doing a shared library, I tend to assume that he knows that it can only be used for sharing code (and how to find the size of the code segment of a binary on Unix). The fact that the code segment is already shared might have been unknown/overlooked though, so I pointed it out... >The problem is not nnrpd's code segment, which most modern UNIX variants >will share (to the extent possible) between the programs anyways. Making a >shared library out of this might help shake a little extra efficiency out of >the process, but the reality is that it will buy you so very little.. AFAIK, shared code segment has been in Unix since around day one - remember that they had a whopping 64k instruction space way back when... I think a shared library will actually *reduce* efficiency, e.g. due to position-independent code and runtime linkage - the savings are only in disk and memory usage, neither of which will happen with a single binary - in fact both will probably go up slightly. --Per Hedeland per@erix.ericsson.se
Technical Details
Message-ID:
<4oda88$3pd@euas20.eua.ericsson.se>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<ny07mu3icaf.fsf@nvwls.cc.purdue.edu> <ny091eiau0h.fsf@nvwls.cc.purdue.edu> <4o85ru$q94@euas20.eua.ericsson.se> <4oa4bp$rdl@brasil.moneng.mei.com>Show Full Headers
Complete Article Headers
Message-ID: <4oda88$3pd@euas20.eua.ericsson.se> Subject: Re: INN nnrpd as a shared library Date: Mon, 27 May 1996 00:00:00 +0000 From: per@erix.ericsson.se (Per Hedeland) References: <ny07mu3icaf.fsf@nvwls.cc.purdue.edu> <ny091eiau0h.fsf@nvwls.cc.purdue.edu> <4o85ru$q94@euas20.eua.ericsson.se> <4oa4bp$rdl@brasil.moneng.mei.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 157037024 Distribution: inet Organization: Ericsson Telecom, Stockholm, Sweden Nntp-posting-user: per Newsgroups: news.software.nntp