Re: [PATCH] f2fs: optimize gc for better performance

2013-09-04 Thread Jaegeuk Kim
Merged. Thank you, 2013-09-05 (목), 12:45 +0800, Jin Xu: > From: Jin Xu > > This patch improves the gc efficiency by optimizing the victim > selection policy. With this optimization, the random re-write > performance could increase up to 20%. > > For f2fs, when disk is in shortage of free spaces

[PATCH] f2fs: optimize gc for better performance

2013-09-04 Thread Jin Xu
From: Jin Xu This patch improves the gc efficiency by optimizing the victim selection policy. With this optimization, the random re-write performance could increase up to 20%. For f2fs, when disk is in shortage of free spaces, gc will selects dirty segments and moves valid blocks around for maki

Re: [PATCH] f2fs: optimize gc for better performance

2013-09-04 Thread Jin Xu
Yes, I will submit the patch later. On 05/09/2013 07:50, Jaegeuk Kim wrote: Hi Jin, 2013-09-04 (수), 21:17 +0800, Jin Xu: Hi Jaegeuk, On 04/09/2013 17:40, Jaegeuk Kim wrote: Hi Jin, 2013-09-04 (수), 07:59 +0800, Jin Xu: Hi Jaegeuk, On 03/09/2013 08:45, Jaegeuk Kim wrote: Hi Jin, [...]

Re: [PATCH] f2fs: optimize gc for better performance

2013-09-04 Thread Jaegeuk Kim
Hi Jin, 2013-09-04 (수), 21:17 +0800, Jin Xu: > Hi Jaegeuk, > > On 04/09/2013 17:40, Jaegeuk Kim wrote: > > Hi Jin, > > > > 2013-09-04 (수), 07:59 +0800, Jin Xu: > >> Hi Jaegeuk, > >> > >> On 03/09/2013 08:45, Jaegeuk Kim wrote: > >>> Hi Jin, > >>> > [...] > > > > It seems that we can

Re: [PATCH] f2fs: optimize gc for better performance

2013-09-04 Thread Jin Xu
Hi Jaegeuk, On 04/09/2013 17:40, Jaegeuk Kim wrote: Hi Jin, 2013-09-04 (수), 07:59 +0800, Jin Xu: Hi Jaegeuk, On 03/09/2013 08:45, Jaegeuk Kim wrote: Hi Jin, [...] It seems that we can obtain the performance gain just by setting the MAX_VICTIM_SEARCH to 4096, for example. So, how about ju

Re: [PATCH] f2fs: optimize gc for better performance

2013-09-04 Thread Jaegeuk Kim
Hi Jin, 2013-09-04 (수), 07:59 +0800, Jin Xu: > Hi Jaegeuk, > > On 03/09/2013 08:45, Jaegeuk Kim wrote: > > Hi Jin, > > > >> [...] > >>> > >>> It seems that we can obtain the performance gain just by setting the > >>> MAX_VICTIM_SEARCH to 4096, for example. > >>> So, how about just adding an endin

Re: [PATCH] f2fs: optimize gc for better performance

2013-09-03 Thread Jin Xu
Hi Jaegeuk, On 03/09/2013 08:45, Jaegeuk Kim wrote: Hi Jin, [...] It seems that we can obtain the performance gain just by setting the MAX_VICTIM_SEARCH to 4096, for example. So, how about just adding an ending criteria like below? I agree that we could get the performance improvement by

Re: [PATCH] f2fs: optimize gc for better performance

2013-09-02 Thread Jaegeuk Kim
Hi Jin, > [...] > > > > It seems that we can obtain the performance gain just by setting the > > MAX_VICTIM_SEARCH to 4096, for example. > > So, how about just adding an ending criteria like below? > > > > I agree that we could get the performance improvement by simply > enlarging the MAX_VICTIM_

Re: [PATCH] f2fs: optimize gc for better performance

2013-08-29 Thread Jin Xu
Hi Jaegeuk, On 08/29/2013 07:56 PM, Jaegeuk Kim wrote: Hi, 2013-08-29 (목), 08:48 +0800, Jin Xu: From: Jin Xu This patch improves the foreground gc efficiency by optimizing the victim selection policy. With this optimization, the random re-write performance could increase up to 20%. [...]

Re: [PATCH] f2fs: optimize gc for better performance

2013-08-29 Thread Jaegeuk Kim
Hi, 2013-08-29 (목), 08:48 +0800, Jin Xu: > From: Jin Xu > > This patch improves the foreground gc efficiency by optimizing the > victim selection policy. With this optimization, the random re-write > performance could increase up to 20%. > > For f2fs, foreground gc happens when disk is lack of

[PATCH] f2fs: optimize gc for better performance

2013-08-28 Thread Jin Xu
From: Jin Xu This patch improves the foreground gc efficiency by optimizing the victim selection policy. With this optimization, the random re-write performance could increase up to 20%. For f2fs, foreground gc happens when disk is lack of free spaces, it selects dirty segments and moves valid b