From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753601Ab3F0OyQ (ORCPT ); Thu, 27 Jun 2013 10:54:16 -0400 Received: from cantor2.suse.de ([195.135.220.15]:46114 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752766Ab3F0OyP (ORCPT ); Thu, 27 Jun 2013 10:54:15 -0400 Date: Thu, 27 Jun 2013 16:54:11 +0200 From: Michal Hocko To: Dave Chinner Cc: Glauber Costa , Andrew Morton , linux-mm@kvack.org, LKML Subject: Re: linux-next: slab shrinkers: BUG at mm/list_lru.c:92 Message-ID: <20130627145411.GA24206@dhcp22.suse.cz> References: <20130617143508.7417f1ac9ecd15d8b2877f76@linux-foundation.org> <20130617223004.GB2538@localhost.localdomain> <20130618024623.GP29338@dastard> <20130618063104.GB20528@localhost.localdomain> <20130618082414.GC13677@dhcp22.suse.cz> <20130618104443.GH13677@dhcp22.suse.cz> <20130618135025.GK13677@dhcp22.suse.cz> <20130625022754.GP29376@dastard> <20130626081509.GF28748@dhcp22.suse.cz> <20130626232426.GA29034@dastard> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130626232426.GA29034@dastard> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 27-06-13 09:24:26, Dave Chinner wrote: > On Wed, Jun 26, 2013 at 10:15:09AM +0200, Michal Hocko wrote: > > On Tue 25-06-13 12:27:54, Dave Chinner wrote: > > > On Tue, Jun 18, 2013 at 03:50:25PM +0200, Michal Hocko wrote: > > > > And again, another hang. It looks like the inode deletion never > > > > finishes. The good thing is that I do not see any LRU related BUG_ONs > > > > anymore. I am going to test with the other patch in the thread. > > > > > > > > 2476 [] __wait_on_freeing_inode+0x9e/0xc0 <<< waiting for an inode to go away > > > > [] find_inode_fast+0xa1/0xc0 > > > > [] iget_locked+0x4f/0x180 > > > > [] ext4_iget+0x33/0x9f0 > > > > [] ext4_lookup+0xbc/0x160 > > > > [] lookup_real+0x20/0x60 > > > > [] lookup_open+0x175/0x1d0 > > > > [] do_last+0x2de/0x780 <<< holds i_mutex > > > > [] path_openat+0xda/0x400 > > > > [] do_filp_open+0x43/0xa0 > > > > [] do_sys_open+0x160/0x1e0 > > > > [] sys_open+0x1c/0x20 > > > > [] system_call_fastpath+0x16/0x1b > > > > [] 0xffffffffffffffff > > > > > > I don't think this has anything to do with LRUs. > > > > I am not claiming that. It might be a timing issue which never mattered > > but it is strange I can reproduce this so easily and repeatedly with the > > shrinkers patchset applied. > > As I said earlier, this might be breakage in my -mm tree as well > > (missing some patch which didn't go via Andrew or misapplied patch). The > > situation is worsen by the state of linux-next which has some unrelated > > issues. > > > > I really do not want to delay the whole patchset just because of some > > problem on my side. Do you have any tree that I should try to test? > > No, I've just been testing Glauber's tree and sending patches for > problems back to him based on it. > > > > I won't have seen this on XFS stress testing, because it doesn't use > > > the VFS inode hashes for inode lookups. Given that XFS is not > > > triggering either problem you are seeing, that makes me think > > > > I haven't tested with xfs. > > That might be worthwhile if you can easily do that - another data > point indicating a hang or absence of a hang will help point us in > the right direction here... OK, still hanging (with inode_lru_isolate-fix.patch). It is not the same thing, though, as xfs seem to do lookup slightly differently. 12467 [] xfs_iget+0xbe/0x190 [xfs] [] xfs_lookup+0xe8/0x110 [xfs] [] xfs_vn_lookup+0x49/0x90 [xfs] [] lookup_real+0x20/0x60 [] lookup_open+0x175/0x1d0 [] do_last+0x2de/0x780 [] path_openat+0xda/0x400 [] do_filp_open+0x43/0xa0 [] do_sys_open+0x160/0x1e0 [] sys_open+0x1c/0x20 [] system_call_fastpath+0x16/0x1b [] 0xffffffffffffffff 12667 [] xfs_iget+0xbe/0x190 [xfs] [] xfs_lookup+0xe8/0x110 [xfs] [] xfs_vn_lookup+0x49/0x90 [xfs] [] lookup_real+0x20/0x60 [] lookup_open+0x175/0x1d0 [] do_last+0x2de/0x780 [] path_openat+0xda/0x400 [] do_filp_open+0x43/0xa0 [] do_sys_open+0x160/0x1e0 [] sys_open+0x1c/0x20 [] system_call_fastpath+0x16/0x1b [] 0xffffffffffffffff 13830 [] xfs_iget+0xbe/0x190 [xfs] [] xfs_lookup+0xe8/0x110 [xfs] [] xfs_vn_lookup+0x49/0x90 [xfs] [] lookup_real+0x20/0x60 [] __lookup_hash+0x34/0x40 [] path_lookupat+0x7a2/0x830 [] filename_lookup+0x33/0xd0 [] user_path_at_empty+0x7b/0xb0 [] user_path_at+0xc/0x10 [] sys_faccessat+0xe0/0x230 [] sys_access+0x13/0x20 [] system_call_fastpath+0x16/0x1b [] 0xffffffffffffffff 13913 [] xfs_iget+0xbe/0x190 [xfs] [] xfs_lookup+0xe8/0x110 [xfs] [] xfs_vn_lookup+0x49/0x90 [xfs] [] lookup_real+0x20/0x60 [] lookup_open+0x175/0x1d0 [] do_last+0x2de/0x780 [] path_openat+0xda/0x400 [] do_filp_open+0x43/0xa0 [] do_sys_open+0x160/0x1e0 [] sys_open+0x1c/0x20 [] system_call_fastpath+0x16/0x1b [] 0xffffffffffffffff 14245 [] do_last+0x2c4/0x780 [] path_openat+0xda/0x400 [] do_filp_open+0x43/0xa0 [] do_sys_open+0x160/0x1e0 [] sys_open+0x1c/0x20 [] system_call_fastpath+0x16/0x1b [] 0xffffffffffffffff 14365 [] xfs_iget+0xbe/0x190 [xfs] [] xfs_lookup+0xe8/0x110 [xfs] [] xfs_vn_lookup+0x49/0x90 [xfs] [] lookup_real+0x20/0x60 [] lookup_open+0x175/0x1d0 [] do_last+0x2de/0x780 [] path_openat+0xda/0x400 [] do_filp_open+0x43/0xa0 [] do_sys_open+0x160/0x1e0 [] sys_open+0x1c/0x20 [] system_call_fastpath+0x16/0x1b [] 0xffffffffffffffff 14384 [] path_lookupat+0x792/0x830 [] filename_lookup+0x33/0xd0 [] user_path_at_empty+0x7b/0xb0 [] user_path_at+0xc/0x10 [] vfs_fstatat+0x51/0xb0 [] vfs_stat+0x16/0x20 [] sys_newstat+0x1f/0x50 [] system_call_fastpath+0x16/0x1b [] 0xffffffffffffffff 14413 [] path_lookupat+0x792/0x830 [] filename_lookup+0x33/0xd0 [] user_path_at_empty+0x7b/0xb0 [] user_path_at+0xc/0x10 [] vfs_fstatat+0x51/0xb0 [] vfs_stat+0x16/0x20 [] sys_newstat+0x1f/0x50 [] system_call_fastpath+0x16/0x1b [] 0xffffffffffffffff -- Michal Hocko SUSE Labs From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx114.postini.com [74.125.245.114]) by kanga.kvack.org (Postfix) with SMTP id 16F236B0037 for ; Thu, 27 Jun 2013 10:54:15 -0400 (EDT) Date: Thu, 27 Jun 2013 16:54:11 +0200 From: Michal Hocko Subject: Re: linux-next: slab shrinkers: BUG at mm/list_lru.c:92 Message-ID: <20130627145411.GA24206@dhcp22.suse.cz> References: <20130617143508.7417f1ac9ecd15d8b2877f76@linux-foundation.org> <20130617223004.GB2538@localhost.localdomain> <20130618024623.GP29338@dastard> <20130618063104.GB20528@localhost.localdomain> <20130618082414.GC13677@dhcp22.suse.cz> <20130618104443.GH13677@dhcp22.suse.cz> <20130618135025.GK13677@dhcp22.suse.cz> <20130625022754.GP29376@dastard> <20130626081509.GF28748@dhcp22.suse.cz> <20130626232426.GA29034@dastard> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130626232426.GA29034@dastard> Sender: owner-linux-mm@kvack.org List-ID: To: Dave Chinner Cc: Glauber Costa , Andrew Morton , linux-mm@kvack.org, LKML On Thu 27-06-13 09:24:26, Dave Chinner wrote: > On Wed, Jun 26, 2013 at 10:15:09AM +0200, Michal Hocko wrote: > > On Tue 25-06-13 12:27:54, Dave Chinner wrote: > > > On Tue, Jun 18, 2013 at 03:50:25PM +0200, Michal Hocko wrote: > > > > And again, another hang. It looks like the inode deletion never > > > > finishes. The good thing is that I do not see any LRU related BUG_ONs > > > > anymore. I am going to test with the other patch in the thread. > > > > > > > > 2476 [] __wait_on_freeing_inode+0x9e/0xc0 <<< waiting for an inode to go away > > > > [] find_inode_fast+0xa1/0xc0 > > > > [] iget_locked+0x4f/0x180 > > > > [] ext4_iget+0x33/0x9f0 > > > > [] ext4_lookup+0xbc/0x160 > > > > [] lookup_real+0x20/0x60 > > > > [] lookup_open+0x175/0x1d0 > > > > [] do_last+0x2de/0x780 <<< holds i_mutex > > > > [] path_openat+0xda/0x400 > > > > [] do_filp_open+0x43/0xa0 > > > > [] do_sys_open+0x160/0x1e0 > > > > [] sys_open+0x1c/0x20 > > > > [] system_call_fastpath+0x16/0x1b > > > > [] 0xffffffffffffffff > > > > > > I don't think this has anything to do with LRUs. > > > > I am not claiming that. It might be a timing issue which never mattered > > but it is strange I can reproduce this so easily and repeatedly with the > > shrinkers patchset applied. > > As I said earlier, this might be breakage in my -mm tree as well > > (missing some patch which didn't go via Andrew or misapplied patch). The > > situation is worsen by the state of linux-next which has some unrelated > > issues. > > > > I really do not want to delay the whole patchset just because of some > > problem on my side. Do you have any tree that I should try to test? > > No, I've just been testing Glauber's tree and sending patches for > problems back to him based on it. > > > > I won't have seen this on XFS stress testing, because it doesn't use > > > the VFS inode hashes for inode lookups. Given that XFS is not > > > triggering either problem you are seeing, that makes me think > > > > I haven't tested with xfs. > > That might be worthwhile if you can easily do that - another data > point indicating a hang or absence of a hang will help point us in > the right direction here... OK, still hanging (with inode_lru_isolate-fix.patch). It is not the same thing, though, as xfs seem to do lookup slightly differently. 12467 [] xfs_iget+0xbe/0x190 [xfs] [] xfs_lookup+0xe8/0x110 [xfs] [] xfs_vn_lookup+0x49/0x90 [xfs] [] lookup_real+0x20/0x60 [] lookup_open+0x175/0x1d0 [] do_last+0x2de/0x780 [] path_openat+0xda/0x400 [] do_filp_open+0x43/0xa0 [] do_sys_open+0x160/0x1e0 [] sys_open+0x1c/0x20 [] system_call_fastpath+0x16/0x1b [] 0xffffffffffffffff 12667 [] xfs_iget+0xbe/0x190 [xfs] [] xfs_lookup+0xe8/0x110 [xfs] [] xfs_vn_lookup+0x49/0x90 [xfs] [] lookup_real+0x20/0x60 [] lookup_open+0x175/0x1d0 [] do_last+0x2de/0x780 [] path_openat+0xda/0x400 [] do_filp_open+0x43/0xa0 [] do_sys_open+0x160/0x1e0 [] sys_open+0x1c/0x20 [] system_call_fastpath+0x16/0x1b [] 0xffffffffffffffff 13830 [] xfs_iget+0xbe/0x190 [xfs] [] xfs_lookup+0xe8/0x110 [xfs] [] xfs_vn_lookup+0x49/0x90 [xfs] [] lookup_real+0x20/0x60 [] __lookup_hash+0x34/0x40 [] path_lookupat+0x7a2/0x830 [] filename_lookup+0x33/0xd0 [] user_path_at_empty+0x7b/0xb0 [] user_path_at+0xc/0x10 [] sys_faccessat+0xe0/0x230 [] sys_access+0x13/0x20 [] system_call_fastpath+0x16/0x1b [] 0xffffffffffffffff 13913 [] xfs_iget+0xbe/0x190 [xfs] [] xfs_lookup+0xe8/0x110 [xfs] [] xfs_vn_lookup+0x49/0x90 [xfs] [] lookup_real+0x20/0x60 [] lookup_open+0x175/0x1d0 [] do_last+0x2de/0x780 [] path_openat+0xda/0x400 [] do_filp_open+0x43/0xa0 [] do_sys_open+0x160/0x1e0 [] sys_open+0x1c/0x20 [] system_call_fastpath+0x16/0x1b [] 0xffffffffffffffff 14245 [] do_last+0x2c4/0x780 [] path_openat+0xda/0x400 [] do_filp_open+0x43/0xa0 [] do_sys_open+0x160/0x1e0 [] sys_open+0x1c/0x20 [] system_call_fastpath+0x16/0x1b [] 0xffffffffffffffff 14365 [] xfs_iget+0xbe/0x190 [xfs] [] xfs_lookup+0xe8/0x110 [xfs] [] xfs_vn_lookup+0x49/0x90 [xfs] [] lookup_real+0x20/0x60 [] lookup_open+0x175/0x1d0 [] do_last+0x2de/0x780 [] path_openat+0xda/0x400 [] do_filp_open+0x43/0xa0 [] do_sys_open+0x160/0x1e0 [] sys_open+0x1c/0x20 [] system_call_fastpath+0x16/0x1b [] 0xffffffffffffffff 14384 [] path_lookupat+0x792/0x830 [] filename_lookup+0x33/0xd0 [] user_path_at_empty+0x7b/0xb0 [] user_path_at+0xc/0x10 [] vfs_fstatat+0x51/0xb0 [] vfs_stat+0x16/0x20 [] sys_newstat+0x1f/0x50 [] system_call_fastpath+0x16/0x1b [] 0xffffffffffffffff 14413 [] path_lookupat+0x792/0x830 [] filename_lookup+0x33/0xd0 [] user_path_at_empty+0x7b/0xb0 [] user_path_at+0xc/0x10 [] vfs_fstatat+0x51/0xb0 [] vfs_stat+0x16/0x20 [] sys_newstat+0x1f/0x50 [] system_call_fastpath+0x16/0x1b [] 0xffffffffffffffff -- Michal Hocko SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org