From: Solofo.Ramangalahy@bull.net Subject: Re: Soft lockups in mballoc code Date: Mon, 19 May 2008 16:47:56 +0200 Message-ID: <18481.37660.871969.813688@frecb006361.adech.frec.bull.fr> References: <25037.1210612895@alphaville.zko.hp.com> <1210785517.3657.42.camel@localhost.localdomain> <27364.1210787137@alphaville.zko.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: cmm@us.ibm.com, linux-ext4@vger.kernel.org To: nicholas.dokos@hp.com Return-path: Received: from ecfrec.frec.bull.fr ([129.183.4.8]:35040 "EHLO ecfrec.frec.bull.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751011AbYESOrd (ORCPT ); Mon, 19 May 2008 10:47:33 -0400 In-Reply-To: <27364.1210787137@alphaville.zko.hp.com> Sender: linux-ext4-owner@vger.kernel.org List-ID: Nick Dokos writes: > In the meantime, I wanted to let > you know that I tried the (stable) 2.6.25.3 kernel on x86-64 and encountered the > same problem, but I also tried it on an IA64 system (again with the > 2.6.25.3 kernel) and did *not* encounter the problem. Also reproduced (or similar) on 2.6.25.4. I will try to get a more focused test case... -- solofo BUG: soft lockup - CPU#0 stuck for 61s! [fsstress:16194] CPU 0: Modules linked in: ext4dev jbd2 crc16 Pid: 16194, comm: fsstress Not tainted 2.6.25.4 #1 RIP: 0010:[] [] :ext4dev:ext4_mb_new_blocks+0x8e4/0x154d RSP: 0018:ffff81011c1d97a8 EFLAGS: 00000202 RAX: 00000000ffffffff RBX: ffff810112de5c60 RCX: 0000000000000007 RDX: ffff81012d7789c0 RSI: 0000000000000008 RDI: ffffe200070fb180 RBP: ffff81011c1d9888 R08: 0000000000000003 R09: d37a6f4de9bd37a7 R10: 0000000000000173 R11: ffff810127fd8000 R12: ffff81012d7789c0 R13: ffff8100807c1000 R14: ffff81011c1d8000 R15: ffffffff808a6748 FS: 00007fcfcd3f46e0(0000) GS:ffffffff80782000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b CR2: 00007fffd5409fa8 CR3: 00000001241db000 CR4: 00000000000006e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: [] ? :ext4dev:ext4_mb_new_blocks+0x89e/0x154d [] ? __kmalloc+0x12e/0x159 [] ? :ext4dev:ext4_ext_find_extent+0x71/0x255 [] ? :ext4dev:ext4_ext_get_blocks+0x77a/0x962 [] ? __down_write_trylock+0x15/0x44 [] ? native_sched_clock+0x44/0x5d [] ? mark_held_locks+0x58/0x72 [] ? :ext4dev:ext4_get_blocks_wrap+0xed/0x135 [] ? :ext4dev:ext4_get_block+0xa3/0xe2 [] ? __blockdev_direct_IO+0x544/0xa0b [] ? :ext4dev:ext4_direct_IO+0x11e/0x1b0 [] ? :ext4dev:ext4_get_block+0x0/0xe2 [] ? generic_file_direct_IO+0xcd/0x103 [] ? __mark_inode_dirty+0xe2/0x18b [] ? generic_file_direct_write+0x60/0xfd [] ? __generic_file_aio_write_nolock+0x28f/0x37a [] ? trace_hardirqs_on+0xfa/0x125 [] ? generic_file_aio_write+0x66/0xc6 [] ? :ext4dev:ext4_file_write+0xa0/0x125 [] ? do_sync_write+0xd1/0x118 [] ? mark_held_locks+0x58/0x72 [] ? autoremove_wake_function+0x0/0x2e [] ? native_sched_clock+0x44/0x5d [] ? __mutex_unlock_slowpath+0xfe/0x109 [] ? trace_hardirqs_on+0xfa/0x125 [] ? vfs_write+0xad/0x136 [] ? sys_write+0x45/0x6e [] ? system_call_after_swapgs+0x7b/0x80 BUG: soft lockup - CPU#2 stuck for 61s! [fsstress:16438] CPU 2: Modules linked in: ext4dev jbd2 crc16 Pid: 16438, comm: fsstress Not tainted 2.6.25.4 #1 RIP: 0010:[] [] :ext4dev:ext4_mb_new_blocks+0x8e1/0x154d RSP: 0018:ffff8101211917a8 EFLAGS: 00000202 RAX: 00000000ffffffff RBX: ffff81010246d7c8 RCX: 0000000000000007 RDX: ffff81012d7789c0 RSI: 0000000000000008 RDI: ffffe200070fb180 RBP: ffff810121191888 R08: 0000000000000003 R09: d37a6f4de9bd37a7 R10: 0000000000000173 R11: ffff810127fd8000 R12: ffff81012d7789c0 R13: ffff810080893000 R14: ffff810121190000 R15: ffffffff808a6748 FS: 00007fcfcd3f46e0(0000) GS:ffff81012faeee40(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b CR2: 00007fffd5409fa8 CR3: 0000000121194000 CR4: 00000000000006e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: [] ? :ext4dev:ext4_mb_new_blocks+0x89e/0x154d [] ? :ext4dev:ext4_ext_get_blocks+0x77a/0x962 [] ? __down_write_trylock+0x15/0x44 [] ? native_sched_clock+0x44/0x5d [] ? mark_held_locks+0x58/0x72 [] ? :ext4dev:ext4_get_blocks_wrap+0xed/0x135 [] ? :ext4dev:ext4_get_block+0xa3/0xe2 [] ? __blockdev_direct_IO+0x544/0xa0b [] ? :ext4dev:ext4_direct_IO+0x11e/0x1b0 [] ? :ext4dev:ext4_get_block+0x0/0xe2 [] ? generic_file_direct_IO+0xcd/0x103 [] ? __mark_inode_dirty+0xe2/0x18b [] ? generic_file_direct_write+0x60/0xfd [] ? __generic_file_aio_write_nolock+0x28f/0x37a [] ? trace_hardirqs_on+0xfa/0x125 [] ? generic_file_aio_write+0x66/0xc6 [] ? :ext4dev:ext4_file_write+0xa0/0x125 [] ? do_sync_write+0xd1/0x118 [] ? mark_held_locks+0x58/0x72 [] ? autoremove_wake_function+0x0/0x2e [] ? native_sched_clock+0x44/0x5d [] ? __mutex_unlock_slowpath+0xfe/0x109 [] ? trace_hardirqs_on+0xfa/0x125 [] ? vfs_write+0xad/0x136 [] ? sys_write+0x45/0x6e [] ? system_call_after_swapgs+0x7b/0x80 BUG: soft lockup - CPU#3 stuck for 61s! [fsstress:15776] CPU 3: Modules linked in: ext4dev jbd2 crc16 Pid: 15776, comm: fsstress Not tainted 2.6.25.4 #1 RIP: 0010:[] [] :ext4dev:ext4_mb_new_blocks+0x8e4/0x154d RSP: 0018:ffff8101240457a8 EFLAGS: 00000202 RAX: 00000000ffffffff RBX: ffff810112de5bb8 RCX: 0000000000000007 RDX: ffff81012d7789c0 RSI: 0000000000000008 RDI: ffffe200070fb180 RBP: ffff810124045888 R08: 0000000000000003 R09: d37a6f4de9bd37a7 R10: 0000000000000173 R11: ffff810127fd8000 R12: ffff81012d7789c0 R13: ffff8100808fc000 R14: ffff810124044000 R15: ffffffff808a6748 FS: 00007fcfcd3f46e0(0000) GS:ffff81012faee5c0(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b CR2: 00007fcfcd3f2000 CR3: 00000001164f5000 CR4: 00000000000006e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: [] ? :ext4dev:ext4_mb_new_blocks+0x89e/0x154d [] ? :ext4dev:ext4_ext_find_extent+0x184/0x255 [] ? :ext4dev:ext4_ext_get_blocks+0x77a/0x962 [] ? __down_write_trylock+0x15/0x44 [] ? native_sched_clock+0x44/0x5d [] ? mark_held_locks+0x58/0x72 [] ? :ext4dev:ext4_get_blocks_wrap+0xed/0x135 [] ? :ext4dev:ext4_get_block+0xa3/0xe2 [] ? __blockdev_direct_IO+0x544/0xa0b [] ? :ext4dev:ext4_direct_IO+0x11e/0x1b0 [] ? :ext4dev:ext4_get_block+0x0/0xe2 [] ? generic_file_direct_IO+0xcd/0x103 [] ? __mark_inode_dirty+0xe2/0x18b [] ? generic_file_direct_write+0x60/0xfd [] ? __generic_file_aio_write_nolock+0x28f/0x37a [] ? trace_hardirqs_on+0xfa/0x125 [] ? zone_statistics+0x41/0x95 [] ? generic_file_aio_write+0x66/0xc6 [] ? :ext4dev:ext4_file_write+0xa0/0x125 [] ? do_sync_write+0xd1/0x118 [] ? handle_mm_fault+0x2a9/0x6dc [] ? autoremove_wake_function+0x0/0x2e [] ? handle_mm_fault+0x6bf/0x6dc [] ? __up_read+0x13/0x8a [] ? native_sched_clock+0x44/0x5d [] ? vfs_write+0xad/0x136 [] ? sys_write+0x45/0x6e [] ? system_call_after_swapgs+0x7b/0x80 BUG: soft lockup - CPU#1 stuck for 61s! [fsstress:15786] CPU 1: Modules linked in: ext4dev jbd2 crc16 Pid: 15786, comm: fsstress Not tainted 2.6.25.4 #1 RIP: 0010:[] [] :ext4dev:ext4_mb_new_blocks+0x8e4/0x154d RSP: 0018:ffff810122c0b6e8 EFLAGS: 00000202 RAX: 00000000ffffffff RBX: ffff810112de5d08 RCX: 0000000000000007 RDX: ffff81012d7789c0 RSI: 0000000000000008 RDI: ffffe200070fb180 RBP: ffff810122c0b7c8 R08: 0000000000000003 R09: d37a6f4de9bd37a7 R10: 0000000000000173 R11: ffff810127fd8000 R12: ffff81012d7789c0 R13: ffff81008082a000 R14: ffff810122c0a000 R15: ffffffff808a6748 FS: 00007fcfcd3f46e0(0000) GS:ffff81012fc08bc0(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b CR2: 00007fffd5409c88 CR3: 000000010d41e000 CR4: 00000000000006e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: [] ? :ext4dev:ext4_mb_new_blocks+0x89e/0x154d [] ? __kmalloc+0x12e/0x159 [] ? :ext4dev:ext4_ext_find_extent+0x71/0x255 [] ? :ext4dev:ext4_ext_get_blocks+0x77a/0x962 [] ? __down_write_trylock+0x15/0x44 [] ? native_sched_clock+0x44/0x5d [] ? mark_held_locks+0x58/0x72 [] ? :ext4dev:ext4_get_blocks_wrap+0xed/0x135 [] ? :ext4dev:ext4_get_block+0xa3/0xe2 [] ? __block_prepare_write+0x1bb/0x3ca [] ? :ext4dev:ext4_get_block+0x0/0xe2 [] ? :jbd2:jbd2_journal_start+0xe5/0x108 [] ? block_write_begin+0x78/0xc9 [] ? :ext4dev:ext4_write_begin+0xeb/0x1aa [] ? :ext4dev:ext4_get_block+0x0/0xe2 [] ? generic_file_buffered_write+0x150/0x63c [] ? :jbd2:jbd2_journal_stop+0x28f/0x29f [] ? native_sched_clock+0x44/0x5d [] ? __generic_file_aio_write_nolock+0x346/0x37a [] ? trace_hardirqs_on+0xfa/0x125 [] ? generic_file_aio_write+0x66/0xc6 [] ? :ext4dev:ext4_file_write+0xa0/0x125 [] ? do_sync_write+0xd1/0x118 [] ? mark_held_locks+0x58/0x72 [] ? autoremove_wake_function+0x0/0x2e [] ? native_sched_clock+0x44/0x5d [] ? __mutex_unlock_slowpath+0xfe/0x109 [] ? trace_hardirqs_on+0xfa/0x125 [] ? vfs_write+0xad/0x136 [] ? sys_write+0x45/0x6e [] ? system_call_after_swapgs+0x7b/0x80