From: Chao Yu Subject: Re: Reservation amount Date: Tue, 20 Oct 2015 23:31:45 +0800 Message-ID: References: <906568999.1957861.1445144285260.JavaMail.yahoo@mail.yahoo.com> <906568999.1957861.1445144285260.JavaMail.yahoo@mail.yahoo.com> <014701d10a5b$43b78f60$cb26ae20$@samsung.com> <20151019185923.GB23660@jaegeuk-mac02.mot.com> 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-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1ZoYtd-0006F2-H2 for linux-f2fs-devel@lists.sourceforge.net; Tue, 20 Oct 2015 15:32:17 +0000 Received: from col004-omc3s16.hotmail.com ([65.55.34.154]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1ZoYtY-0002SC-2F for linux-f2fs-devel@lists.sourceforge.net; Tue, 20 Oct 2015 15:32:17 +0000 In-Reply-To: <20151019185923.GB23660@jaegeuk-mac02.mot.com> 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: 'Jaegeuk Kim' , 'Chao Yu' Cc: linux-f2fs-devel@lists.sourceforge.net Hi Jaegeuk, > -----Original Message----- > From: Jaegeuk Kim [mailto:jaegeuk@kernel.org] > Sent: Tuesday, October 20, 2015 2:59 AM > To: Chao Yu; Chao Yu > Cc: linux-f2fs-devel@lists.sourceforge.net; linux-f2fs-devel@lists.sourceforge.net > Subject: Re: [f2fs-dev] Reservation amount > > Hello, > > On Mon, Oct 19, 2015 at 06:44:40PM +0800, Chao Yu wrote: > > Hi Jaegeuk, > > > > > -----Original Message----- > > > From: Josh Dener [mailto:denerjosh@yahoo.com] > > > Sent: Sunday, October 18, 2015 12:58 PM > > > To: linux-f2fs-devel@lists.sourceforge.net > > > Subject: [f2fs-dev] Reservation amount > > > > > > Hi, > > > > > > Where does this formula come from? > > > > > > > > > config.reserved_segments = > > > > > > (2 * (100 / config.overprovision + 1) + 6) > > What I've intended here was to handle the worst case of foreground gc. > If a data segment is selected as a victim, all the valid data blocks would be > migrated, resulting in producing a same number of dirty node blocks in the worse > case. Then, checkpoint should write such the node blocks in order to reclaim the > prefree segments accordingly. Therefore, we require x2 segments. > 6 means the number of active segments, which is actually not a exact number > though. :) Ah, I see, but one more thing is why using (100 / config.overprovision) as the base segment number of reserved segments calculation? Let me guess, is that not accurate too? the intention here is to balance in between ovp and rsv segments number, not leading the (ovp + rsv) number higher? :) Thanks, > > Thanks, > > > > > I'm interest in this too, could you sharing more detail about policy > > of overprovision and reserved space calculation? > > > > Thanks, > > > > > > > > > > > Is there a formal justification for it? > > > > > > Thanks. > > > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > > > Linux-f2fs-devel mailing list > > > Linux-f2fs-devel@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel > > ------------------------------------------------------------------------------ > _______________________________________________ > Linux-f2fs-devel mailing list > Linux-f2fs-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel ------------------------------------------------------------------------------