[4652] in arla-drinkers
Re: using arla-fuse on NetBSD
daemon@ATHENA.MIT.EDU (Jonathan A. Kollasch)
Tue Feb 17 01:03:58 2009
From arla-drinkers-bounces@stacken.kth.se Tue Feb 17 06:03:58 2009
Return-Path: <arla-drinkers-bounces@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 9952 invoked from network); 17 Feb 2009 06:03:58 -0000
Received: from mx2.kth.se (130.237.48.98)
by charon.mit.edu with SMTP; 17 Feb 2009 06:03:58 -0000
Received: from localhost (localhost [127.0.0.1])
by mx2.kth.se (Postfix) with ESMTP id F18C71097CC;
Tue, 17 Feb 2009 07:03:56 +0100 (CET)
X-Virus-Scanned: by amavisd-new at kth.se
Received: from mx2.kth.se ([127.0.0.1])
by localhost (mx2.kth.se [127.0.0.1]) (amavisd-new, port 10024)
with LMTP id h2WkgIEl4-oy; Tue, 17 Feb 2009 07:03:52 +0100 (CET)
Received: from tapas.stacken.kth.se (tapas.stacken.kth.se [130.237.234.140])
by mx2.kth.se (Postfix) with ESMTP id D586410AB55;
Tue, 17 Feb 2009 07:03:13 +0100 (CET)
Received: from tapas.stacken.kth.se (localhost [127.0.0.1])
by tapas.stacken.kth.se (Postfix) with ESMTP id F309C51DD1;
Tue, 17 Feb 2009 07:03:12 +0100 (CET)
X-Original-To: arla-drinkers@tapas.stacken.kth.se
Delivered-To: arla-drinkers@tapas.stacken.kth.se
Received: from brev.stacken.kth.se (brev.stacken.kth.se [130.237.234.84])
by tapas.stacken.kth.se (Postfix) with ESMTP id 47D6451DD1
for <arla-drinkers@tapas.stacken.kth.se>;
Tue, 17 Feb 2009 07:03:11 +0100 (CET)
Received: from mx2.kth.se (mx2.kth.se [130.237.48.98])
by brev.stacken.kth.se (8.12.10/8.12.10) with ESMTP id n1H639QP027770
for <arla-drinkers@stacken.kth.se>;
Tue, 17 Feb 2009 07:03:10 +0100 (MET)
Received: from localhost (localhost [127.0.0.1])
by mx2.kth.se (Postfix) with ESMTP id 7ED2710A189
for <arla-drinkers@stacken.kth.se>;
Tue, 17 Feb 2009 07:03:04 +0100 (CET)
X-Virus-Scanned: by amavisd-new at kth.se
Received: from mx2.kth.se ([127.0.0.1])
by localhost (mx2.kth.se [127.0.0.1]) (amavisd-new, port 10024)
with LMTP id xbtPuqI-xj5M for <arla-drinkers@stacken.kth.se>;
Tue, 17 Feb 2009 07:03:03 +0100 (CET)
Received: from naboo.kollasch.net (unknown
[IPv6:2001:470:1:35:216:3eff:fe43:17a9])
by mx2.kth.se (Postfix) with ESMTP id 47CB41097CC
for <arla-drinkers@stacken.kth.se>;
Tue, 17 Feb 2009 07:03:03 +0100 (CET)
Received: from mail.kollasch.net (mail.kollasch.net
[IPv6:2002:a867:36dd:1::19])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(Client CN "mail.kollasch.net",
Issuer "CA Cert Signing Authority" (verified OK))
by naboo.kollasch.net (Postfix) with ESMTPS id 2ACD355565;
Tue, 17 Feb 2009 05:54:13 +0000 (UTC)
Received: from tazenda.kollasch.net (tazenda.kollasch.net
[IPv6:2001:4978:1f7:410:216:3eff:fe1e:883])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(Client did not present a certificate)
(Authenticated sender: jakllsch@KOLLASCH.NET)
by mail.kollasch.net (Postfix) with ESMTP id B46103A32D;
Tue, 17 Feb 2009 05:54:05 +0000 (UTC)
Date: Tue, 17 Feb 2009 05:54:05 +0000
From: "Jonathan A. Kollasch" <jakllsch@kollasch.net>
To: Tomas Olsson <tol@kth.se>
Subject: Re: using arla-fuse on NetBSD
Message-ID: <20090217055405.GD9206@tazenda.kollasch.net>
References: <20090214042846.GA2916@tazenda.kollasch.net>
<79EB14A54706FA489DB697759A3D7C930D7B9B35FB@MAIL01.ug.kth.se>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <79EB14A54706FA489DB697759A3D7C930D7B9B35FB@MAIL01.ug.kth.se>
User-Agent: Mutt/1.5.18 (2008-05-17)
Cc: "arla-drinkers@stacken.kth.se" <arla-drinkers@stacken.kth.se>
X-BeenThere: arla-drinkers@stacken.kth.se
X-Mailman-Version: 2.1.6
Precedence: list
List-Id: Arla discussions <arla-drinkers.stacken.kth.se>
List-Unsubscribe: <https://lists.stacken.kth.se/mailman/listinfo/arla-drinkers>,
<mailto:arla-drinkers-request@stacken.kth.se?subject=unsubscribe>
List-Archive: <http://lists.stacken.kth.se/pipermail/arla-drinkers>
List-Post: <mailto:arla-drinkers@stacken.kth.se>
List-Help: <mailto:arla-drinkers-request@stacken.kth.se?subject=help>
List-Subscribe: <https://lists.stacken.kth.se/mailman/listinfo/arla-drinkers>,
<mailto:arla-drinkers-request@stacken.kth.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: arla-drinkers-bounces@stacken.kth.se
Errors-To: arla-drinkers-bounces@stacken.kth.se
On Mon, Feb 16, 2009 at 08:47:39PM +0100, Tomas Olsson wrote:
> Jonathan Kollasch writes:
> > I finally got arla-fuse from the 'HEAD' branch to run on NetBSD-5.
> > The trick is to not use the pthread LWP implementation.
> >
> > I'm aware that arla-fuse is kinda new. But, just as a data point,
> > it seems to be less smooth than nnpfs, particularly WRT playing
> > audio files out of AFS.
> >
> Neat! It was a quick hack, and I'm sure it can be improved. But
> it's nice to hear that it can be used. You didn't need to do any
> changes at all?
Aside from changing a -lfuse to -lrefuse, none. And, of course,
skip building the parts that are broken, like nnpfs.
> Does it do any readahead?
I'm not sure, but after running a ktruss on arla-fuse, I found that
it was doing it's job somewhat inefficiently.
I observed that for every call to arla_read(), every cache-block file
that makes up the file is open(2)ed, read(2) and close(4)ed. This
causes annoying pauses as mplayer requests more data (in batches of
2KiB chunks) from something the size of a typical 3-5 minute FLAC file.
Yet for a MP3, the process doesn't cause these pauses in playback.
So, there are some things to work out, but I've not dug into it
enough to really know what all needs improving and how.
Probably more fun to improve this than to port libafs
and glue that into fuse. :-)
Jonathan Kollasch
_______________________________________________
Arla-drinkers mailing list
Arla-drinkers@stacken.kth.se
https://lists.stacken.kth.se/mailman/listinfo/arla-drinkers