mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bongani Hlope <bonganilinux@mweb.co.za>
To: Andrew Morton <akpm@digeo.com>
Cc: davem@redhat.com, linux-kernel@vger.kernel.org, manfred@colorfullife.com
Subject: Re: 2.5.70-mm1 Strangeness
Date: Fri, 30 May 2003 21:25:59 +0200	[thread overview]
Message-ID: <20030530212559.76f0d1ea.bonganilinux@mweb.co.za> (raw)
In-Reply-To: <20030529175135.7b204aaf.akpm@digeo.com>

[-- Attachment #1: Type: text/plain, Size: 2319 bytes --]

On Thu, 29 May 2003 17:51:35 -0700
Andrew Morton <akpm@digeo.com> wrote:

> "David S. Miller" <davem@redhat.com> wrote:
> >
> >    From: Andrew Morton <akpm@digeo.com>
> >    Date: Thu, 29 May 2003 13:55:41 -0700
> > 
> >    The ip_dst_cache seems unreasonably large.  Unless your desktop is a
> >    backbone router or something.
> > 
> > Lots of DST entries can result on any machine actually.  We create one
> > per source address, not just per destination address.  So if you talk
> > to a lot of sites, or lots of sites talk to you, you'll get a lot of
> > DST entries.
> > 
> > Regardless, 80MB _IS_ excessive.  That's nearly 400,000 entries.
> > It definitely indicates there is a leak somewhere.
> > 
> > Although it say:
> > 
> > ip_dst_cache       19470  19470   4096    1    1
> > 
> > Which is 19470 active objects right?
> 
> Yes, 19470 entries.  But note that each entry is 4096 bytes.
> 
> Something seems to have gone and bumped the object size from 240 bytes up
> to 4096.  This is actually what I want CONFIG_DEBUG_PAGEALLOC to do, but I
> don't think it does it yet.  
> 
> Bongani, if you have CONFIG_DEBUG_PAGEALLOC enabled then please try turning
> it off.  And maybe Manfred can throw some light on what slab has done
> there.
> 

Turning off CONFIG_DEBUG_PAGEALLOC helped, everything is running smoothly
cat /proc/sys/net/ipv4/route/max_size gave me 65536

The slabs were reclaimed before the PC died. I had a script that checked /proc/slabinfo
every 10 seconds and dup it to a file. The last output was: (for the slabs you asked me to watch)

ip_dst_cache          61     61   4096    1    1
! tunables            24   12    0
! slabdata            61     61      0
! globalstat      342536  53783 340902 2351    0   25   25
! cpustat   0       2231 406871 314930  28356

ext3_inode_cache    4331   4331   4096    1    1
! tunables            24   12    0
! slabdata          4331   4331      0
! globalstat       34388  26451 33205  580    0   25   25
! cpustat   0       2459  33332  28998   2462


dentry_cache       11016  11016   4096    1    1
! tunables            24   12    0
! slabdata         11016  11016      0
! globalstat      109937  29529 94505  418    0   25   25
! cpustat   0     568369  96256 645381   8243

So it seems like CONFIG_DEBUG_PAGEALLOC was causing the problem.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2003-05-30 19:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-29 20:16 Bongani Hlope
     [not found] ` <20030529135541.7c926896.akpm@digeo.com>
2003-05-30  0:11   ` David S. Miller
2003-05-30  0:51     ` Andrew Morton
2003-05-30  0:58       ` David S. Miller
2003-05-30  4:12       ` Bongani Hlope
2003-05-30  5:02       ` Manfred Spraul
2003-05-30 19:25       ` Bongani Hlope [this message]
2003-05-30 19:58         ` Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030530212559.76f0d1ea.bonganilinux@mweb.co.za \
    --to=bonganilinux@mweb.co.za \
    --cc=akpm@digeo.com \
    --cc=davem@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manfred@colorfullife.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®