🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83925

Re: innd using excessive memory

#83925
From: Miquel van Smoorenburg
Date: Mon, 14 Mar 2011 12:00
40 lines
3050 bytes
In article <slrninbvso.drg.steve@news.mixmin.net>,
Steve Crook  <steve@mixmin.net> wrote:
>On 07 Mar 2011 22:54:34 GMT, Miquel van Smoorenburg wrote in
>Message-Id: <4d75622a$0$81485$e4fe514c@news.xs4all.nl>:
>
>> You can press 'm' in top to sort by memory size.
>Hi Miquel,
>Yup.  Currently innd is highest at 3.1.
>
>Mem:   8191300k total,  7944368k used,   246932k free,   146380k buffers
>Swap:  4198928k total,   165464k used,  4033464k free,  6999432k cached
>
>  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
>28777 news      20   0  439m 246m 199m S    0  3.1   3:51.01 innd
> 1664 root      20   0  122m  44m 2172 S    0  0.6   0:09.20 spamd
>20269 www-data  20   0  209m  27m 3796 S    0  0.3   0:01.31 apache2

Well, from the looks of it it's not innd that is using all memory.
I mean it uses just 3.1 % of memory. Where did the other 96.9% go ?
Looks like either the kernel is leaking memory or the RAM is being used
by POSIX/Sysv SHM or tmpfs/ramfs instances.

>> Do you have any ramfs or tmpfs filesystems in use ? Are the
>> contents of those filesystems taking up the memory perchance ?
>No ram-based filesystems other than the initramfs used by Debian during
>boot.

Debian has more ram-based filesystems in normal operation.
There's /dev/shm, /lib/init/rw, /dev, perhaps more.

So see if those filesystems ( mount | egrep 'tmpfs|ramfs|shmfs' )
are filled up. Also check shared memory with 'ipcs'.

Another thing to check is 'slabtop' , it will tell you the
amount of kmalloc'ed memory the kernel is using and for what.

If you still can't find the problem and you're running an
old kernel I recommend upgrading.

Mike.
Technical Details
Message-ID: <4d7e0377$0$41113$e4fe514c@news.xs4all.nl>
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!goblin2!goblin.stu.neva.ru!multikabel.net!newsfeed20.multikabel.net!eweka.nl!lightspeed.eweka.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
References: <slrnin44gh.2pa.steve@news.mixmin.net> <slrnin9d36.drg.steve@news.mixmin.net> <4d75622a$0$81485$e4fe514c@news.xs4all.nl> <slrninbvso.drg.steve@news.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <4d7e0377$0$41113$e4fe514c@news.xs4all.nl>
Subject: Re: innd using excessive memory
Date: Mon, 14 Mar 2011 12:00:55 +0000
From: "Miquel van Smoorenburg" <miquels@netscum.invalid>
References: <slrnin44gh.2pa.steve@news.mixmin.net> <slrnin9d36.drg.steve@news.mixmin.net> <4d75622a$0$81485$e4fe514c@news.xs4all.nl> <slrninbvso.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!goblin2!goblin.stu.neva.ru!multikabel.net!newsfeed20.multikabel.net!eweka.nl!lightspeed.eweka.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Newsgroups: news.software.nntp
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8bit
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: mikevs@xs8.xs4all.nl (Miquel van Smoorenburg)
Lines: 40
NNTP-Posting-Host: 194.109.21.8
X-Trace: 1300104055 news.xs4all.nl 41113 [::ffff:194.109.21.8]:58919
X-Complaints-To: abuse@xs4all.nl