From: Namjae Jeon <linkinjeon@gmail.com>
To: Gu Zheng <guz.fnst@cn.fujitsu.com>
Cc: jaegeuk.kim@samsung.com, linux-f2fs-devel@lists.sourceforge.net,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
Namjae Jeon <namjae.jeon@samsung.com>,
Pankaj Kumar <pankaj.km@samsung.com>
Subject: Re: [PATCH 2/2] f2fs: add sysfs entries to select the gc policy
Date: Fri, 2 Aug 2013 10:28:12 +0900 [thread overview]
Message-ID: <CAKYAXd9bcV3OMvrWu1hkPuriz+2wc--wLf6N7pLDKX2+Y2Pqrw@mail.gmail.com> (raw)
In-Reply-To: <51F9D407.8040703@cn.fujitsu.com>
2013/8/1, Gu Zheng <guz.fnst@cn.fujitsu.com>:
> Hi Jeon,
>
> On 07/31/2013 10:33 PM, Namjae Jeon wrote:
>
>> From: Namjae Jeon <namjae.jeon@samsung.com>
>>
>> Add sysfs entries namely gc_long_idle and gc_short_idle to control the
>> gc policy. Where long idle corresponds to selecting a cost benefit
>> approach,
>> while short idle corresponds to selecting a greedy approach to garbage
>> collection. The selection is mutually exclusive one approach will work at
>> any point.
>>
>> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
>> Signed-off-by: Pankaj Kumar <pankaj.km@samsung.com>
>> ---
>> Documentation/ABI/testing/sysfs-fs-f2fs | 12 +++++++
>> Documentation/filesystems/f2fs.txt | 8 +++++
>> fs/f2fs/gc.c | 22 ++++++++++--
>> fs/f2fs/gc.h | 4 +++
>> fs/f2fs/super.c | 59
>> +++++++++++++++++++++++++++++--
>> 5 files changed, 99 insertions(+), 6 deletions(-)
>>
>> diff --git a/Documentation/ABI/testing/sysfs-fs-f2fs
>> b/Documentation/ABI/testing/sysfs-fs-f2fs
>> index 5f44095..96b62ea 100644
>> --- a/Documentation/ABI/testing/sysfs-fs-f2fs
>> +++ b/Documentation/ABI/testing/sysfs-fs-f2fs
>> @@ -19,4 +19,16 @@ Description:
>> Controls the default sleep time for gc_thread. Time
>> is in milliseconds.
>>
>> +What: /sys/fs/f2fs/<disk>/gc_long_idle
>> +Date: July 2013
>> +Contact: "Namjae Jeon" <namjae.jeon@samsung.com>
>> +Description:
>> + Controls the selection of gc policy. long_idle is used
>> + to select the cost benefit approach for garbage collection.
>>
>> +What: /sys/fs/f2fs/<disk>/gc_short_idle
>> +Date: July 2013
>> +Contact: "Namjae Jeon" <namjae.jeon@samsung.com>
>> +Description:
>> + Controls the selection of gc policy. short_idle is used
>> + to select the greedy approach for garbage collection.
>> diff --git a/Documentation/filesystems/f2fs.txt
>> b/Documentation/filesystems/f2fs.txt
>> index 2e9e873..06dd5d7 100644
>> --- a/Documentation/filesystems/f2fs.txt
>> +++ b/Documentation/filesystems/f2fs.txt
>> @@ -158,6 +158,14 @@ Files in /sys/fs/f2fs/<devname>
>> time for the garbage collection thread.
>> Time is
>> in milliseconds.
>>
>> + gc_long_idle This parameter controls the selection of
>> cost
>> + benefit approach for garbage collectoin.
>> Writing
>> + 1 to this file will select the cost benefit
>> policy.
>> +
>> + gc_short_idle This parameter controls the selection of
>> greedy
>> + approach for the garbage collection.
>> Writing 1
>> + to this file will select the greedy
>> policy.
>
Hi Gu.
> Why introduce two opposite attributes? It'll cause some confusion condition
> if we
> double enable/disable them.
Yes, it seem possible in that you're talking.
Okay, I will make one gc_idle and we can use long idle and short idle
accoding to setting values.
Thanks for review!
>
>> +
>>
>>
prev parent reply other threads:[~2013-08-02 1:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-31 14:33 [PATCH 2/2] f2fs: add sysfs entries to select the gc policy Namjae Jeon
2013-08-01 3:20 ` Gu Zheng
2013-08-02 1:28 ` Namjae Jeon [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAKYAXd9bcV3OMvrWu1hkPuriz+2wc--wLf6N7pLDKX2+Y2Pqrw@mail.gmail.com \
--to=linkinjeon@gmail.com \
--cc=guz.fnst@cn.fujitsu.com \
--cc=jaegeuk.kim@samsung.com \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=namjae.jeon@samsung.com \
--cc=pankaj.km@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).