Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753981AbYFUPDK (ORCPT ); Sat, 21 Jun 2008 11:03:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751225AbYFUPC4 (ORCPT ); Sat, 21 Jun 2008 11:02:56 -0400 Received: from dwdmx4.dwd.de ([141.38.3.230]:55416 "EHLO dwdmx4.dwd.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751139AbYFUPCy (ORCPT ); Sat, 21 Jun 2008 11:02:54 -0400 Date: Sat, 21 Jun 2008 15:02:50 +0000 (GMT) From: Holger Kiehl X-X-Sender: kiehl@diagnostix.dwd.de To: Theodore Tso Cc: "Aneesh Kumar K.V" , Jan Kara , Solofo.Ramangalahy@bull.net, Nick Dokos , linux-ext4@vger.kernel.org, linux-kernel Subject: Re: Performance of ext4 In-Reply-To: Message-ID: References: <18513.345.553912.449710@frecb006361.adech.frec.bull.fr> <20080612131928.GB18229@mit.edu> <20080612180605.GD22481@skywalker> <20080616175408.GF3279@atrey.karlin.mff.cuni.cz> <20080616181353.GA20686@skywalker> <20080619155645.GA8582@mit.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 7165 Lines: 137 On Fri, 20 Jun 2008, Holger Kiehl wrote: > On Thu, 19 Jun 2008, Theodore Tso wrote: > >> I have a >> suspicion that the problem may have been introduced by the delayed >> allocation code, but I don't have hard evidence. When you rerun your >> benchmark (which seems to be the closest thing we have to a >> reproduction case), it would be interesting to know if the problem >> goes away with -o nodelalloc (again, it would localize where we need >> to look). >> > Ok I will do thats soon as I have a system available. > No, with nodelalloc the problem does not occur. I can now very reliably repoduce the problem if I run the benchmark for 5 minutes and then unmount the filesystem and remount it. Anything else I can do to find the problem? During testing on a newly setup system (used the same kernel 2.6.26-rc5+ext4- patch-queue) I have hit two oopses: ------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:1931! invalid opcode: 0000 [1] SMP CPU 3 Modules linked in: w83627hf lm85 hwmon_vid bonding ipt_REJECT xt_tcpudp nf_conntrack_ipv4 xt_state nf_conntrack iptable_filter ip_tables x_tables binfmt_misc sg floppy ohci_hcd i2c_amd756 k8temp i2c_core button usbcore Pid: 242, comm: pdflush Not tainted 2.6.26-rc5 #4 RIP: 0010:[] [] ext4_normal_writepage+0x27/0xd8 RSP: 0018:ffff81007f329c20 EFLAGS: 00010246 RAX: 0a0000000001002d RBX: ffffe20006f658c8 RCX: 00000000ffffffe8 RDX: 0000000000004278 RSI: ffff81007f329e50 RDI: ffffe20006f658c8 RBP: ffff81007f329e50 R08: ffff81027ff054c0 R09: ffff81007f329b60 R10: 0000000000000040 R11: 0000000000000040 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007fbc99d8b6f0(0000) GS:ffff81027ff0e000(0000) knlGS:0000000000000000 CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b CR2: 00007f64c0d43488 CR3: 00000001efa65000 CR4: 00000000000006e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Process pdflush (pid: 242, threadinfo ffff81007f328000, task ffff81007fbc3d30) Stack: 0000000000000000 ffff810149bc41d0 ffff81007f329e50 ffffffff8026179a ffffe20006f658c8 ffffffff80261f57 ffff810149bc41d0 ffffffff80261790 ffff810149bc41d0 0000000180241154 ffff8101ff6caea0 ffffffffffffffff Call Trace: [] ? __writepage+0xa/0x27 [] ? write_cache_pages+0x1bb/0x30d [] ? __writepage+0x0/0x27 [] ? do_writepages+0x27/0x2d [] ? __writeback_single_inode+0x16f/0x35e [] ? sync_sb_inodes+0x283/0x3b8 [] ? writeback_inodes+0x89/0xde [] ? background_writeout+0x8f/0xc9 [] ? pdflush+0x122/0x1c9 [] ? background_writeout+0x0/0xc9 [] ? pdflush+0x0/0x1c9 [] ? kthread+0x47/0x73 [] ? schedule_tail+0x27/0x5c [] ? child_rip+0xa/0x12 [] ? kthread+0x0/0x73 [] ? child_rip+0x0/0x12 Code: 3e 8c fc ff 55 48 89 f5 53 48 89 fb 48 83 ec 08 48 8b 47 18 48 8b 00 48 8b 50 68 48 8b 07 a8 01 75 04 0f 0b eb fe f6 c4 08 75 04 <0f> 0b eb fe 48 89 d0 81 e2 ff 0f 00 00 48 8b 77 10 48 c1 f8 0c RIP [] ext4_normal_writepage+0x27/0xd8 RSP ---[ end trace 82357a26b61bf3d2 ]--- ------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:1931! invalid opcode: 0000 [2] SMP CPU 3 Modules linked in: w83627hf lm85 hwmon_vid bonding ipt_REJECT xt_tcpudp nf_conntrack_ipv4 xt_state nf_conntrack iptable_filter ip_tables x_tables binfmt_misc sg floppy ohci_hcd i2c_amd756 k8temp i2c_core button usbcore Pid: 7896, comm: dir_check Tainted: G D 2.6.26-rc5 #4 RIP: 0010:[] [] ext4_normal_writepage+0x27/0xd8 RSP: 0018:ffff810172ee1d78 EFLAGS: 00010246 RAX: 0a0000000001002d RBX: ffffe200063cd890 RCX: 00000000ffffffe8 RDX: 0000000000004278 RSI: ffff810172ee1eb8 RDI: ffffe200063cd890 RBP: ffff810172ee1eb8 R08: ffff81027ff054c0 R09: ffff810172ee1cb8 R10: ffff810250e6ac80 R11: ffff810250e6a080 R12: 0000000000000000 R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001 FS: 00007f3778d0e6f0(0000) GS:ffff81027ff0e000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b CR2: 00007f3778d25000 CR3: 000000027ecd8000 CR4: 00000000000006e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Process dir_check (pid: 7896, threadinfo ffff810172ee0000, task ffff81017f0fa6f0) Stack: 0000000000000000 ffff81024ed0c8c0 ffff810172ee1eb8 ffffffff8026179a ffffe200063cd890 ffffffff80261f57 ffff81024ed0c8c0 ffffffff80261790 ffff81024ed0c8c0 0000000500000000 ffff8101ff6caea0 0007ffffffffffff Call Trace: [] ? __writepage+0xa/0x27 [] ? write_cache_pages+0x1bb/0x30d [] ? __writepage+0x0/0x27 [] ? fasync_helper+0x47/0xc8 [] ? cp_new_stat+0xe9/0xfc [] ? __posix_lock_file+0x43d/0x44e [] ? do_writepages+0x27/0x2d [] ? __filemap_fdatawrite_range+0x4a/0x55 [] ? audit_syscall_exit+0x2ee/0x30c [] ? do_fsync+0x2f/0x87 [] ? sys_msync+0x107/0x178 [] ? tracesys+0xd5/0xda Code: 3e 8c fc ff 55 48 89 f5 53 48 89 fb 48 83 ec 08 48 8b 47 18 48 8b 00 48 8b 50 68 48 8b 07 a8 01 75 04 0f 0b eb fe f6 c4 08 75 04 <0f> 0b eb fe 48 89 d0 81 e2 ff 0f 00 00 48 8b 77 10 48 c1 f8 0c RIP [] ext4_normal_writepage+0x27/0xd8 RSP ---[ end trace 82357a26b61bf3d2 ]--- SysRq : Show Blocked State task PC stack pid father dir_check D ffff810181e03eb8 0 7873 1 ffff8101eea3dc48 0000000000000082 0000000000000096 ffff81007ec39ec0 ffffffff80600cc0 0000000000000000 ffff81027ff8a658 ffff8101eea21bd0 ffff81007f395370 ffff8101eea21e08 000000017ff8a640 ffff8101eea21e08 Call Trace: [] __wake_up+0x38/0x4f [] sync_page+0x0/0x41 [] io_schedule+0x2d/0x39 [] sync_page+0x3c/0x41 [] __wait_on_bit+0x41/0x70 [] wait_on_page_bit+0x6b/0x71 [] wake_bit_function+0x0/0x23 [] do_wp_page+0x46a/0x4ba [] handle_mm_fault+0x62d/0x6a3 [] mntput_no_expire+0x27/0x11e [] do_page_fault+0x435/0x825 [] __posix_lock_file+0x43d/0x44e [] fcntl_setlk+0x285/0x296 [] audit_syscall_exit+0x2ee/0x30c [] error_exit+0x0/0x51 Holger -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/