linux-nilfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re-capturing space
       [not found] ` <AANLkTi=6k2_v4Ga+4V8EQEsGQ5oNTn_wnc=bbdB94k27-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2010-11-10 19:10   ` Jason J. W. Williams
       [not found]     ` <AANLkTi=+FiC=y2jpV-rJmgxdsMEdVBkk9E2_3SZGed3L-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Jason J. W. Williams @ 2010-11-10 19:10 UTC (permalink / raw)
  To: linux-nilfs-u79uwXL29TY76Z2rM5mHXA

Hello,
I'm looking at NILFS as a possible alternative to BTRFS for our move
off of ZFS. Looking at the description of how NILFS works, it seems
like it's one big log. New records go on the front. My question is how
does space eventually get recaptured when you delete files? Does the
log get rewritten/compacted regularly?

-J
--
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: Re-capturing space
       [not found]     ` <AANLkTi=+FiC=y2jpV-rJmgxdsMEdVBkk9E2_3SZGed3L-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2010-11-11  1:03       ` Ryusuke Konishi
       [not found]         ` <20101111.100359.179929646.ryusuke-sG5X7nlA6pw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Ryusuke Konishi @ 2010-11-11  1:03 UTC (permalink / raw)
  To: jasonjwwilliams-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-nilfs-u79uwXL29TY76Z2rM5mHXA

Hi,
On Wed, 10 Nov 2010 12:10:25 -0700, "Jason J. W. Williams" wrote:
> Hello,
> I'm looking at NILFS as a possible alternative to BTRFS for our move
> off of ZFS. Looking at the description of how NILFS works, it seems
> like it's one big log. New records go on the front. My question is how
> does space eventually get recaptured when you delete files? Does the
> log get rewritten/compacted regularly?
> 
> -J

Yes, a garbage collector daemon does that.  It copies "live" blocks to
the tail from the head of the log, and then frees some obsolete
segments from the log head.

Try "lssu" command to see how it works.

By default, the garbage collector (nilfs_clearned) will start when the
amount of free space falls below 10% of the disk space.

You can change it by modifying /etc/nilfs_cleanered.conf.

Regards,
Ryusuke Konishi
--
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: Re-capturing space
       [not found]         ` <20101111.100359.179929646.ryusuke-sG5X7nlA6pw@public.gmane.org>
@ 2010-11-11  1:36           ` Jason J. W. Williams
  0 siblings, 0 replies; 3+ messages in thread
From: Jason J. W. Williams @ 2010-11-11  1:36 UTC (permalink / raw)
  To: Ryusuke Konishi; +Cc: linux-nilfs-u79uwXL29TY76Z2rM5mHXA

Ryusuke,

Thank you very much for you answer! Does anyone run MySQL on NILFS or
is the random nature of database access poorly suited to good
performance on NILFS?

-J

On Wed, Nov 10, 2010 at 6:03 PM, Ryusuke Konishi <ryusuke-sG5X7nlA6pw@public.gmane.org> wrote:
> Hi,
> On Wed, 10 Nov 2010 12:10:25 -0700, "Jason J. W. Williams" wrote:
>> Hello,
>> I'm looking at NILFS as a possible alternative to BTRFS for our move
>> off of ZFS. Looking at the description of how NILFS works, it seems
>> like it's one big log. New records go on the front. My question is how
>> does space eventually get recaptured when you delete files? Does the
>> log get rewritten/compacted regularly?
>>
>> -J
>
> Yes, a garbage collector daemon does that.  It copies "live" blocks to
> the tail from the head of the log, and then frees some obsolete
> segments from the log head.
>
> Try "lssu" command to see how it works.
>
> By default, the garbage collector (nilfs_clearned) will start when the
> amount of free space falls below 10% of the disk space.
>
> You can change it by modifying /etc/nilfs_cleanered.conf.
>
> Regards,
> Ryusuke Konishi
>
--
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:[~2010-11-11  1:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <AANLkTi=6k2_v4Ga+4V8EQEsGQ5oNTn_wnc=bbdB94k27@mail.gmail.com>
     [not found] ` <AANLkTi=6k2_v4Ga+4V8EQEsGQ5oNTn_wnc=bbdB94k27-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-11-10 19:10   ` Re-capturing space Jason J. W. Williams
     [not found]     ` <AANLkTi=+FiC=y2jpV-rJmgxdsMEdVBkk9E2_3SZGed3L-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-11-11  1:03       ` Ryusuke Konishi
     [not found]         ` <20101111.100359.179929646.ryusuke-sG5X7nlA6pw@public.gmane.org>
2010-11-11  1:36           ` Jason J. W. Williams

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