From: Chao Yu Subject: Re: f2fs stability problems keep me from testing Date: Wed, 18 Nov 2015 18:00:40 +0800 Message-ID: <004b01d121e8$10563730$3102a590$@samsung.com> References: <20151117172430.GA6945@schmorp.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1ZyzYN-00024g-P5 for linux-f2fs-devel@lists.sourceforge.net; Wed, 18 Nov 2015 10:01:27 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by sog-mx-2.v43.ch3.sourceforge.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) id 1ZyzYK-00075v-8T for linux-f2fs-devel@lists.sourceforge.net; Wed, 18 Nov 2015 10:01:27 +0000 Received: from epcpsbgm2new.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NY00049W964S2C0@mailout1.samsung.com> for linux-f2fs-devel@lists.sourceforge.net; Wed, 18 Nov 2015 19:01:16 +0900 (KST) In-reply-to: <20151117172430.GA6945@schmorp.de> Content-language: zh-cn List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net To: 'Marc Lehmann' , linux-f2fs-devel@lists.sourceforge.net Hi, > -----Original Message----- > From: Marc Lehmann [mailto:schmorp@schmorp.de] > Sent: Wednesday, November 18, 2015 1:25 AM > To: linux-f2fs-devel@lists.sourceforge.net > Subject: [f2fs-dev] f2fs stability problems keep me from testing > > Hi! > > I have trouble executing the tests I wanted to run with the current 3.18 > checkout. This morning, the box was completely unresponsive - I had to > reboot, not knowing the cause (the only difference is that f2fs is in more > or less production use for a few days). > > An hour ago, I was awake when similar problems started - interactive > login was impossible, but I was able to execute a few commands in an open > shell, which make me suspect f2fs to be the culprit. Both times, the > f2fs filesystem was streaming video at low speed (<1mb/s) with no other > activity. > > Anyway, here are the four experiments I did, after finding out that the > problem seems to the the f2fs fs (the other 4 filesystems on the box were > responsive, as was the underlying disk itself). > > 1. ls /cold1, find /cold1 (/cold1 is the f2fs mountpoint) gave empty results > here is an strace of find /cold1: > > openat(AT_FDCWD, "/cold1", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 5 > fchdir(5) = 0 > getdents(5, /* 0 entries */, 32768) = 0 > close(5) = 0 > > so /cold1 is an empty directory. not good. > > 2. so no files in /cold1, let's see what happens when I list /cold1/var, a > directory known to exist: > > openat(AT_FDCWD, "/cold1/var", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 5 > fchdir(5) = 0 > getdents(5, /* 0 entries */, 32768) = 0 > close(5) = 0 > > so f2fs knowsn that /cold1/var exists, but readdir gives no results. very > troubling. Could you share more info about this issue? like mount option, fsck data, stat info about the two files if they still exist. Thanks, > > 3. "sync&" - this did hang, with no apparent activity > > 4. cat /proc//task/*stack: > > [] sync_inodes_sb+0xa8/0x1c0 > [] sync_inodes_one_sb+0x19/0x20 > [] iterate_supers+0xb2/0x110 > [] sys_sync+0x35/0x90 > [] system_call_fastpath+0x16/0x1b > [] 0xffffffffffffffff > > 5. dmesg showed no related messages whatsoever - it still had the kernel > messages generated from boot, and nothing else. > > 6. at this point I lost my shell and control over the box completely, and had to be rebooted > > So something in the current f2fs tree (I checked that > /sys/fs/f2fs/dm-17/ra_nid_pages exists, so it is a more or less current > shapshot) is still locking up and/or returning corrupt data. If it was > a simple locking failure, though, I would expect readdir and other > operations to also block, not return bad data. > > -- > The choice of a Deliantra, the free code+content MORPG > -----==- _GNU_ http://www.deliantra.net > ----==-- _ generation > ---==---(_)__ __ ____ __ Marc Lehmann > --==---/ / _ \/ // /\ \/ / schmorp@schmorp.de > -=====/_/_//_/\_,_/ /_/\_\ > > ------------------------------------------------------------------------------ > _______________________________________________ > Linux-f2fs-devel mailing list > Linux-f2fs-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel ------------------------------------------------------------------------------