Page Allocation Failures Return With 2.6.9+TSO patch.
Subsystems (5)
Kernel 2.6.9 w/TSO patch.
(most likely do to the e1000/nic/issue)
$ dmesg gaim: page allocation failure. order:4, mode:0x21 [<c01391a7>] __alloc_pages+0x247/0x3b0 [<c0139328>] __get_free_pages+0x18/0x40 [<c035c33a>] sound_alloc_dmap+0xaa/0x1b0 [<c03648c0>] ad_mute+0x20/0x40 [<c035c70f>] open_dmap+0x1f/0x100 [<c035cb58>] DMAbuf_open+0x178/0x1d0 [<c035a4fa>] audio_open+0xba/0x280 [<c015d863>] cdev_get+0x53/0xc0 [<c035968c>] sound_open+0xac/0x110 [<c035898e>] soundcore_open+0x1ce/0x300 [<c03587c0>] soundcore_open+0x0/0x300 [<c015d524>] chrdev_open+0x104/0x250 [<c015d420>] chrdev_open+0x0/0x250 [<c0152d82>] dentry_open+0x1d2/0x270 [<c0152b9c>] filp_open+0x5c/0x70 [<c01049c8>] common_interrupt+0x18/0x20 [<c0152e75>] get_unused_fd+0x55/0xf0 [<c0152fd9>] sys_open+0x49/0x90 [<c010405b>] syscall_call+0x7/0xb gaim: page allocation failure. order:4, mode:0x21 [<c01391a7>] __alloc_pages+0x247/0x3b0 [<c0139328>] __get_free_pages+0x18/0x40 [<c035c33a>] sound_alloc_dmap+0xaa/0x1b0 [<c03648c0>] ad_mute+0x20/0x40 [<c035c70f>] open_dmap+0x1f/0x100 [<c035ca9d>] DMAbuf_open+0xbd/0x1d0 [<c035a4fa>] audio_open+0xba/0x280 [<c015d863>] cdev_get+0x53/0xc0 [<c035968c>] sound_open+0xac/0x110 [<c035898e>] soundcore_open+0x1ce/0x300 [<c03587c0>] soundcore_open+0x0/0x300 [<c015d524>] chrdev_open+0x104/0x250 [<c015d420>] chrdev_open+0x0/0x250 [<c0152d82>] dentry_open+0x1d2/0x270 [<c0152b9c>] filp_open+0x5c/0x70 [<c01049c8>] common_interrupt+0x18/0x20 [<c0152e75>] get_unused_fd+0x55/0xf0 [<c0152fd9>] sys_open+0x49/0x90 [<c010405b>] syscall_call+0x7/0xb gaim: page allocation failure. order:4, mode:0x21 [<c01391a7>] __alloc_pages+0x247/0x3b0 [<c0139328>] __get_free_pages+0x18/0x40 [<c035c33a>] sound_alloc_dmap+0xaa/0x1b0 [<c03648c0>] ad_mute+0x20/0x40 [<c035c70f>] open_dmap+0x1f/0x100 [<c035cb58>] DMAbuf_open+0x178/0x1d0 [<c035a4fa>] audio_open+0xba/0x280 [<c035968c>] sound_open+0xac/0x110 [<c035898e>] soundcore_open+0x1ce/0x300 [<c03587c0>] soundcore_open+0x0/0x300 [<c015d524>] chrdev_open+0x104/0x250 [<c015d420>] chrdev_open+0x0/0x250 [<c0152d82>] dentry_open+0x1d2/0x270 [<c0152b9c>] filp_open+0x5c/0x70 [<c0152e75>] get_unused_fd+0x55/0xf0 [<c0152fd9>] sys_open+0x49/0x90 [<c010405b>] syscall_call+0x7/0xb gaim: page allocation failure. order:4, mode:0x21 [<c01391a7>] __alloc_pages+0x247/0x3b0 [<c0139328>] __get_free_pages+0x18/0x40 [<c035c33a>] sound_alloc_dmap+0xaa/0x1b0 [<c03648c0>] ad_mute+0x20/0x40 [<c035c70f>] open_dmap+0x1f/0x100 [<c035ca9d>] DMAbuf_open+0xbd/0x1d0 [<c035a4fa>] audio_open+0xba/0x280 [<c035968c>] sound_open+0xac/0x110 [<c035898e>] soundcore_open+0x1ce/0x300 [<c03587c0>] soundcore_open+0x0/0x300 [<c015d524>] chrdev_open+0x104/0x250 [<c015d420>] chrdev_open+0x0/0x250 [<c0152d82>] dentry_open+0x1d2/0x270 [<c0152b9c>] filp_open+0x5c/0x70 [<c0152e75>] get_unused_fd+0x55/0xf0 [<c0152fd9>] sys_open+0x49/0x90 [<c010405b>] syscall_call+0x7/0xb $
Quoted 17 lines · Justin Piszcz
Kernel 2.6.9 w/TSO patch.
(most likely do to the e1000/nic/issue)
$ dmesg gaim: page allocation failure. order:4, mode:0x21 [<c01391a7>] __alloc_pages+0x247/0x3b0 [<c0139328>] __get_free_pages+0x18/0x40 [<c035c33a>] sound_alloc_dmap+0xaa/0x1b0 [<c03648c0>] ad_mute+0x20/0x40 [<c035c70f>] open_dmap+0x1f/0x100 [<c035cb58>] DMAbuf_open+0x178/0x1d0 [<c035a4fa>] audio_open+0xba/0x280 [<c015d863>] cdev_get+0x53/0xc0 [<c035968c>] sound_open+0xac/0x110 [<c035898e>] soundcore_open+0x1ce/0x300 [<c03587c0>] soundcore_open+0x0/0x300
Quoted 8 lines
[<c015d524>] chrdev_open+0x104/0x250 [<c015d420>] chrdev_open+0x0/0x250 [<c0152d82>] dentry_open+0x1d2/0x270 [<c0152b9c>] filp_open+0x5c/0x70 [<c01049c8>] common_interrupt+0x18/0x20 [<c0152e75>] get_unused_fd+0x55/0xf0 [<c0152fd9>] sys_open+0x49/0x90 [<c010405b>] syscall_call+0x7/0xb
Ouch, 64K atomic DMA allocation.
The DMA zone barely even keeps that much total memory free.
The caller probably wants fixing, but you could try this patch...
---
linux-2.6-npiggin/include/linux/mmzone.h | 8 ++ linux-2.6-npiggin/mm/page_alloc.c | 83 ++++++++++++++++++------------- linux-2.6-npiggin/mm/vmscan.c | 46 ++++++++++------- 3 files changed, 82 insertions(+), 55 deletions(-)
include/linux/mmzone.h renamed from include/linux/mmzone.h~rollup +6 -2
@@ -23,6 +23,7 @@struct free_area {struct list_head free_list;unsigned long *map; +unsigned long nr_free; };struct pglist_data ;
@@ -262,8 +263,9 @@ typedef struct pglist_data {range, including holes */ int node_id;struct pglist_data *pgdat_next; -wait_queue_head_t kswapd_wait; +wait_queue_head_t kswapd_wait;struct task_struct *kswapd; +int kswapd_max_order; } pg_data_t;#define node_present_pages (nid) (NODE_DATA(nid)->node_present_pages)
@@ -277,7 +279,9 @@ void __get_zone_counts(unsigned long *acvoid get_zone_counts (unsigned long *active,unsigned long *inactive,unsigned long *free);void build_all_zonelists (void ); -void wakeup_kswapd (struct zone *zone); +void wakeup_kswapd (struct zone *zone,int order); +int zone_watermark_ok (struct zone *z,int order,unsigned long mark, +int alloc_type,int can_try_harder,int gfp_high);/* * zone_idx() returns 0 for the ZONE_DMA zone, 1 for the ZONE_NORMAL zone, etc.
mm/page_alloc.c renamed from mm/page_alloc.c~rollup +49 -34
180 lines not on this page · raw message
mm/vmscan.c renamed from mm/vmscan.c~rollup +27 -19
103 lines not on this page · raw message
_
Applying this patch now and I will let everyone know what happens, thanks.
Quoted 33 lines · Nick Piggin
Quoted 17 lines · Justin Piszcz
Kernel 2.6.9 w/TSO patch.
(most likely do to the e1000/nic/issue)
$ dmesg gaim: page allocation failure. order:4, mode:0x21 [<c01391a7>] __alloc_pages+0x247/0x3b0 [<c0139328>] __get_free_pages+0x18/0x40 [<c035c33a>] sound_alloc_dmap+0xaa/0x1b0 [<c03648c0>] ad_mute+0x20/0x40 [<c035c70f>] open_dmap+0x1f/0x100 [<c035cb58>] DMAbuf_open+0x178/0x1d0 [<c035a4fa>] audio_open+0xba/0x280 [<c015d863>] cdev_get+0x53/0xc0 [<c035968c>] sound_open+0xac/0x110 [<c035898e>] soundcore_open+0x1ce/0x300 [<c03587c0>] soundcore_open+0x0/0x300Quoted 8 lines
[<c015d524>] chrdev_open+0x104/0x250 [<c015d420>] chrdev_open+0x0/0x250 [<c0152d82>] dentry_open+0x1d2/0x270 [<c0152b9c>] filp_open+0x5c/0x70 [<c01049c8>] common_interrupt+0x18/0x20 [<c0152e75>] get_unused_fd+0x55/0xf0 [<c0152fd9>] sys_open+0x49/0x90 [<c010405b>] syscall_call+0x7/0xbOuch, 64K atomic DMA allocation.
The DMA zone barely even keeps that much total memory free.
The caller probably wants fixing, but you could try this patch...
Quoted 40 lines · Justin Piszcz
Applying this patch now and I will let everyone know what happens, thanks.
Quoted 35 lines · Nick Piggin
Quoted 17 lines · Justin Piszcz
Kernel 2.6.9 w/TSO patch.
(most likely do to the e1000/nic/issue)
$ dmesg gaim: page allocation failure. order:4, mode:0x21 [<c01391a7>] __alloc_pages+0x247/0x3b0 [<c0139328>] __get_free_pages+0x18/0x40 [<c035c33a>] sound_alloc_dmap+0xaa/0x1b0 [<c03648c0>] ad_mute+0x20/0x40 [<c035c70f>] open_dmap+0x1f/0x100 [<c035cb58>] DMAbuf_open+0x178/0x1d0 [<c035a4fa>] audio_open+0xba/0x280 [<c015d863>] cdev_get+0x53/0xc0 [<c035968c>] sound_open+0xac/0x110 [<c035898e>] soundcore_open+0x1ce/0x300 [<c03587c0>] soundcore_open+0x0/0x300Quoted 8 lines
[<c015d524>] chrdev_open+0x104/0x250 [<c015d420>] chrdev_open+0x0/0x250 [<c0152d82>] dentry_open+0x1d2/0x270 [<c0152b9c>] filp_open+0x5c/0x70 [<c01049c8>] common_interrupt+0x18/0x20 [<c0152e75>] get_unused_fd+0x55/0xf0 [<c0152fd9>] sys_open+0x49/0x90 [<c010405b>] syscall_call+0x7/0xbOuch, 64K atomic DMA allocation.
The DMA zone barely even keeps that much total memory free.
The caller probably wants fixing, but you could try this patch...
Oh... these allocation failure don't actually hurt anything, do they? sound_alloc_dmap would have just reverted to using a 32K buffer instead of a 64K one.
Probably the easiest thing to do is stick a __GFP_NOWARN on that allocation.
It does not seem like they do, but they cannot be good...
I have applied the following patches
1] TSO patch
2] rollup.patch
Rebooting now and will alert the list if/when I receive more page allocation failures.
FYI - I started getting these with 2.6.9.
(However, it was always possible on the Dell Optiplex GX1 to create page allocation failure with: ifconfig eth0 mtu 9000), however, on a higher-end machine (2.6GHZ, 2GB ram, etc) ifconfig eth0 mtu 9000 worked fine.
Is it something with the architecture of the box bus/box?
Why does it tend to affect one machine and not the other?
Quoted 49 lines · Nick Piggin
Quoted 40 lines · Justin Piszcz
Applying this patch now and I will let everyone know what happens, thanks.
Quoted 35 lines · Nick Piggin
Quoted 17 lines · Justin Piszcz
Kernel 2.6.9 w/TSO patch.
(most likely do to the e1000/nic/issue)
$ dmesg gaim: page allocation failure. order:4, mode:0x21 [<c01391a7>] __alloc_pages+0x247/0x3b0 [<c0139328>] __get_free_pages+0x18/0x40 [<c035c33a>] sound_alloc_dmap+0xaa/0x1b0 [<c03648c0>] ad_mute+0x20/0x40 [<c035c70f>] open_dmap+0x1f/0x100 [<c035cb58>] DMAbuf_open+0x178/0x1d0 [<c035a4fa>] audio_open+0xba/0x280 [<c015d863>] cdev_get+0x53/0xc0 [<c035968c>] sound_open+0xac/0x110 [<c035898e>] soundcore_open+0x1ce/0x300 [<c03587c0>] soundcore_open+0x0/0x300Quoted 8 lines
[<c015d524>] chrdev_open+0x104/0x250 [<c015d420>] chrdev_open+0x0/0x250 [<c0152d82>] dentry_open+0x1d2/0x270 [<c0152b9c>] filp_open+0x5c/0x70 [<c01049c8>] common_interrupt+0x18/0x20 [<c0152e75>] get_unused_fd+0x55/0xf0 [<c0152fd9>] sys_open+0x49/0x90 [<c010405b>] syscall_call+0x7/0xbOuch, 64K atomic DMA allocation.
The DMA zone barely even keeps that much total memory free.
The caller probably wants fixing, but you could try this patch...
Oh... these allocation failure don't actually hurt anything, do they?
sound_alloc_dmapwould have just reverted to using a 32K buffer instead of a 64K one.Probably the easiest thing to do is stick a
__GFP_NOWARNon that allocation.
Quoted 2 lines · Justin Piszcz
It does not seem like they do, but they cannot be good...
It seems almost inevitable that they'll happen, especially if a module is loaded after boot (this is actually somewhere that incremental min will help "echo some number > /proc/sys/vm/lower_zone_protection").
But from the code, the failures really won't hurt at all. It might double the number of interrupts coming from your soundcard, but I dare say you would never be able to notice a difference.
Quoted 5 lines
I have applied the following patches
1] TSO patch
2] rollup.patch
Quoted 8 lines
Rebooting now and will alert the list if/when I receive more page allocation failures.
FYI - I started getting these with 2.6.9.
(However, it was always possible on the Dell Optiplex GX1 to create page allocation failure with: ifconfig eth0 mtu 9000), however, on a higher-end machine (2.6GHZ, 2GB ram, etc) ifconfig eth0 mtu 9000 worked fine.
Is it something with the architecture of the box bus/box?
No, probably just different configurations or memory usage patterns of the kernel, maybe different drivers, etc.
Quoted 2 lines
Why does it tend to affect one machine and not the other?
Again, luck of the draw mainly. My patch should definitely help the TSO allocation failures (it probably won't fix the sound buffer alloc failure though, now that I've looked at it).