Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754272Ab1C2T5l (ORCPT ); Tue, 29 Mar 2011 15:57:41 -0400 Received: from mx5.twosigma.com ([208.77.212.35]:65117 "EHLO mx5.twosigma.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754022Ab1C2T5j convert rfc822-to-8bit (ORCPT ); Tue, 29 Mar 2011 15:57:39 -0400 From: Sean Noonan To: "'Christoph Hellwig'" CC: "'Michel Lespinasse'" , "'linux-kernel@vger.kernel.org'" , Martin Bligh , Trammell Hudson , Christos Zoulas , "'linux-xfs@oss.sgi.com'" , Stephen Degler , "'linux-mm@kvack.org'" Date: Tue, 29 Mar 2011 15:54:12 -0400 Subject: RE: XFS memory allocation deadlock in 2.6.38 Thread-Topic: XFS memory allocation deadlock in 2.6.38 Thread-Index: AcvuRvK4VBD+qD8KS0ORKuK3roIztQAA7saA Message-ID: <081DDE43F61F3D43929A181B477DCA95639B535D@MSXAOA6.twosigma.com> References: <081DDE43F61F3D43929A181B477DCA95639B52FD@MSXAOA6.twosigma.com> <081DDE43F61F3D43929A181B477DCA95639B5327@MSXAOA6.twosigma.com> <20110324174311.GA31576@infradead.org> <081DDE43F61F3D43929A181B477DCA95639B5349@MSXAOA6.twosigma.com> <081DDE43F61F3D43929A181B477DCA95639B534E@MSXAOA6.twosigma.com> <081DDE43F61F3D43929A181B477DCA95639B5359@MSXAOA6.twosigma.com> <20110329192434.GA10536@infradead.org> In-Reply-To: <20110329192434.GA10536@infradead.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3171 Lines: 68 > Can you check if the brute force patch below helps? Not sure if this helps at all, but here is the stack from all three processes involved. This is without MAP_POPULATE and with the patch you just sent. # ps aux | grep 'D[+]*[[:space:]]' USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 2314 0.2 0.0 0 0 ? D 19:44 0:00 [flush-8:0] root 2402 0.0 0.0 0 0 ? D 19:44 0:00 [xfssyncd/sda9] root 3861 2.6 9.9 16785280 4912848 pts/0 D+ 19:45 0:07 ./vmtest /xfs/hugefile.dat 17179869184 # for p in 2314 2402 3861; do echo $p; cat /proc/$p/stack; done 2314 [] congestion_wait+0x7a/0x130 [] kmem_alloc+0x6c/0xf0 [] xfs_inode_item_format+0x36e/0x3b0 [] xfs_log_commit_cil+0x4f/0x3b0 [] _xfs_trans_commit+0x1f1/0x2b0 [] xfs_iomap_write_allocate+0x1a6/0x340 [] xfs_map_blocks+0x193/0x2c0 [] xfs_vm_writepage+0x1ca/0x520 [] __writepage+0x12/0x40 [] write_cache_pages+0x1dd/0x4f0 [] generic_writepages+0x4c/0x70 [] xfs_vm_writepages+0x58/0x70 [] do_writepages+0x1c/0x40 [] writeback_single_inode+0xf1/0x240 [] writeback_sb_inodes+0xdd/0x1b0 [] writeback_inodes_wb+0x76/0x160 [] wb_writeback+0x343/0x550 [] wb_do_writeback+0x186/0x2e0 [] bdi_writeback_thread+0xc2/0x310 [] kthread+0x96/0xa0 [] kernel_thread_helper+0x4/0x10 [] 0xffffffffffffffff 2402 [] down+0x3c/0x50 [] xfs_buf_lock+0x5d/0x170 [] xfs_getsb+0x1d/0x50 [] xfs_trans_getsb+0x5f/0x150 [] xfs_mod_sb+0x4e/0xe0 [] xfs_fs_log_dummy+0x4f/0x90 [] xfs_sync_worker+0x81/0x90 [] xfssyncd+0x172/0x220 [] kthread+0x96/0xa0 [] kernel_thread_helper+0x4/0x10 [] 0xffffffffffffffff 3861 [] call_rwsem_down_read_failed+0x14/0x30 [] xfs_ilock+0x9d/0x110 [] xfs_ilock_map_shared+0x1e/0x50 [] __xfs_get_blocks+0xc5/0x4e0 [] xfs_get_blocks+0xc/0x10 [] do_mpage_readpage+0x462/0x660 [] mpage_readpage+0x4a/0x60 [] xfs_vm_readpage+0x13/0x20 [] filemap_fault+0x2d0/0x4e0 [] __do_fault+0x50/0x4f0 [] handle_pte_fault+0x7e/0xc90 [] handle_mm_fault+0x138/0x230 [] do_page_fault+0x12c/0x420 [] page_fault+0x1f/0x30 [] 0xffffffffffffffff -- 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/