🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #57650

Re: Do shared libraries save memory or disk space

#57650
From: Kent Tong
Date: Wed, 11 Sep 1996 00:00
24 lines
1496 bytes
john@nlc.net.au (John Saunders) wrote:

>I'm after some info about shared libraries. In the case of a library X
>X, if application A and B both use it, is there any memory use advantage
>over making X shared instead of a link library? I know there is a disk
>space advantage and suspect there may be a memory advantage. In the case
>were process B is a child process of A that hasn't exec'ed, is there
>any memory advantage?

>If you want to know why I'm asking this. I have a HTTP server that can
>fork dozens of child processes to handle requests. I want to know if I
>can get better memory sharing by moving parts of the server into shared
>libraries.

The child process should just share its code pages with
the parent process. This means using shared lib in this
situation won't help you at all. It'd be a different story
if they weren't the same program.


---
Kent Tong
Freeman Installer ==> http://www.netnet.net/users/freeman/
Technical Details
Message-ID: <515cso$su7@metro.ucc.su.OZ.AU>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <513nvh$2hv@nhj.nlc.net.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1103af,69c6938f9ae135ef
X-Google-Attributes: gid1103af,public
X-Google-Thread: 102983,69c6938f9ae135ef
X-Google-Attributes: gid102983,public
From: freemant@wr.com.au (Kent Tong)
Subject: Re: Do shared  libraries save memory or disk space
Date: 1996/09/11
Message-ID: <515cso$su7@metro.ucc.su.OZ.AU>
X-Deja-AN: 179848345
distribution: inet
references: <513nvh$2hv@nhj.nlc.net.au>
organization: TipTec Development
newsgroups: aus.computers.linux,comp.os.linux.misc