9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Russ Cox <rsc@swtch.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] fossil woe
Date: Tue,  6 Dec 2005 18:41:53 -0500	[thread overview]
Message-ID: <ee9e417a0512061541v5a2a036dud3e32abc7363e74c@mail.gmail.com> (raw)
In-Reply-To: <775b8d190512061510i1babe79cla7a89d27c8ab8859@mail.gmail.com>

> of course. or don't call it a cache but "something that may
> fill up and screw you over".  the machine was far too hosed
> to connect to fscons and in any case telling a user "if you
> do too much stuff you will have to call me to fix fossil" is
> not aacceptable.

I'm not claiming, under any circumstances, that fossil
becoming unusable is acceptable.  However, the solution
is not as simple as "just write the blocks to venti".
First, writing blocks to venti requires some knowledge
of the rest of the file server state, and you can't always
write any block to venti.  Second, some people don't even
use venti and they can fill their fossils too.

There are plenty of subtle things going on in fossil that make
it much harder to handle the disk being full than in a conventional
file system.

Fossil needs some notion of being close to full, at which point
its behavior would change.  Automatic snapshots would stop,
as would mtime updates and any other source of automatic
dirtying of blocks.  There should be a few blocks reserved for
snapshots taken in response to manual console commands.
Then when fossil fills, you can remove recently written data
(if some runaway program has filled the disk) or connect to
the console and delete old snapshots or take an archival
snapshot.

If someone wants to work on making this happen, I would be
happy to provide further details.

Russ


  reply	other threads:[~2005-12-06 23:41 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-06 21:02 Bruce Ellis
2005-12-06 22:07 ` Russ Cox
2005-12-06 22:19   ` Eric Van Hensbergen
2005-12-06 23:10   ` Bruce Ellis
2005-12-06 23:41     ` Russ Cox [this message]
2005-12-06 23:48       ` Bruce Ellis
2005-12-07 21:03       ` rog
2005-12-07 21:07         ` Steve Simon
2005-12-07 21:12         ` Bruce Ellis
2005-12-07 21:36           ` Russ Cox
2005-12-07 21:55             ` Bruce Ellis
2005-12-07 22:09               ` jmk
2005-12-07 22:41               ` Russ Cox
2005-12-07 21:49           ` jmk
2005-12-07  0:17 ` geoff

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=ee9e417a0512061541v5a2a036dud3e32abc7363e74c@mail.gmail.com \
    --to=rsc@swtch.com \
    --cc=9fans@cse.psu.edu \
    /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;
as well as URLs for NNTP newsgroup(s).