9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: John Floren <john@jfloren.net>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Help with two small shared file servers
Date: Wed, 17 Aug 2011 07:32:40 -0700	[thread overview]
Message-ID: <CAL4LZyiEk35Kfq_wezUaEvJWsYX3ONeordrD7sQjFr+45fQiWg@mail.gmail.com> (raw)
In-Reply-To: <EF0CEFCB-D160-418F-83BD-E93CE2A3257B@9srv.net>

On Wed, Aug 17, 2011 at 7:11 AM, Anthony Sorace <a@9srv.net> wrote:
> On Aug 17, 2011, at 6:09 AM, Aram Hăvărneanu wrote:
>
>> Can anyone shed some light on why I might want one and not the other?
>> Are there any other options?
>
> ken's fs is a kernel, and essentially gives you a 9p-accessible file storage
> appliance. it takes another box to be able to run it. #k is part of the standard
> cpu server kernel, and is typically used in conjunction with fossil and/or
> venti. really, you usually want to decide between Ken's fs and fossil (with or
> without venti). the basics:
>
> Ken's FS used to be the default file server in Plan 9. It's a kernel, and takes over
> a box. It is only directly accessible via 9p and il, which pretty much means via
> Plan 9 (cpu servers can share the resources as they like, of course). It does
> automatic daily archives of the whole system. It does limited de-duplicating.
> It is very fast and extremely stable.
>
> fossil is a newer file server, designed for use with venti (but usable on its own,
> as well). it can be configured to do daily archives and/or periodic ephemeral
> snapshots (you pick how often and how long they last). It can be used stand-
> alone (can't do archives that way, but can still do snapshots) or with venti, in
> which case you get venti's block-level deduplication (and direct access to
> block-level storage). fossil performs reasonably and is relatively stable, but
> less so than ken's fs (and, personally, seems more sensitive to unexpected
> shutdown). venti is very stable. typically, if fossil goes belly-up, you can
> reconstruct it from venti (in every case i've seen).
>
> personally, if you (a) have the extra box to spare, (b) can put in a little extra
> work up front, (c) don't care about direct access to block-level storage, and
> (d) can live without ephemeral snapshots, i'd suggest ken's fs; otherwise, i'd
> suggest fossil backed by venti.
>
>(note that (d) above is slightly tricky, as the ephemeral snapshots in fossil
>seem to trigger a bug that causes fossil to hang periodically; most reports
>have that happening every ~2 months or so)

Ken's FS serves only 9P and can be a hassle to set up and get going.
In my opinion, if you can live without ephemeral snapshots, just run
fossil+venti with snapshots turned off, which should eliminate the
stability complaint.

I ran Ken's FS for a while, but in the end it wasn't worth the extra
trouble. We're back with fossil + venti now, with fossil on the local
disk and Venti on a 16 TB Coraid.


>> Is 9p suitable for this? How will the 40ms latency affect 9p operation?
>
> i expect that'll be well low enough for most uses.
>

It's going to be slow. See my thesis
(https://bitbucket.org/floren/tstream/src/67c7419ad84a/documents/Thesis.pdf)
for details, but I'd expect file transfers to be at least 6 times
slower than transferring via HTTP. When I tested 9P vs. HTTP over
connections with 25 ms latency (50ms RTT), I saw a 4x slowdown versus
HTTP. Even at 15 ms RTT, transfers took twice as long.


John



  reply	other threads:[~2011-08-17 14:32 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-17 10:09 Aram Hăvărneanu
2011-08-17 14:11 ` Anthony Sorace
2011-08-17 14:32   ` John Floren [this message]
2011-08-17 15:39   ` erik quanstrom
     [not found]   ` <CAL4LZyiEk35Kfq_wezUaEvJWsYX3ONeordrD7sQjFr+45fQiWg@mail.gmail.c>
2011-08-18  5:34     ` erik quanstrom
2011-08-18  5:48       ` John Floren
     [not found]       ` <CAL4LZygoKQZoTvof4F_fBQhxqsQZb2r+FR_nkgf=YbU94WvoBQ@mail.gmail.c>
2011-08-18 13:26         ` erik quanstrom
2011-08-18 14:21           ` Lucio De Re
2011-08-19  8:15           ` cinap_lenrek
2011-08-17 21:00 ` Bakul Shah
2011-08-17 21:19   ` John Floren
2011-08-17 21:22   ` Skip Tavakkolian
2011-08-18  5:29   ` erik quanstrom
2011-08-18  5:47     ` Tristan Plumb
2011-08-18  6:25     ` Bakul Shah
2011-08-30 21:40 ` Ethan Grammatikidis
     [not found] <CAEAzY3_Vx8WW1Oumt0t1_Ay6LtpTFFonpwMD+=0DYCM-yxXaeA@mail.gmail.c>
2011-08-17 15:42 ` erik quanstrom

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=CAL4LZyiEk35Kfq_wezUaEvJWsYX3ONeordrD7sQjFr+45fQiWg@mail.gmail.com \
    --to=john@jfloren.net \
    --cc=9fans@9fans.net \
    /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).