🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81670

INN's expire program and memory usage:

#81670
From: D. Stussy
Date: Tue, 28 Jul 2009 01:11
35 lines
2439 bytes
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).  However, expire is eating over 512MB on its own for its active
memory image....

# 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

History file size:
-rw-rw-r--   1 newsserv news 4984098036 Jul 28 00:41 history
-rw-rw-r--   1 newsserv news         93 Jul 28 00:41 history.dir
-rw-rw-r--   1 newsserv news  527190756 Jul 28 00:41 history.hash
-rw-rw-r--   1 newsserv news  702921008 Jul 28 00:41 history.index

# entries (approximate):  51,391,145

Is the memory usage excessive?  Is there anything I can do to reduce it?  I
use dynamic linking shared modules.

Technical Details
Message-ID: <h4lj94$4c8$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.news-service.com!de-l.enfer-du-nord.net!gegeweb.org!news.snarked.org!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <h4lj94$4c8$1@snarked.org>
Subject: INN's expire program and memory usage:
Date: Mon, 27 Jul 2009 18:11:55 -0700
From: "D. Stussy" <spam@bde-arc.ampr.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.news-service.com!de-l.enfer-du-nord.net!gegeweb.org!news.snarked.org!not-for-mail
Newsgroups: news.software.nntp
Lines: 35
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 1248743524 4488 71.106.209.107 (28 Jul 2009 01:12:04 GMT)
X-Complaints-To: newsmaster@snarked.org
NNTP-Posting-Date: Tue, 28 Jul 2009 01:12:04 +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