🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81674

Re: INN's expire program and memory usage:

#81674
From: Bruce Esquibel
Date: Tue, 28 Jul 2009 13:06
46 lines
3222 bytes
D. Stussy <spam@bde-arc.ampr.org> wrote:

> Actually, having no swap for a performance server is a good configuration
> choice for other reasons.  Let's not debate that.

Make about as much sense as driving around without a spare tire thinking
the few pennies saved on gas will make up for the inconvience of getting
a flat.

There is something about your numbers that "doesn't look right".

Running that machine on 1GB ram is your problem, little else. It's not
enough with the size of the history file, it's ten times larger than mine
(4.7GB vs 450MB) and we hold (on CNFS) about 60 days worth. 

If there is some reason you want a two year hold on articles, fine, but
get the ram up to 4GB at least. The expire is going to throw fits otherwise.

My expire takes about 20 minutes to run (keep in mind it's CNFS so no
articles really expire) and since april 9th the memory on innd is...

   PID USERNAME LWP PRI NICE  SIZE   RES STATE    TIME    CPU COMMAND
   520 news       1  59    0  147M   94M sleep   21.7H  0.27% innd
   524 news       1  59    0 1516K 1060K sleep    8:59  0.05% innwatch
 10210 news       1  47    4   12M 6772K sleep   13:52  0.05% innfeed
 10216 news       1  60    4 5104K 4220K sleep    2:46  0.01% overchan
   527 news       1  60    0 7380K 6180K sleep    2:58  0.00% cnfsstat
 10213 news       1  47    4 5480K 4296K sleep    0:06  0.00% controlchan
  1769 news       1  47    4 1912K 1256K sleep    0:03  0.00% ninpaths
  6524 news       1  59    0 1336K  760K sleep    0:00  0.00% sleep

I've always used Solaris with CNFS and back when the news box was a Sun
E250, the original configuration was 1GB with a single 18GB drive for
article storage. The E250 can take six internal drives and one time when I
ran across some spare 36GB ones, I reconfigured the spool to use 3 of them.

Worked fine until the history file got up to about the size of the ram (1GB)
but then expire started to puke (cannot fork, out of resources). Increasing
the ram to 2GB worked until the history file approached around 1.8GB.

Point is, I think anything that uses the Berkeley DB needs room to breathe
and a 4GB history on a 1GB machine isn't going to cut it.

-bruce
bje@ripco.com
Technical Details
Message-ID: <h4mt3v$777$1@remote5bge0.ripco.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!news.ripco.com!not-for-mail
References: <h4lj94$4c8$1@snarked.org> <873a8hh98m.fsf@windlord.stanford.edu> <h4lq1g$4kc$1@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <h4mt3v$777$1@remote5bge0.ripco.com>
Subject: Re: INN's expire program and memory usage:
Date: Tue, 28 Jul 2009 13:06:07 +0000
From: Bruce Esquibel <bje@ripco.com>
References: <h4lj94$4c8$1@snarked.org> <873a8hh98m.fsf@windlord.stanford.edu> <h4lq1g$4kc$1@snarked.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!news.ripco.com!not-for-mail
Newsgroups: news.software.nntp
Organization: Ripco Communications Inc.
Lines: 46
NNTP-Posting-Host: shell3.ripco.com
X-Trace: remote5bge0.ripco.com 1248786367 7399 74.8.102.118 (28 Jul 2009
X-Complaints-To: usenet@ripco.com
NNTP-Posting-Date: Tue, 28 Jul 2009 13:06:07 +0000 (UTC)
User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (SunOS/5.10
 (i86pc))