linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.2.1x kernel memory "leaks"
@ 2001-08-06  3:40 jlewis
  2001-08-06 12:15 ` Alan Cox
  0 siblings, 1 reply; 2+ messages in thread
From: jlewis @ 2001-08-06  3:40 UTC (permalink / raw)
  To: linux-kernel

I have a mail relay server that seems to have serious kernel memory leak
issues since upgrading to the later 2.2.1x kernels.  Currently, it's
running Red Hat's 2.2.19-6.2.7.  What I see is that after a few days,
pretty much all memory is consumed.  The majority of it is not being used
by user-space processes.  i.e. killing nearly all processes free's up some
memory, but the majority is still tied up by the kernel.  I haven't found
much documentation on it, but I suspect the dentry_cache may be to blame.
What's a reasonable size for the dentry_cache?

# uptime
 10:30pm  up 3 days, 11:14,  1 user,  load average: 0.93, 0.63, 0.52

# free
             total       used       free     shared    buffers     cached
Mem:        261668     251968       9700          0       7368       8192
-/+ buffers/cache:     236408      25260
Swap:       264168      13760     250408

# cat /proc/slabinfo
slabinfo - version: 1.0
kmem_cache            29     42
tcp_tw_bucket        128    210
tcp_bind_bucket       80    254
tcp_open_request       3     63
skbuff_head_cache    192    378
sock                 100    143
dquot                  0      0
filp                1887   1890
signal_queue           0      0
kiobuf                 0      0
buffer_head         7517  10038
mm_struct             90    155
vm_area_struct      2224   3276
dentry_cache      1189547 1263374
files_cache           89    126
uid_cache              3    127
size-131072            0      0
size-65536             0      0
size-32768             1      1
size-16384             0      0
size-8192              1      1
size-4096             18     20
size-2048            255    344
size-1024             15    112
size-512              15     24
size-256             515    882
size-128             423    500
size-64               83     84
size-32             3623   4221
slab_cache           115    189

Anyone else run into this or have suggestions?

-- 
----------------------------------------------------------------------
 Jon Lewis *jlewis@lewis.org*|  I route
 System Administrator        |  therefore you are
 Atlantic Net                |
_________ http://www.lewis.org/~jlewis/pgp for PGP public key_________



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 2.2.1x kernel memory "leaks"
  2001-08-06  3:40 2.2.1x kernel memory "leaks" jlewis
@ 2001-08-06 12:15 ` Alan Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2001-08-06 12:15 UTC (permalink / raw)
  To: jlewis; +Cc: linux-kernel

> memory, but the majority is still tied up by the kernel.  I haven't found
> much documentation on it, but I suspect the dentry_cache may be to blame.
> What's a reasonable size for the dentry_cache?

Probably < 100,000 entries on  256Mb box, certainly not 1.2 million.

What file systems are mailer ?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-08-06 12:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-06  3:40 2.2.1x kernel memory "leaks" jlewis
2001-08-06 12:15 ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).