From: Fredrik Andersson Subject: Re: Fwd: Ext4 bug with fallocate Date: Tue, 20 Oct 2009 18:49:30 +0200 Message-ID: References: <4ADB3AEC.8040901@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE To: Eric Sandeen , linux-ext4@vger.kernel.org Return-path: Received: from mail-ew0-f207.google.com ([209.85.219.207]:65500 "EHLO mail-ew0-f207.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751701AbZJTQt0 convert rfc822-to-8bit (ORCPT ); Tue, 20 Oct 2009 12:49:26 -0400 Received: by ewy3 with SMTP id 3so5020274ewy.17 for ; Tue, 20 Oct 2009 09:49:30 -0700 (PDT) In-Reply-To: Sender: linux-ext4-owner@vger.kernel.org List-ID: I found the following post to the ext4 list. This seems to fit my experienced problems pretty exactly. http://osdir.com/ml/linux-ext4/2009-08/msg00184.html Is it the same problem? /Fredrik On Mon, Oct 19, 2009 at 11:49 AM, Fredrik Andersson wrote: > Hi, here is the data for this process: > > 5958816.744013] drdbmake =A0=A0=A0=A0 D ffff88021e4c7800=A0=A0=A0=A0 = 0 27019=A0 13796 > [5958816.744013]=A0 ffff8801d1bcda88 0000000000000082 ffff8801f4ce9bf= 0 > ffff8801678b1380 > [5958816.744013]=A0 0000000000010e80 000000000000c748 ffff8800404963c= 0 > ffffffff81526360 > [5958816.744013]=A0 ffff880040496730 00000000f4ce9bf0 000000025819ceb= e > 0000000000000282 > [5958816.744013] Call Trace: > [5958816.744013]=A0 [] schedule+0x9/0x20 > [5958816.744013]=A0 [] start_this_handle+0x365/0x5d= 0 > [5958816.744013]=A0 [] ? autoremove_wake_function+0= x0/ > 0x40 > [5958816.744013]=A0 [] jbd2_journal_restart+0xbe/0x= 150 > [5958816.744013]=A0 [] ext4_ext_truncate+0x6dd/0xa2= 0 > [5958816.744013]=A0 [] ? find_get_pages+0x3b/0xf0 > [5958816.744013]=A0 [] ext4_truncate+0x198/0x680 > [5958816.744013]=A0 [] ? unmap_mapping_range+0x74/0= x280 > [5958816.744013]=A0 [] ? jbd2_journal_stop+0x1e0/0x= 360 > [5958816.744013]=A0 [] vmtruncate+0xa5/0x110 > [5958816.744013]=A0 [] inode_setattr+0x30/0x180 > [5958816.744013]=A0 [] ext4_setattr+0x173/0x310 > [5958816.744013]=A0 [] notify_change+0x119/0x330 > [5958816.744013]=A0 [] do_truncate+0x63/0x90 > [5958816.744013]=A0 [] ? get_write_access+0x23/0x60 > [5958816.744013]=A0 [] sys_truncate+0x17b/0x180 > [5958816.744013]=A0 [] system_call_fastpath+0x16/0x= 1b > > Don't know if this has anything to do with it, but=A0 I also noticed > that another process of mine, > which is working just fine, is executing a suspicious looking functio= n > called raid0_unplug. > It operates on the same raid0/ext4 filesystem as the hung process. I > include the calltrace for it here too: > > [5958816.744013] nodeserv=A0=A0=A0=A0=A0 D ffff880167bd7ca8=A0=A0=A0=A0= 0 17900=A0 13796 > [5958816.744013]=A0 ffff880167bd7bf8 0000000000000082 ffff88002800a58= 8 > ffff88021e5b56e0 > [5958816.744013]=A0 0000000000010e80 000000000000c748 ffff88010066402= 0 > ffffffff81526360 > [5958816.744013]=A0 ffff880100664390 000000008119bd17 000000026327bfa= 9 > 0000000000000002 > [5958816.744013] Call Trace: > [5958816.744013]=A0 [] ? raid0_unplug+0x51/0x70 [ra= id0] > [5958816.744013]=A0 [] schedule+0x9/0x20 > [5958816.744013]=A0 [] io_schedule+0x37/0x50 > [5958816.744013]=A0 [] sync_page+0x35/0x60 > [5958816.744013]=A0 [] sync_page_killable+0x9/0x50 > [5958816.744013]=A0 [] __wait_on_bit_lock+0x52/0xb0 > [5958816.744013]=A0 [] ? sync_page_killable+0x0/0x5= 0 > [5958816.744013]=A0 [] __lock_page_killable+0x64/0x= 70 > [5958816.744013]=A0 [] ? wake_bit_function+0x0/0x40 > [5958816.744013]=A0 [] ? find_get_page+0x1b/0xb0 > [5958816.744013]=A0 [] generic_file_aio_read+0x3b8/= 0x6b0 > [5958816.744013]=A0 [] do_sync_read+0xf1/0x140 > [5958816.744013]=A0 [] ? do_futex+0xb8/0xb20 > [5958816.744013]=A0 [] ? _spin_unlock_irqrestore+0x= 2f/0x40 > [5958816.744013]=A0 [] ? autoremove_wake_function+0= x0/0x40 > [5958816.744013]=A0 [] ? add_wait_queue+0x43/0x60 > [5958816.744013]=A0 [] ? getnstimeofday+0x5c/0xf0 > [5958816.744013]=A0 [] vfs_read+0xc8/0x170 > [5958816.744013]=A0 [] sys_pread64+0x9a/0xa0 > [5958816.744013]=A0 [] system_call_fastpath+0x16/0x= 1b > > Hope this makes sense to anyone, and please let me know if there is > more info I can provide. > > /Fredrik > > On Sun, Oct 18, 2009 at 5:57 PM, Eric Sandeen wr= ote: >> >> Fredrik Andersson wrote: >>> >>> Hi, I'd like to report what I'm fairly certain is an ext4 bug. I ho= pe >>> this is the right place to do so. >>> >>> My program creates a big file (around 30 GB) with posix_fallocate (= to >>> utilize extents), fills it with data and uses ftruncate to crop it = to >>> its final size (usually somewhere between 20 and 25 GB). >>> The problem is that in around 5% of the cases, the program locks up >>> completely in a syscall. The process can thus not be killed even wi= th >>> kill -9, and a reboot is all that will do. >> >> does echo w > /proc/sysrq-trigger (this does sleeping processes; or = use echo t for all processes) show you where the stuck threads are? >> >> -Eric >> > -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html