2005-04-14 08:03:35

by Iwan Sanders

[permalink] [raw]
Subject: Kernel messages

Can someone explain to me what just happend? I would really like to know
:-)
I think that the machine ran out of memory and the OOM killer shot some
processes, this is what I found
in my logfiles:

1 Time(s): Active:48588 inactive:152 dirty:0 writeback:7 unstable:0 free:502 slab:13664 mapped:48620 pagetables:325
1 Time(s): DMA free:1008kB min:28kB low:56kB high:84kB active:7364kB inactive:0kB present:16384kB
1 Time(s): DMA per-cpu:
1 Time(s): DMA: 0*4kB 0*8kB 1*16kB 7*32kB 4*64kB 0*128kB 0*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB = 1008kB
1 Time(s): Free pages: 2008kB (0kB HighMem)
1 Time(s): HighMem free:0kB min:128kB low:256kB high:384kB active:0kB inactive:0kB present:0kB
1 Time(s): HighMem per-cpu: empty
1 Time(s): HighMem: empty
1 Time(s): Normal free:1000kB min:476kB low:952kB high:1428kB active:186988kB inactive:608kB present:245120kB
1 Time(s): Normal per-cpu:
1 Time(s): Normal: 14*4kB 2*8kB 0*16kB 1*32kB 2*64kB 0*128kB 1*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB = 1000kB
1 Time(s): Swap cache: add 0, delete 0, find 0/0, race 0+0
1 Time(s): cpu 0 cold: low 0, high 2, batch 1
1 Time(s): cpu 0 cold: low 0, high 28, batch 14
1 Time(s): cpu 0 hot: low 2, high 6, batch 1
1 Time(s): cpu 0 hot: low 28, high 84, batch 14
1 Time(s): oom-killer: gfp_mask=0x1d2
1 Time(s): protections[]: 0 0 0
1 Time(s): protections[]: 0 238 238
1 Time(s): protections[]: 14 252 252

Cheers,

Iwan Sanders




2005-04-14 08:23:11

by Coywolf Qi Hunt

[permalink] [raw]
Subject: Re: Kernel messages

On 4/14/05, Iwan Sanders <[email protected]> wrote:
> Can someone explain to me what just happend? I would really like to know
> :-)
> I think that the machine ran out of memory and the OOM killer shot some
> processes, this is what I found
> in my logfiles:
>
> 1 Time(s): Active:48588 inactive:152 dirty:0 writeback:7 unstable:0 free:502 slab:13664 mapped:48620 pagetables:325
> 1 Time(s): DMA free:1008kB min:28kB low:56kB high:84kB active:7364kB inactive:0kB present:16384kB
> 1 Time(s): DMA per-cpu:
> 1 Time(s): DMA: 0*4kB 0*8kB 1*16kB 7*32kB 4*64kB 0*128kB 0*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB = 1008kB
> 1 Time(s): Free pages: 2008kB (0kB HighMem)
> 1 Time(s): HighMem free:0kB min:128kB low:256kB high:384kB active:0kB inactive:0kB present:0kB
> 1 Time(s): HighMem per-cpu: empty
> 1 Time(s): HighMem: empty
> 1 Time(s): Normal free:1000kB min:476kB low:952kB high:1428kB active:186988kB inactive:608kB present:245120kB
> 1 Time(s): Normal per-cpu:
> 1 Time(s): Normal: 14*4kB 2*8kB 0*16kB 1*32kB 2*64kB 0*128kB 1*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB = 1000kB
> 1 Time(s): Swap cache: add 0, delete 0, find 0/0, race 0+0
> 1 Time(s): cpu 0 cold: low 0, high 2, batch 1
> 1 Time(s): cpu 0 cold: low 0, high 28, batch 14
> 1 Time(s): cpu 0 hot: low 2, high 6, batch 1
> 1 Time(s): cpu 0 hot: low 28, high 84, batch 14
> 1 Time(s): oom-killer: gfp_mask=0x1d2
> 1 Time(s): protections[]: 0 0 0
> 1 Time(s): protections[]: 0 238 238
> 1 Time(s): protections[]: 14 252 252
>
> Cheers,
>
> Iwan Sanders
>

Yes, oom, and your kernel is a bit old.

--
Coywolf Qi Hunt
http://sosdg.org/~coywolf/

2005-04-14 12:22:24

by Diego Calleja

[permalink] [raw]
Subject: Re: Kernel messages

El Thu, 14 Apr 2005 10:03:24 +0200,
Iwan Sanders <[email protected]> escribi?:

> Can someone explain to me what just happend? I would really like to know
> :-)
> I think that the machine ran out of memory and the OOM killer shot some
> processes, this is what I found
> in my logfiles:

This is exactly the kind of reports that I wanted to avoid with this small cosmetic change:


--- stable/mm/oom_kill.c.orig 2005-04-02 17:44:14.000000000 +0200
+++ stable/mm/oom_kill.c 2005-04-02 18:01:02.000000000 +0200
@@ -189,7 +189,8 @@
return;
}
task_unlock(p);
- printk(KERN_ERR "Out of Memory: Killed process %d (%s).\n", p->pid, p->comm);
+ printk(KERN_ERR "The system has run Out Of Memory (RAM + swap), a process will be killed to free some memory\n");
+ printk(KERN_ERR "OOM: Killed process %d (%s).\n", p->pid, p->comm);

/*
* We give our sacrificial lamb high priority and access to