kernel BUG at mm/slqb.c:1411!
Todays test (repeated large file copy) hit kernel panic. mm/slqb.c:1411! mean
----------------------------------------------------------------
static noinline void *__slab_alloc_page(struct kmem_cache *s,
gfp_t gfpflags, int node)
{
(snip)
} else {
#ifdef CONFIG_NUMA
struct kmem_cache_node *n;
n = s->node_slab[slqb_page_to_nid(page)];
l = &n->list;
page->list = l;
spin_lock(&n->list_lock);
l->nr_slabs++;
l->nr_partial++;
list_add(&page->lru, &l->partial);
slqb_stat_inc(l, ALLOC);
slqb_stat_inc(l, ALLOC_SLAB_NEW);
object = __cache_list_get_page(s, l);
spin_unlock(&n->list_lock);
#endif
}
VM_BUG_ON(!object); // here
return object;
}----------------------------------------------------------------
Who have any suggestions?
-------------------------------------------------------------------
kernel BUG at mm/slqb.c:1411!
pdflush[324]: bugcheck! 0 [1]
Modules linked in: binfmt_misc nls_iso8859_1 nls_cp437 dm_multipath scsi_dh fan sg processor button container thermal e100 mii dm_snapshot dm_zero dm_mirror dm_region_hash dm_log dm_mod lpfc mptspi mptscsih mptbase ehci_hcd ohci_hcd uhci_hcd usbcore
Pid: 324, CPU 1, comm: pdflush
psr : 00001010085a2010 ifs : 8000000000000916 ip : [<a0000001001bb960>] Not tainted (2.6.30-rc4-mm1-g384655e-dirty)
ip is at __slab_alloc_page+0x800/0x9e0
unat: 0000000000000000 pfs : 0000000000000916 rsc : 0000000000000003
rnat: 0000000000000001 bsps: a000000100d5b880 pr : 005599aa55559599
ldrs: 0000000000000000 ccv : 0000000000000000 fpsr: 0009804c8a70433f csd : 0000000000000000 ssd : 0000000000000000
b0 : a0000001001bb960 b6 : a0000001005a78e0 b7 : a00000010048bac0 f6 : 1003e000005cef074293b f7 : 1003e0000000000000190 f8 : 1003e000005cef07427ab f9 : 1003e0000000000000001 f10 : 1003e0000000000000100 f11 : 1003e0000000000000100 r1 : a000000100f52d40 r2 : a000000100d263a0 r3 : a000000100d53708 r8 : 0000000000000021 r9 : 0000000000000001 r10 : e000000001110000 r11 : ffffffffffff0420 r12 : e0000040c1ccfc20 r13 : e0000040c1cc0000 r14 : a000000100d263b8 r15 : e00001600b91fe18 r16 : ffffffffffff5538 r17 : 00000000dead4ead r18 : a000000100cd222c r19 : a000000100d5b850 r20 : a0000001005a78e0 r21 : a000000101144ae0 r22 : 0000000000099a63 r23 : 00000000000fffff r24 : 0000000000100000 r25 : a0000001009e7a68 r26 : a00000010048bb60 r27 : 0000000000000100 r28 : 0000000000000001 r29 : e0000040c1cc0de4 r30 : a00000010048bac0 r31 : 0000000000000000
Call Trace:
[<a0000001000179c0>] show_stack+0x80/0xa0
sp=e0000040c1ccf7f0 bsp=e0000040c1cc1730
[<a0000001000182d0>] show_regs+0x890/0x8c0
sp=e0000040c1ccf9c0 bsp=e0000040c1cc16d8
[<a000000100040b50>] die+0x1b0/0x2e0
sp=e0000040c1ccf9c0 bsp=e0000040c1cc1690
[<a000000100040cd0>] die_if_kernel+0x50/0x80
sp=e0000040c1ccf9c0 bsp=e0000040c1cc1660
[<a0000001007cc5f0>] ia64_bad_break+0x4b0/0x700
sp=e0000040c1ccf9c0 bsp=e0000040c1cc1638
[<a00000010000c980>] ia64_native_leave_kernel+0x0/0x270
sp=e0000040c1ccfa50 bsp=e0000040c1cc1638
[<a0000001001bb960>] __slab_alloc_page+0x800/0x9e0
sp=e0000040c1ccfc20 bsp=e0000040c1cc1580
[<a0000001001bd570>] kmem_cache_alloc+0x510/0x700
sp=e0000040c1ccfc20 bsp=e0000040c1cc14f0
[<a000000100149ad0>] mempool_alloc_slab+0x30/0x60
sp=e0000040c1ccfc20 bsp=e0000040c1cc14c8
[<a00000010014a1a0>] mempool_alloc+0xc0/0x360
sp=e0000040c1ccfc20 bsp=e0000040c1cc1440
[<a00000010022f4d0>] bio_alloc_bioset+0x50/0x240
sp=e0000040c1ccfc50 bsp=e0000040c1cc13f0
[<a00000010022f790>] bio_alloc+0x30/0x80
sp=e0000040c1ccfc60 bsp=e0000040c1cc13c8
[<a000000100220a90>] submit_bh+0x130/0x3e0
sp=e0000040c1ccfc60 bsp=e0000040c1cc1398
[<a000000100226d90>] __block_write_full_page+0x510/0xbc0
sp=e0000040c1ccfc60 bsp=e0000040c1cc1310
[<a0000001002275f0>] block_write_full_page_endio+0x1b0/0x220
sp=e0000040c1ccfc60 bsp=e0000040c1cc12d0
[<a000000100227690>] block_write_full_page+0x30/0x60
sp=e0000040c1ccfc60 bsp=e0000040c1cc12a0
[<a0000001002a9210>] ext3_writeback_writepage+0x190/0x380
sp=e0000040c1ccfc60 bsp=e0000040c1cc1260
[<a0000001001566b0>] __writepage+0x50/0x1a0
sp=e0000040c1ccfc60 bsp=e0000040c1cc1230
[<a000000100157370>] write_cache_pages+0x530/0x940
sp=e0000040c1ccfc60 bsp=e0000040c1cc1140
[<a0000001001577e0>] generic_writepages+0x60/0x80
sp=e0000040c1ccfcf0 bsp=e0000040c1cc1118
[<a000000100157910>] do_writepages+0x110/0x140
sp=e0000040c1ccfcf0 bsp=e0000040c1cc10e8
[<a000000100214c20>] __writeback_single_inode+0x160/0x9a0
sp=e0000040c1ccfcf0 bsp=e0000040c1cc1088
[<a000000100215d40>] generic_sync_sb_inodes+0x3c0/0xa00
sp=e0000040c1ccfd30 bsp=e0000040c1cc1018
[<a000000100216420>] sync_sb_inodes+0xa0/0xc0
sp=e0000040c1ccfd30 bsp=e0000040c1cc0fe8
[<a000000100216620>] writeback_inodes+0x1e0/0x280
sp=e0000040c1ccfd30 bsp=e0000040c1cc0f98
[<a000000100159ba0>] background_writeout+0x160/0x240
sp=e0000040c1ccfd30 bsp=e0000040c1cc0f30
[<a00000010015b010>] pdflush+0x290/0x500
sp=e0000040c1ccfd80 bsp=e0000040c1cc0ec0
[<a0000001000df800>] kthread+0x100/0x140
sp=e0000040c1ccfdf0 bsp=e0000040c1cc0e88
[<a000000100015970>] kernel_thread_helper+0xd0/0x100
sp=e0000040c1ccfe30 bsp=e0000040c1cc0e60
[<a00000010000a580>] start_kernel_thread+0x20/0x40
sp=e0000040c1ccfe30 bsp=e0000040c1cc0e60
Disabling lock debugging due to kernel taint
Kernel panic - not syncing: Fatal exceptionRebooting in 1 seconds..
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
On Wed, 13 May 2009 16:42:37 +0900 (JST) KOSAKI Motohiro <[email protected]> wrote:
Hmm. I don't know slqb well.
So, It's just my guess.
We surely increase l->nr_partial in __slab_alloc_page.
In between l->nr_partial++ and call __cache_list_get_page, Who is decrease l->nr_partial again. After all, __cache_list_get_page return NULL and hit the VM_BUG_ON.
Comment said :
/* Protects nr_partial, nr_slabs, and partial */
spinlock_t page_lock;
As comment is right, We have to hold the l->page_lock ?
Signature · 8 lines
Kinds Regards Minchan Kim -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 10 lines · Minchan Kim
On Wed, 13 May 2009 16:42:37 +0900 (JST) KOSAKI Motohiro <[email protected]> wrote:
Hmm. I don't know slqb well.
So, It's just my guess.We surely increase
l->nr_partialin__slab_alloc_page.
In between l->nr_partial++ and call__cache_list_get_page, Who is decreasel->nr_partialagain. After all,__cache_list_get_pagereturn NULL and hit theVM_BUG_ON.
Quoted 6 lines
Comment said :
/* Protects nr_partial, nr_slabs, and partial */
spinlock_tpage_lock;As comment is right, We have to hold the
l->page_lock?
Makes sense. Nick? Motohiro-san, can you try this patch please?
Pekka
mm/slqb.c +2 -0
@@ -1399,12 +1399,14 @@ static noinline void *__slab_alloc_page(struct kmem_cache *s, page->list = l;spin_lock (&n->list_lock); +spin_lock (&l->page_lock); l->nr_slabs++; l->nr_partial++;list_add (&page->lru, &l->partial);slqb_stat_inc (l,ALLOC );slqb_stat_inc (l,ALLOC_SLAB_NEW ); object =__cache_list_get_page (s, l); +spin_unlock (&l->page_lock);spin_unlock (&n->list_lock);#endif }
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 11 lines · Minchan Kim
Quoted 10 lines
On Wed, 13 May 2009 16:42:37 +0900 (JST) KOSAKI Motohiro <[email protected]> wrote:
Hmm. I don't know slqb well.
So, It's just my guess.We surely increase
l->nr_partialin__slab_alloc_page.
In between l->nr_partial++ and call__cache_list_get_page, Who is decreasel->nr_partialagain. After all,__cache_list_get_pagereturn NULL and hit theVM_BUG_ON.
Quoted 8 lines
Quoted 6 lines
Comment said :
/* Protects nr_partial, nr_slabs, and partial */
spinlock_tpage_lock;As comment is right, We have to hold the
l->page_lock?Makes sense. Nick? Motohiro-san, can you try this patch please?
This issue is very rarely. please give me one night.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 13 lines
Quoted 13 lines · Minchan Kim
Quoted 12 lines
On Wed, 13 May 2009 16:42:37 +0900 (JST) KOSAKI Motohiro <[email protected]> wrote:
Hmm. I don't know slqb well.
So, It's just my guess.We surely increase
l->nr_partialin__slab_alloc_page.
In between l->nr_partial++ and call__cache_list_get_page, Who is decreasel->nr_partialagain. After all,__cache_list_get_pagereturn NULL and hit theVM_BUG_ON.Comment said :
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
/* Protects nr_partial, nr_slabs, and partial */
spinlock_tpage_lock;As comment is right, We have to hold the
l->page_lock?Makes sense. Nick? Motohiro-san, can you try this patch please?
This issue is very rarely. please give me one night.
-ENOTREPRODUCED
I guess your patch is right fix. thanks!
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Hi Motohiro-san,
Quoted 20 lines · Minchan Kim
Quoted 20 lines
Quoted 10 lines
Quoted 10 lines
On Wed, 13 May 2009 16:42:37 +0900 (JST) KOSAKI Motohiro <[email protected]> wrote:
Hmm. I don't know slqb well.
So, It's just my guess.We surely increase
l->nr_partialin__slab_alloc_page.
In between l->nr_partial++ and call__cache_list_get_page, Who is decreasel->nr_partialagain. After all,__cache_list_get_pagereturn NULL and hit theVM_BUG_ON.Quoted 8 lines
Quoted 6 lines
Comment said :
/* Protects nr_partial, nr_slabs, and partial */
spinlock_tpage_lock;As comment is right, We have to hold the
l->page_lock?Makes sense. Nick? Motohiro-san, can you try this patch please?
This issue is very rarely. please give me one night.
Quoted 3 lines · KOSAKI Motohiro
-ENOTREPRODUCEDI guess your patch is right fix. thanks!
Thank you so much for testing!
Nick seems to have gone silent for the past few days so I went ahead and merged the patch.
Did you have CONFIG_PROVE_LOCKING enabled, btw? I think I got the lock order correct but I don't have a NUMA machine to test it with here.
Pekka
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
2009/5/15 Pekka Enberg <[email protected]>:
Quoted 29 lines
Hi Motohiro-san,
Quoted 20 lines · Minchan Kim
Quoted 20 lines
Quoted 10 lines
Quoted 10 lines
On Wed, 13 May 2009 16:42:37 +0900 (JST) KOSAKI Motohiro <[email protected]> wrote:
Hmm. I don't know slqb well.
So, It's just my guess.We surely increase
l->nr_partialin __slab_alloc_page.
In between l->nr_partial++ and call__cache_list_get_page, Who is decreasel->nr_partialagain. After all,__cache_list_get_pagereturn NULL and hit theVM_BUG_ON.Quoted 8 lines
Quoted 6 lines
Comment said :
/* Protects
nr_partial,nr_slabs, and partial */spinlock_tpage_lock;As comment is right, We have to hold the
l->page_lock?Makes sense. Nick? Motohiro-san, can you try this patch please?
This issue is very rarely. please give me one night.
Quoted 3 lines · KOSAKI Motohiro
-ENOTREPRODUCEDI guess your patch is right fix. thanks!
Quoted 7 lines
Thank you so much for testing!
Nick seems to have gone silent for the past few days so I went ahead and merged the patch.
Did you have
CONFIG_PROVE_LOCKINGenabled, btw? I think I got the lock order correct but I don't have a NUMA machine to test it with here.
my x86_64 with CONFIG_PROVE_LOCKING don't output any warnings.
thanks.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 4 lines · Pekka Enberg
Hi Motohiro-san,
On Wed, 2009-05-13 at 17:37 +0900, Minchan Kim wrote:
On Fri, 2009-05-15 at 08:38 +0900, KOSAKI Motohiro wrote:
Quoted 8 lines
Quoted 3 lines
-ENOTREPRODUCEDI guess your patch is right fix. thanks!
Thank you so much for testing!
Nick seems to have gone silent for the past few days so I went ahead and merged the patch.
Sorry Pekka... I do think the patch looks OK, thanks for that.
Quoted 2 lines
Did you have
CONFIG_PROVE_LOCKINGenabled, btw? I think I got the lock order correct but I don't have a NUMA machine to test it with here.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 1 line · KOSAKI Motohiro
Todays test (repeated large file copy) hit kernel panic.
mm/slqb.c:1411! mean
Can you post your .config, please? I assume this is with CONFIG_NUMA?
Quoted 124 lines
----------------------------------------------------------------
static noinline void *__slab_alloc_page(structkmem_cache*s,
gfp_tgfpflags, int node)
{
(snip)} else { #ifdef CONFIG_NUMA struct kmem_cache_node *n; n = s->node_slab[slqb_page_to_nid(page)]; l = &n->list; page->list = l; spin_lock(&n->list_lock); l->nr_slabs++; l->nr_partial++; list_add(&page->lru, &l->partial); slqb_stat_inc(l, ALLOC); slqb_stat_inc(l, ALLOC_SLAB_NEW); object = __cache_list_get_page(s, l); spin_unlock(&n->list_lock); #endif } VM_BUG_ON(!object); // here return object; }----------------------------------------------------------------
Who have any suggestions?
-------------------------------------------------------------------
kernel BUG atmm/slqb.c:1411!
pdflush[324]: bugcheck! 0 [1]Modules linked in: binfmt_misc nls_iso8859_1 nls_cp437 dm_multipath scsi_dh fan sg processor button container thermal e100 mii dm_snapshot dm_zero dm_mirror dm_region_hash dm_log dm_mod lpfc mptspi mptscsih mptbase ehci_hcd ohci_hcd uhci_hcd usbcorePid: 324, CPU 1, comm: pdflush
psr :00001010085a2010ifs : 8000000000000916 ip : [<a0000001001bb960>] Not tainted (2.6.30-rc4-mm1-g384655e-dirty)
ip is at__slab_alloc_page+0x800/0x9e0
unat: 0000000000000000 pfs : 0000000000000916 rsc : 0000000000000003
rnat: 0000000000000001 bsps:a000000100d5b880pr :005599aa55559599
ldrs: 0000000000000000 ccv : 0000000000000000 fpsr:0009804c8a70433fcsd : 0000000000000000 ssd : 0000000000000000
b0 :a0000001001bb960b6 :a0000001005a78e0b7 :a00000010048bac0f6 :1003e000005cef074293bf7 :1003e0000000000000190f8 :1003e000005cef07427abf9 :1003e0000000000000001f10 :1003e0000000000000100f11 :1003e0000000000000100r1 :a000000100f52d40r2 :a000000100d263a0r3 :a000000100d53708r8 : 0000000000000021 r9 : 0000000000000001 r10 :e000000001110000r11 :ffffffffffff0420r12 :e0000040c1ccfc20r13 :e0000040c1cc0000r14 :a000000100d263b8r15 :e00001600b91fe18r16 :ffffffffffff5538r17 :00000000dead4eadr18 :a000000100cd222cr19 :a000000100d5b850r20 :a0000001005a78e0r21 :a000000101144ae0r22 :0000000000099a63r23 :00000000000fffffr24 : 0000000000100000 r25 :a0000001009e7a68r26 :a00000010048bb60r27 : 0000000000000100 r28 : 0000000000000001 r29 :e0000040c1cc0de4r30 :a00000010048bac0r31 : 0000000000000000Call Trace: [<a0000001000179c0>] show_stack+0x80/0xa0 sp=e0000040c1ccf7f0 bsp=e0000040c1cc1730 [<a0000001000182d0>] show_regs+0x890/0x8c0 sp=e0000040c1ccf9c0 bsp=e0000040c1cc16d8 [<a000000100040b50>] die+0x1b0/0x2e0 sp=e0000040c1ccf9c0 bsp=e0000040c1cc1690 [<a000000100040cd0>] die_if_kernel+0x50/0x80 sp=e0000040c1ccf9c0 bsp=e0000040c1cc1660 [<a0000001007cc5f0>] ia64_bad_break+0x4b0/0x700 sp=e0000040c1ccf9c0 bsp=e0000040c1cc1638 [<a00000010000c980>] ia64_native_leave_kernel+0x0/0x270 sp=e0000040c1ccfa50 bsp=e0000040c1cc1638 [<a0000001001bb960>] __slab_alloc_page+0x800/0x9e0 sp=e0000040c1ccfc20 bsp=e0000040c1cc1580 [<a0000001001bd570>] kmem_cache_alloc+0x510/0x700 sp=e0000040c1ccfc20 bsp=e0000040c1cc14f0 [<a000000100149ad0>] mempool_alloc_slab+0x30/0x60 sp=e0000040c1ccfc20 bsp=e0000040c1cc14c8 [<a00000010014a1a0>] mempool_alloc+0xc0/0x360 sp=e0000040c1ccfc20 bsp=e0000040c1cc1440 [<a00000010022f4d0>] bio_alloc_bioset+0x50/0x240 sp=e0000040c1ccfc50 bsp=e0000040c1cc13f0 [<a00000010022f790>] bio_alloc+0x30/0x80 sp=e0000040c1ccfc60 bsp=e0000040c1cc13c8 [<a000000100220a90>] submit_bh+0x130/0x3e0 sp=e0000040c1ccfc60 bsp=e0000040c1cc1398 [<a000000100226d90>] __block_write_full_page+0x510/0xbc0 sp=e0000040c1ccfc60 bsp=e0000040c1cc1310 [<a0000001002275f0>] block_write_full_page_endio+0x1b0/0x220 sp=e0000040c1ccfc60 bsp=e0000040c1cc12d0 [<a000000100227690>] block_write_full_page+0x30/0x60 sp=e0000040c1ccfc60 bsp=e0000040c1cc12a0 [<a0000001002a9210>] ext3_writeback_writepage+0x190/0x380 sp=e0000040c1ccfc60 bsp=e0000040c1cc1260 [<a0000001001566b0>] __writepage+0x50/0x1a0 sp=e0000040c1ccfc60 bsp=e0000040c1cc1230 [<a000000100157370>] write_cache_pages+0x530/0x940 sp=e0000040c1ccfc60 bsp=e0000040c1cc1140 [<a0000001001577e0>] generic_writepages+0x60/0x80 sp=e0000040c1ccfcf0 bsp=e0000040c1cc1118 [<a000000100157910>] do_writepages+0x110/0x140 sp=e0000040c1ccfcf0 bsp=e0000040c1cc10e8 [<a000000100214c20>] __writeback_single_inode+0x160/0x9a0 sp=e0000040c1ccfcf0 bsp=e0000040c1cc1088 [<a000000100215d40>] generic_sync_sb_inodes+0x3c0/0xa00 sp=e0000040c1ccfd30 bsp=e0000040c1cc1018 [<a000000100216420>] sync_sb_inodes+0xa0/0xc0 sp=e0000040c1ccfd30 bsp=e0000040c1cc0fe8 [<a000000100216620>] writeback_inodes+0x1e0/0x280 sp=e0000040c1ccfd30 bsp=e0000040c1cc0f98 [<a000000100159ba0>] background_writeout+0x160/0x240 sp=e0000040c1ccfd30 bsp=e0000040c1cc0f30 [<a00000010015b010>] pdflush+0x290/0x500 sp=e0000040c1ccfd80 bsp=e0000040c1cc0ec0 [<a0000001000df800>] kthread+0x100/0x140 sp=e0000040c1ccfdf0 bsp=e0000040c1cc0e88 [<a000000100015970>] kernel_thread_helper+0xd0/0x100 sp=e0000040c1ccfe30 bsp=e0000040c1cc0e60 [<a00000010000a580>] start_kernel_thread+0x20/0x40 sp=e0000040c1ccfe30 bsp=e0000040c1cc0e60 Disabling lock debugging due to kernel taint Kernel panic - not syncing: Fatal exception
Quoted 6 lines
Rebooting in 1 seconds..
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 4 lines · KOSAKI Motohiro
Quoted 1 line
Todays test (repeated large file copy) hit kernel panic.
mm/slqb.c:1411! meanCan you post your .config, please? I assume this is with
CONFIG_NUMA?
yes, numa. attached (it is ia64 config).