From: Ryusuke Konishi <ryusuke-sG5X7nlA6pw@public.gmane.org>
To: users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org,
elentirmo.gilgalad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Subject: Re: nilfs_cleanerd some questions
Date: Fri, 30 Jan 2009 19:27:14 +0900 (JST) [thread overview]
Message-ID: <20090130.192714.36238794.ryusuke@osrg.net> (raw)
In-Reply-To: <7e094bfb0901300155i42dd45fbv5cc7719959b1a9d2-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Hi,
On Fri, 30 Jan 2009 10:55:14 +0100, Gergely Gábor wrote:
> Hello!
>
> Sorry for my intrusion, but probably a way to pause the GC and resume
> it, would be nice, maybe with SIGUSR1 and SIGUSR2, or even trough dbus
> >:-), to let other cases be handled, like running on battery, and
> similiar. IMHO this is much more elegant way, then killing, and
> respawning the GC at every such change, and it can finish its work,
> before getting killed aswell.
I don't disagree.
We sometimes do the simliar thing by raising `protection_period'
temporarily, but it's not elegant either.
Regards,
Ryusuke
> On Fri, Jan 30, 2009 at 10:40 AM, Ryusuke Konishi <ryusuke-sG5X7nlA6pw@public.gmane.org> wrote:
> > Hi,
> > On Sat, 24 Jan 2009 18:11:14 +0000, tom wrote:
> >> I'm using nilfs2 on a debian (lenny machine) using kernel 2.6.26-1-686
> >> and nilfs version 2.0.6. Currently I have a 250 Gb single partition
> >> drive connected via USB2, which I have formatted for nilfs2. I have
> >> noticed that when extracting a large archive onto the the file system
> >> that it seems to "burst", that is, it will extract for 5 seconds then
> >> halt for 1 and then repeat this cycle faithfully for the duration.
> >>
> >> If I switch (kill) off the GC then the "bursting" effect disappears. I
> >> can remove checkpoints more efficiently using rmcp, however am I right
> >> in thinking that the GC does more than just remove checkpoints ?
> >
> > Yes, only GC can reclaim disk space; rmcp does not make free space.
> >
> >> Is the behaviour that I am witnessing typical of the nilfs GC or is
> >> being highlighted because I am using usb instead of directly attached
> >> ide / sata ?
> >
> > I don't know why that happens, but a likely cause is bulky reads of
> > blocks during GC.
> >
> > In that case, the following workarounds may make a difference.
> >
> > 1) Decrease value of `nsegments_per_clean' in /etc/nilfs_cleanerd.conf
> > e.g.
> > #nsegments_per_clean 2
> > nsegments_per_clean 1
> >
> > 2) Re-create the partition using mkfs.nilfs2 with a smaller segment size.
> > e.g.
> > # mkfs -t nilfs2 -B 1024 /dev/sdxx
> > (This halves the number of blocks per segment)
> >
> >> I'm hoping to apply nilfs in production environment for our print unit
> >> at work because they would like self service recovery and because they
> >> have large amounts of graphical data that is updated daily but could
> >> only be safely backed up using a snaphot technology.
> >>
> >> However I am concerned that any large file / archive extracts onto a
> >> nilfs file system with the GC switched on would impede efficiency.
> >>
> >> It is safe to say that I wont be using USB attached storage in the
> >> production environment, but I thought it might be worth mentioning my
> >> findings as the behaviour may still be present in a very muted form on
> >> IDE / SATA based storage devices.
> >
> > Thanks for reporting.
> >
> > I feel, the current GC is indeed immature and needs more love
> > especially for production use.
> >
> >> I guess I could run GC at off peak times as a workaround, but would it
> >> ever catch up ?
> >
> > Not guaranteed. The speed of the GC is static unless you change
> > nilfs_cleanerd.conf and send a HUP signal to the GC daemon.
> > At least the speed should be adjusted adaptively, but not done yet.
> >
> > Regards,
> > Ryusuke Konishi
> > _______________________________________________
> > users mailing list
> > users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org
> > https://www.nilfs.org/mailman/listinfo/users
> >
> _______________________________________________
> users mailing list
> users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org
> https://www.nilfs.org/mailman/listinfo/users
prev parent reply other threads:[~2009-01-30 10:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-24 18:11 nilfs_cleanerd some questions tom
[not found] ` <497B59C2.80709-QgLWrMLu8clzjhtm8Ag3mw@public.gmane.org>
2009-01-30 9:40 ` Ryusuke Konishi
[not found] ` <20090130.184034.91816318.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-01-30 9:55 ` Gergely Gábor
[not found] ` <7e094bfb0901300155i42dd45fbv5cc7719959b1a9d2-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-01-30 10:27 ` Ryusuke Konishi [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=20090130.192714.36238794.ryusuke@osrg.net \
--to=ryusuke-sg5x7nla6pw@public.gmane.org \
--cc=elentirmo.gilgalad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org \
/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