Re: [f2fs-dev] SMR drive test 2; 128GB partition; no obvious corruption, much more sane behaviour,
Brought to you by:
kjgkr
|
From: Marc L. <sc...@sc...> - 2015-09-23 23:30:30
|
On Wed, Sep 23, 2015 at 04:55:57PM +0800, Chao Yu <cha...@sa...> wrote:
> > echo 1 >gc_idle
> > echo 1000 >gc_max_sleep_time
> > echo 5000 >gc_no_gc_sleep_time
>
> One thing I note is that gc_min_sleep_time is not be set in your script,
> so in some condition gc may still do the sleep with gc_min_sleep_time (30
> seconds by default) instead of gc_max_sleep_time which we expect.
Ah, sorry, I actually set gc_min_sleep_time to 100, but forgot to include
it.
> In 4.3 rc1 kernel, we have add a new ioctl to trigger in batches gc, maybe
> we can use it as one option.
Yes, such an ioctl could be useful to me, although I do not intend to have
background gc off.
I assume that the ioctl will block for the time it runs, and I can ask it
to do up to 16 batches in one go (by default)? That sounds indeed very
useful to have.
What is "one batch" in terms of gc, one section?
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / sc...@sc...
-=====/_/_//_/\_,_/ /_/\_\
|