πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83914

Re: innd using excessive memory

#83914
From: Steve Crook
Date: Sat, 05 Mar 2011 21:00
45 lines
3065 bytes
On Sat, 05 Mar 2011 13:33:12 +0100, Julien Γ‰LIE wrote in
Message-Id: <8teos8F4l7U1@mid.individual.net>:

> Is it innd that uses memory or another process?
> Does it happen during expire/expireover?
Hi Julien,

So far I've failed to identify exactly what is happening.  Running
'free' shows all the memory consumed, including 4GB of swap.  Running
'top' though reveals no processes consuming memory.  It isn't linked to
expire/expireover times.

>> Although the process was killed, the memory doesn't appear to be
>> released, but no more is consumed.
>
> Memory consumption is therefore done by another process, isn't it?  But 
> why would the kernel kill innd first, and not the other process?
Actually today the kernel did kill other processes first (mysql and
apache).  I'm not sure how the oom-killer task sequences the order of
killing.

> Memory leaking somewhere (?)
> But it would be released when a process is killed.
I'm very suspcious that it might be a Perl Regex backtracking issue.
There have been some complex articles coming out of Newsguy lately that
have locked up filtering by having thousands of consecutive vertical
whitespace characters.  I'd have expected this to show up in tools like
ps and top though.

>> Server is configured with:
>> ../configure --with-perl --with-openssl
>> --with-sendmail=/usr/sbin/sendmail --enable-ipv6
>
> Does it also happen when Perl filters are disabled?  (via ctlinnd β€” no 
> need to reconfigure)

I'm running it with 'ctlinnd perl no' at the moment.  Memory usage is
still creeping up but this might just be due to the spooled backlog of
articles being processed.

Mem:   8191300k total,  3986300k used,  4205000k free,   244248k buffers
Swap:  4198928k total,   301052k used,  3897876k free,  2923916k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 6376 news      20   0  440m 316m 267m S    0  4.0   0:49.53 innd
Technical Details
Message-ID: <slrnin592h.drg.steve@news.mixmin.net>
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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail
References: <slrnin44gh.2pa.steve@news.mixmin.net> <8teos8F4l7U1@mid.individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrnin592h.drg.steve@news.mixmin.net>
Subject: Re: innd using excessive memory
Date: Sat, 05 Mar 2011 21:00:01 +0000
From: Steve Crook <steve@mixmin.net>
References: <slrnin44gh.2pa.steve@news.mixmin.net> <8teos8F4l7U1@mid.individual.net>
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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail
Newsgroups: news.software.nntp
Organization: Mixmin
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 5 Mar 2011 21:00:01 +0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="2a01:4f8:100:5243::4";
 logging-data="14193"; mail-complaints-to="abuse@mixmin.net"
User-Agent: slrn/pre1.0.0-26 (Linux)
Lines: 44