All of lore.kernel.org
 help / color / mirror / Atom feed
* Nilfs features
@ 2009-05-25  9:46 Dave
       [not found] ` <4A1A68E6.50905-/hCUnnzDXf0AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Dave @ 2009-05-25  9:46 UTC (permalink / raw)
  To: users-JrjvKiOkagjYtjvyW6yDsg

Hi,

I converted (backup/restore) my home directory onto nilfs2 to test it in 
anger  (yes i know the caveats about it corrupting all my data, etc, but 
i'm willing to restore when required).

When restoring the data onto a nilfs2 filesystem there really is no 
requirement to have the checkpointing running as you have a good copy 
from your tar, cpio archive that you are restoring from. So is there a 
way to temporarily suspend checkpointing with a command and then restart 
it after the restore has completed ? I think this would be useful also 
for when  you want to have a 'privacy' mode (like firefox/mozilla) where 
you can suspend checkpointing, start some confidential work, email, 
browsing etc, and then restart checkpointing and roll back to the 
previous state.

In addition to this there doesn't seem to be a way to delete a range of 
checkpoints. When i did my restore from my archive, i generated 700+ 
useless checkpoints which i had to delete one by one (in a script). It 
would be nice to have a 'rmcp 1-100' or 'rmcp -100' or 'rmcp 100-' to 
delete a checkpoint range, a start to end.

Also it seems for home directories, a 5 second checkpointing seems 
exessive. In 14hrs i have 10,000 checkpoints (even when seemingly idle 
with mozilla page refreshes, dovecot index files updates  for email, etc).


home:~$ uptime
  13:35:09 up 14:29,  7 users,  load average: 0.85, 1.76, 2.07
home:~$ lscp|tail
                10342  2009-05-25 13:34:31   cp    i       6698     323163
                10343  2009-05-25 13:34:36   cp    -       6761     323163
                10344  2009-05-25 13:34:41   cp    i       6702     323163
                10345  2009-05-25 13:34:45   cp    -         29     323163
                10346  2009-05-25 13:34:46   cp    i       6679     323163
                10347  2009-05-25 13:34:51   cp    i       6669     323163
                10348  2009-05-25 13:34:56   cp    i       6675     323163
                10349  2009-05-25 13:35:01   cp    i       6676     323163
                10350  2009-05-25 13:35:06   cp    i       6649     323163
                10351  2009-05-25 13:35:11   cp    i       6679     323163


It would also be nice to change the cp/clean interval without editing 
the conf file, perhaps during the nite we can had different checkpoint 
intervals and during work a smaller cp interval.


Finally instead of having 5 commands, it'd be nice to have once command 
with different options (like zfs). So instead have

. nilfs checkpoint
. nilfs snapshot
. nilfs remove
. nilfs list
. nilfs suspend
. nilfs restart
etc...

All seems to be working fine so far, so take this as constructive comments.

Cheers
Dave

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Nilfs features
@ 2009-05-30  3:44 Jérôme Poulin
       [not found] ` <debc30fc0905292044r311a2842j53832195d0ef88bd-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Jérôme Poulin @ 2009-05-30  3:44 UTC (permalink / raw)
  To: users-JrjvKiOkagjYtjvyW6yDsg


[-- Attachment #1.1: Type: text/plain, Size: 1730 bytes --]

>
> No, not demanding anything. Requesting it as a feature. While your
> design has a very crucial use-case of constant checkpointing, there is
>
> also a use-case to *suspend* checkpointing (or enable it on demand
> only). As mentioned in my previous example, when restoring to a
> filesystem, or even installing new software, it is extremely unlikely
> that you would want a to go back to a point *inbetween* the time you
>
> started the install/restore to the time it completed. Say for example
> you are installing a new version of Openoffice which installs
>
> home:/opt/openoffice.org$ find . ! -type d |wc -l
>
> 4100
>
> 4000 odd files. For sure if the software didn't work, crashed, was
> buggy, i would go back completely to the pre-install state and would
> never need any intervening checkpoint. In this case i would suspend
>
> checkpointing before installing (which may by default create a
> snapshot), and then i'd restart the constant checkpointing after i'd
> finished the install/restore. Please note, i am not comparing nilfs to
> zfs, but zfs doesn't have constant cp (i think) but does have the
>
> feature i mention, i.e you take snapshots when needed (perhaps via a
> cron job daily, monthly, weekly)
>
> I just want to give my though on this one, keeping checkpoints as-is seems
ideal to me, in this case you have a very granular way to go back in time,
however, what you say is right, when installing a new software for example,
it's nice to have a way to get back to it, I guess in this case you would
just convert the last checkpoint to snapshot before the installation so you
have a time mark of where to rollback (and of course have a steady state
which won't go away during the installation), right?

[-- Attachment #1.2: Type: text/html, Size: 1987 bytes --]

[-- Attachment #2: Type: text/plain, Size: 158 bytes --]

_______________________________________________
users mailing list
users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org
https://www.nilfs.org/mailman/listinfo/users

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

end of thread, other threads:[~2009-06-02  9:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-25  9:46 Nilfs features Dave
     [not found] ` <4A1A68E6.50905-/hCUnnzDXf0AvxtiuMwx3w@public.gmane.org>
2009-05-25 23:20   ` Ryusuke Konishi
     [not found]     ` <20090526.082051.100027806.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-05-26  4:54       ` Dave
2009-05-31 16:20       ` Ryusuke Konishi
     [not found]         ` <20090601.012057.21016829.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-06-02  8:21           ` Dave
     [not found]             ` <4A24E100.8040204-/hCUnnzDXf0AvxtiuMwx3w@public.gmane.org>
2009-06-02  9:23               ` Ryusuke Konishi
  -- strict thread matches above, loose matches on Subject: below --
2009-05-30  3:44 Jérôme Poulin
     [not found] ` <debc30fc0905292044r311a2842j53832195d0ef88bd-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-06-02  8:31   ` Dave

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.