🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81672

Re: INN's expire program and memory usage:

#81672
From: D. Stussy
Date: Tue, 28 Jul 2009 03:07
58 lines
3427 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message
news:873a8hh98m.fsf@windlord.stanford.edu...
> "D. Stussy" <spam@bde-arc.ampr.org> writes:
> > Can we do something about the memory usage, or is there a leak?  INN
2.5.0.
> >
> > USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME
COMMAND
> > newsserv   334    3.1 12.9 833880 131564 ?       Ds   Jul03 1124:23
> > /var/lib/news/bin/innd
> > newsserv 32433  4.7 62.5 703848 638188 ?       D    Jul27  12:31
> > /var/lib/news/bin/expire
> > newsserv  4388   0.0  0.1 109580  1492 ?         SN   00:17   0:00 -
nnrpd:
> > (reader tasks)
> > ...etc.
> >
> > Memory image just for these two main programs is 1.466GB.  The machine
only
> > has 1GB of physical RAM (Obviously, some part of the programs aren't
> > loaded).
>
> I'm fairly sure the programs are entirely loaded into memory.  The
numbers
> reported by ps are essentially meaningless since they include
> memory-mapped files.
>
> In fact, we know for certain that the programs are entirely loaded in
> memory because your system has no swap:
>
> > # free -t
> >              total       used       free     shared    buffers
cached
> > Mem:       1019724     995528      24196          0       7704
62524
> > -/+ buffers/cache:     925300      94424
> > Swap:            0          0          0
> > Total:     1019724     995528      24196
>
> which is, incidentally, a poor configuration choice.  Give your system
> some swap so that it can kick stuff out of memory that isn't currently
> running.

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

> Anyway, while it's possible this is a memory leak, it's probably just the
> standard problem that our history backend makes space versus time
> tradeoffs that involve memory mapping a very large index and hence
> consuming quite a bit of mmap space.  It's not fixable without writing a
> new history backend that makes different tradeoffs.

Is expire mapping just the history.index file, or other things too?  As
noted, I have a rather large history file as my spool is all CNFS buffers,
so it doesn't really need to expire the spool.  That way, I know what to
watch....

Technical Details
Message-ID: <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.ecngs.de!ecngs!feeder2.ecngs.de!87.106.137.111.MISMATCH!weretis.net!feeder1.news.weretis.net!news.snarked.org!not-for-mail
References: <h4lj94$4c8$1@snarked.org> <873a8hh98m.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <h4lq1g$4kc$1@snarked.org>
Subject: Re: INN's expire program and memory usage:
Date: Mon, 27 Jul 2009 20:07:27 -0700
From: "D. Stussy" <spam@bde-arc.ampr.org>
References: <h4lj94$4c8$1@snarked.org> <873a8hh98m.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.ecngs.de!ecngs!feeder2.ecngs.de!87.106.137.111.MISMATCH!weretis.net!feeder1.news.weretis.net!news.snarked.org!not-for-mail
Newsgroups: news.software.nntp
Lines: 58
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
NNTP-Posting-Host: pool-71-106-209-107.lsanca.dsl-w.verizon.net
X-Trace: snarked.org 1248750448 4748 71.106.209.107 (28 Jul 2009 03:07:28 GMT)
X-Complaints-To: newsmaster@snarked.org
NNTP-Posting-Date: Tue, 28 Jul 2009 03:07:28 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478