Re: out of memory

From: Andrew Morton
Date: Mon Apr 03 2006 - 23:42:18 EST


Ingo Freund <Ingo.Freund@xxxxxxxxxx> wrote:
>
> Hi,
>
> on our database machine with 4 GB RAM and 2 XEON CPUs I got the
> following kernel messages.
> There are 2 GB RAM declared as shared memory for database usage.
> Can anybody explain to me what happened and -may be- why?
>

You have a kernel memory leak.

>
> Apr 2 10:55:09 widbrz01 kernel: oom-killer: gfp_mask=0xd0, order=0

It was a GFP_KERNEL allocation.

> Apr 2 10:56:10 dbm kernel: Normal free:3168kB min:3756kB low:4692kB high:5632kB active:700kB inactive:548kB present:901120kB

There's a grand total of 1.2MB of ZONE_NORMAL memory on the LRU. The rest
(900MB-odd) is lost.

> Apr 2 10:56:11 dbm kernel: 8538 pages slab

and it's not in slab.

> Apr 2 10:56:11 dbm kernel: Symbols match kernel version 2.6.13.

Boy, 2.6.13 was a long time ago - I'm sure we fixed many leaks since then,
but I do not recall any particular patch which might fix this, sorry.

Your best option would be to seek a kernel upgrade.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/