*BSD News Article 62644


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!uunet!in2.uu.net!newsfeed.internetmci.com!news.mathworks.com!fu-berlin.de!news.belwue.de!news.uni-stuttgart.de!uni-regensburg.de!newsserv.uni-bayreuth.de!uni-erlangen.de!news.tu-chemnitz.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Poor performance with INN and FreeBSD.
Date: 2 Mar 1996 19:25:04 GMT
Organization: Private BSD site, Dresden
Lines: 22
Message-ID: <4ha7ag$af@uriah.heep.sax.de>
References: <311F8C62.4BC4@pluto.njcc.com> <DMu8B6.6Jn@twwells.com> <4gdgc6$ron@olivea.atc.olivetti.com> <4gf2p0$209@fozzie.sun3.iaf.nl> <4gij7n$pmm@uriah.heep.sax.de> <4go23v$8hp@fozzie.sun3.iaf.nl> <DnFBMD.M5z@twwells.com>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.3

bill@twwells.com (T. William Wells) writes:

(sorted directories)

> Also, sorting is actually a very difficult operation, if you want
> a robust file system. Suppose that you have a two disk block
> directory. You read the directory in, sort it, and write it out.
> But, before the write of the second block, blam, your system
> crashes. Now, your on-disk directory has the new first block, and
> the old second block.

You can only do this based on transactions (read the old directory,
sort it, write the new one, change the directory pointer, free the
blocks held by the old directory contents).  However, this adds
overhead again, so it's questionable if it's worth the effort.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)