From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marc Lehmann Subject: Re: more gc / gc script refinements Date: Mon, 5 Oct 2015 09:25:49 +0200 Message-ID: <20151005072548.GA2504@schmorp.de> References: <20151004124923.GC3697@schmorp.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Zj09l-0002AC-CF for linux-f2fs-devel@lists.sourceforge.net; Mon, 05 Oct 2015 07:25:57 +0000 Received: from mail.nethype.de ([5.9.56.24]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) id 1Zj09j-0002WF-FC for linux-f2fs-devel@lists.sourceforge.net; Mon, 05 Oct 2015 07:25:57 +0000 Received: from [10.0.0.5] (helo=doom.schmorp.de) by mail.nethype.de with esmtp (Exim 4.84) (envelope-from ) id 1Zj09d-0006Eg-7P for linux-f2fs-devel@lists.sourceforge.net; Mon, 05 Oct 2015 07:25:49 +0000 Received: from [10.0.0.1] (helo=cerebro.laendle) by doom.schmorp.de with esmtp (Exim 4.84) (envelope-from ) id 1Zj09d-0001hU-2q for linux-f2fs-devel@lists.sourceforge.net; Mon, 05 Oct 2015 07:25:49 +0000 Received: from root by cerebro.laendle with local (Exim 4.84) (envelope-from ) id 1Zj09d-0000gh-25 for linux-f2fs-devel@lists.sourceforge.net; Mon, 05 Oct 2015 09:25:49 +0200 Content-Disposition: inline In-Reply-To: <20151004124923.GC3697@schmorp.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net To: linux-f2fs-devel@lists.sourceforge.net After I successfully filled the disk, it was time to see hope f2fs recovers from this bad situation, by deleting a lot of files and filling it again. To ease the load on the gc, but still present a bit of a challenge, I deleted the first 12000 files out of every 80000 files (directory order), in the hope that this carves out comparatively big chunks. I started with "Dirty: 30k" and "Free: 45k" and ended up with "Dirty: 216k" and "Free: 968k", which to me seems to indicate it kind of worked, although I am not suire how contiguous this free space really is (I oriignally hoped this would be in the form of mostly free sections). Then I worked on my GC script. Since the box became mostly unusable by just calling the GC, I first tried this refinement: http://ue.tst.eu/38809274b56fe9b161492f09b5411071.txt (Used like "script