🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #36217

Re: INN 2.2, RAM, Solaris, Swapfiles, partitions

#36217
From: Per Hedeland
Date: Sat, 27 Mar 1999 00:00
43 lines
2656 bytes
In article <yl90cjew76.fsf@windlord.stanford.edu> Russ Allbery
<rra@stanford.edu> writes:
>Ricardo Stella <stellaNO-SPAM@poseidon.rider.edu> writes:
>
>> Sun recommends swap partitions to be 2x memory.  In general, swap
>> partitions are created at 4x memory.
>
>However, keep in mind that Solaris is not SunOS.  Solaris doesn't need to
>have any swap at all to function; swap doesn't have to be at least as
>large as memory.

Yes, the advice above is clearly inappropriate for Solaris, and perhaps
in particular for a news server.

>  Swap is used when the machine runs out of memory, not
>all the time.

Depends on what you mean by "run out of memory" though - physical memory
is also used for things that are never pushed out to the swap area, in
particular the file system cache. Remember that Solaris (like most
modern Unices) uses the available memory interchangeably for processes
and fs cache, which means that if there is high fs I/O activity (as on a
news server:-), the fs cache will increase in size and cause inactive
processes to be paged/swapped out, even though the machine hasn't really
"run out" of memory.

>  So how much swap to use depends on how much memory you're
>using; if you have enough physical memory, you may not need any at all
>(although having it for emergencies is still nice, and it's cheap).

Well, per above, it isn't just for emergencies - if you don't have any
swap, those inactive processes will have to sit in memory, taking up
space that could be better used by the fs cache. I.e. no matter how much
memory you have (within reasonable limits), some amount of swap is
always better than none. Just how much you'd want depends on a lot of
things of course, for a news server running INN the number of inactive
nnrpd's you typically have hanging around may be the most relevant
factor (plus some 50M for all the crud that Solaris fires up at boot:-).

--Per Hedeland
per@erix.ericsson.se

Technical Details
Message-ID: <7djn1h$n0v$1@news.du.etx.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-mail
References: <7dg9a7$pbq$1@ultranews.duc.auburn.edu> <36FBF208.1A834FCB@rider.edu> <yl90cjew76.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <7djn1h$n0v$1@news.du.etx.ericsson.se>
Subject: Re: INN 2.2, RAM, Solaris, Swapfiles, partitions
Date: Sat, 27 Mar 1999 00:00:00 +0000
From: per@erix.ericsson.se (Per Hedeland)
References: <7dg9a7$pbq$1@ultranews.duc.auburn.edu> <36FBF208.1A834FCB@rider.edu> <yl90cjew76.fsf@windlord.stanford.edu>
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: 459825906
Organization: Ericsson Utvecklings AB, Stockholm, Sweden
Newsgroups: news.software.nntp
NNTP-Posting-User: per