linux-nilfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* nilfs_cleanerd could use some sensible defaults if its conf file is empty...
@ 2011-04-03 20:49 Alessandro Salvatori
       [not found] ` <BANLkTi=r2nmV1B9nF=f23fk2YxDch0ewRQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Alessandro Salvatori @ 2011-04-03 20:49 UTC (permalink / raw)
  To: linux-nilfs-u79uwXL29TY76Z2rM5mHXA

Hello,

    my root nilfs2 filesystem filled and trying and editing
/etc/nilfs_cleanerd.conf resulted in an empty file.

I started the cleanerd but it wasn't freeing up any space.
Then I converted all of my snapshots back onto checkpoints and removed
all of my checkpoints.

still nothing.

Then I created a new nilfs_cleanerd.conf with sensible values in my
home directory and pointed nilfs_cleanerd to that.

and finally it worked!!!

maybe nilfs_cleanerd could default to some minimum of -say- the least
between some small amount of gigabytes and some small percentage of
the disk size as the minimum space to free if no setting is found in
the configuration file?

thank you!
-alessandro-
 Here i am, A young man,
 A crashing computer program,
 Here is a pen, write out my name.
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: nilfs_cleanerd could use some sensible defaults if its conf file is empty...
       [not found] ` <BANLkTi=r2nmV1B9nF=f23fk2YxDch0ewRQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2011-04-04 10:00   ` Ryusuke Konishi
       [not found]     ` <20110404.190037.212385465.ryusuke-sG5X7nlA6pw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Ryusuke Konishi @ 2011-04-04 10:00 UTC (permalink / raw)
  To: sandr8-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-nilfs-u79uwXL29TY76Z2rM5mHXA

On Sun, 3 Apr 2011 13:49:47 -0700, Alessandro Salvatori wrote:
> Hello,
> 
>     my root nilfs2 filesystem filled and trying and editing
> /etc/nilfs_cleanerd.conf resulted in an empty file.
> 
> I started the cleanerd but it wasn't freeing up any space.
> Then I converted all of my snapshots back onto checkpoints and removed
> all of my checkpoints.
> 
> still nothing.

Did you try '-p' option?

nilfs_cleanerd tries to protect recent checkpoints within the period
specified with "protection_period" parameter.

It is set to one hour by default.  So, the effect of converting
snapshots back to checkpoints will not appear soon.

But, you can shorten this period by using the '-p' option for
emergency.
 
> Then I created a new nilfs_cleanerd.conf with sensible values in my
> home directory and pointed nilfs_cleanerd to that.
> 
> and finally it worked!!!
> 
> maybe nilfs_cleanerd could default to some minimum of -say- the least
> between some small amount of gigabytes and some small percentage of
> the disk size as the minimum space to free if no setting is found in
> the configuration file?

The current nilfs_cleanerd.conf has keyword 'min_clean_segments' to
specify percentage of minimum free space, but the effect of
protection_period is prior to that.

So, adding another parameter sounds worth considering as you pointed
out.

For instance,

 emerg_clean_segments     5%    # override protection_period
 min_clean_segments      10%
 max_clean_segments      20%

Am I on the right track?

Thanks,
Ryusuke Konishi

> thank you!
> -alessandro-
>  Here i am, A young man,
>  A crashing computer program,
>  Here is a pen, write out my name.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: nilfs_cleanerd could use some sensible defaults if its conf file is empty...
       [not found]     ` <20110404.190037.212385465.ryusuke-sG5X7nlA6pw@public.gmane.org>
@ 2011-04-04 18:16       ` Alessandro Salvatori
  0 siblings, 0 replies; 3+ messages in thread
From: Alessandro Salvatori @ 2011-04-04 18:16 UTC (permalink / raw)
  To: Ryusuke Konishi; +Cc: linux-nilfs-u79uwXL29TY76Z2rM5mHXA

of course i had already tried -p 0 and also -p 1, in case 0 had some
special meaning ^_^

thank you!
-alessandro-
 Here i am, A young man,
 A crashing computer program,
 Here is a pen, write out my name.

On Mon, Apr 4, 2011 at 03:00, Ryusuke Konishi <ryusuke-sG5X7nlA6pw@public.gmane.org> wrote:
> On Sun, 3 Apr 2011 13:49:47 -0700, Alessandro Salvatori wrote:
>> Hello,
>>
>>     my root nilfs2 filesystem filled and trying and editing
>> /etc/nilfs_cleanerd.conf resulted in an empty file.
>>
>> I started the cleanerd but it wasn't freeing up any space.
>> Then I converted all of my snapshots back onto checkpoints and removed
>> all of my checkpoints.
>>
>> still nothing.
>
> Did you try '-p' option?
>
> nilfs_cleanerd tries to protect recent checkpoints within the period
> specified with "protection_period" parameter.
>
> It is set to one hour by default.  So, the effect of converting
> snapshots back to checkpoints will not appear soon.
>
> But, you can shorten this period by using the '-p' option for
> emergency.
>
>> Then I created a new nilfs_cleanerd.conf with sensible values in my
>> home directory and pointed nilfs_cleanerd to that.
>>
>> and finally it worked!!!
>>
>> maybe nilfs_cleanerd could default to some minimum of -say- the least
>> between some small amount of gigabytes and some small percentage of
>> the disk size as the minimum space to free if no setting is found in
>> the configuration file?
>
> The current nilfs_cleanerd.conf has keyword 'min_clean_segments' to
> specify percentage of minimum free space, but the effect of
> protection_period is prior to that.
>
> So, adding another parameter sounds worth considering as you pointed
> out.
>
> For instance,
>
>  emerg_clean_segments     5%    # override protection_period
>  min_clean_segments      10%
>  max_clean_segments      20%
>
> Am I on the right track?
>
> Thanks,
> Ryusuke Konishi
>
>> thank you!
>> -alessandro-
>>  Here i am, A young man,
>>  A crashing computer program,
>>  Here is a pen, write out my name.
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-04-04 18:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-03 20:49 nilfs_cleanerd could use some sensible defaults if its conf file is empty Alessandro Salvatori
     [not found] ` <BANLkTi=r2nmV1B9nF=f23fk2YxDch0ewRQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-04-04 10:00   ` Ryusuke Konishi
     [not found]     ` <20110404.190037.212385465.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-04-04 18:16       ` Alessandro Salvatori

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).