🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #18755

Re: too much RAM? use expireover!

#18755
From: Ian Stirling
Date: Thu, 26 Jun 1997 00:00
29 lines
2421 bytes
Jukka Marin <jmarin@pyy.jmp.fi> wrote:
: Is this _really_ necessary?

:   PID USERNAME PRI NICE   SIZE   RES STATE   TIME   WCPU    CPU COMMAND
:  3157 news      -5    4  7584K 3404K sleep  19:24 10.69% 10.69% innd
:  7317 news     -18    0   192M   59M sleep   2:32  9.23%  9.23% expireover

: expireover sucking 192 MB of memory, I mean.  About 190 MB too much, IMHO.
: Does anyone have a real solution for this ('real' being something else
: than "remove any huge overview files")?  I can't be baby-sitting several
: news servers all the time.

Why not just run something like this in cron? To kill all .overview files
over 10 meg.
 
awk '{gsub("\\.","/",$1);print "/var/spool/news/"$1"/.overview"}'\
 /usr/lib/news/active |xargs ls -l 2>/dev/null|\
awk '{if($5>10240000)print $9 }'|tee /tmp/killedover|xargs rm 


-- 
Ian Stirling.   Designing a linux PDA, see  http://www.mauve.demon.co.uk/
-----******* If replying by email, check notices in header *******-------
If it can't be expressed in figures, it is not science, it is opinion.
Robert A Heinlen.


Technical Details
Message-ID: <000033B1A688.NO_UCE@mauve.demon.co.uk>
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: <slrn5qvq0o.2pi.jmarin@pyy.jmp.fi>

Show Full Headers
Complete Article Headers
Message-ID: <000033B1A688.NO_UCE@mauve.demon.co.uk>
Subject: Re: too much RAM? use expireover!
Date: Thu, 26 Jun 1997 00:00:00 +0000
From: Ian Stirling <000033B1A688.NO_UCE@mauve.demon.co.uk>
References: <slrn5qvq0o.2pi.jmarin@pyy.jmp.fi>
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: 252693457
X-Mail2News-User: Send.NO_UCE@mauve.demon.co.uk
MMDF-Warning: Parse error in original version of preceding line at punt-2.mail.demon.net
X-Warning0: For unsolicited commercial email, sent (or for causing such to be sent) to the
X-Note0: The From: address in this message is valid for 72 hours only.
X-Warning1: email address in this message, I reserve the right to levy a charge
X-Note1: Any mail sent to that address after that time, without quoted
X-Warning2: for my time of 100 pounds sterling per message, plus 10 pounds
X-Note2: text may bounce, and you will have to act on instructions given
X-Warning3: per 100 lines of message body, plus any legal, penalty or other costs
X-Note3: in the message-body to get email to me.
X-Mail2News-Path: punt-2.mail.demon.net!mauve.demon.co.uk
Newsgroups: news.software.nntp