Skip to contentSkip to conversation

__alloc_pages: 0-order allocation failed

DISCUSSION Oliver König 2 participants 2 messages May 31, 2006 – Jun 1, 2006

lore
Share & tools
lore
#0 lore raw

I run Debian 3.1 (Sarge) with Debian-Kernel 2.4.27-3-686-smp on Dell Poweredge 2850 with the following setup/config:

Model: Dell Poweredge 2850

CPU: 2x3.0 GHz

RAM: 2 GB
SWAP: 1 GB
Raid 1 with Dell PowerEdge Expandable RAID controller 4 (SCSI)
Kernel: 2.4.27-3-686-smp (CONFIG_HIGHMEM4G=y)
Web server: apache2
SQL server: mysql4.1
MTA: exim4

Occasionally all of a sudden the load average increases from around 1 to 50-150. Primarily apache2 and also mysql are then consuming most of the CPU and memory. I checked the hardware with the Dell 32-bit diagnostic but could not find any errors. /var/log/message produces the following or similar output:

May 24 09:06:44 server kernel: VM: killing process cron
May 24 09:06:44 server kernel: __alloc_pages: 0-order allocation failed 
(gfp=0x1d2/0)
May 24 09:06:44 server last message repeated 6 times
May 24 09:06:44 server kernel: VM: killing process apache2
May 24 09:06:56 server logger: Hole TAFSYNOP-Wetterdaten...
May 24 09:11:09 server kernel: __alloc_pages: 0-order allocation failed 

(gfp=0x1d2/0)
[..]

The server is then so slow tom react that the only way to get rid of the problem is to reset the server.

What can we do to fix the problem?
Thanks.
Oliver

#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Oliver" == Oliver K�nig <[email protected]> writes:

Oliver> I run Debian 3.1 (Sarge) with Debian-Kernel 2.4.27-3-686-smp Oliver> on Dell Poweredge 2850 with the following setup/config:

Oliver> Model: Dell Poweredge 2850 CPU: 2x3.0 GHz RAM: 2 GB SWAP: 1 GB Oliver> Raid 1 with Dell PowerEdge Expandable RAID controller 4 (SCSI) Oliver> Kernel: 2.4.27-3-686-smp (CONFIG_HIGHMEM4G=y) Web server:
Oliver> apache2 SQL server: mysql4.1 MTA: exim4

[snip]

Oliver> The server is then so slow tom react that the only way to get Oliver> rid of the problem is to reset the server.

Oliver> What can we do to fix the problem?

0-order allocations means it cannot get even a single page of free memory. You also see in the log the the OOM is kicking in. In other words, totally out of memory.

You have two options, add more swap or add more memory. At the same time it might be a good idea to try and monitor it to find out which tasks are chewing away that much memory.

Cheers,
Jes