On Thu, 31 Mar 2011 21:19:27 +0200, "[email protected] " wrote:
> There should be a way to make automatic checkpoints less frequent. On
> the busy ssd I have about 7 cp every second. If it were for example
> once every 5 minutes then one could set garbage removal every few
> days.

If your application does't issue fsync, this can be done by increasing
"commit-interval" and "watermark" parameters:

The commit-interval is creation cycle of checkpoints while there is
some change.  The watermark is a threshold count of dirty data blocks.
When the number of dirty blocks exceeds this threshold, a checkpoint
creation will be triggered.

These parameters are adjustable by "nilfs-tune" tool which is included
in the recent nilfs-utils.  For instance, you can change the
commit-interval to 60 seconds by

  # nilfs-tune -i 60 /dev/sdb1

where /dev/sdb1 is the target nilfs partition.

And, watermark is ajustable by

  # nilfs-tune -m <watermark> /dev/sdb1


See manpage of nilfs-tune for details.

> Also garbage removal should have option to clean only if like 90% of
> drive is used. there is no need to remove cp-s when there is still
> many GB of space left.

The cleaner included in the recent nilfs-utils already supports this
feature.


Thanks,
Ryusuke Konishi
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to