Article View: news.software.nntp
Article #14007Re: fastfs
From: USENET news
Date: Mon, 13 Jan 1997 00:00
Date: Mon, 13 Jan 1997 00:00
88 lines
4837 bytes
4837 bytes
[Cc'd to Dave Barr for info, so the link can be clarified on his web server]
In article <32d99adf.19145122@news>, Brian Young <byoung@oru.edu> wrote:
>I saw fastfs on David Barr's INN page, and I downloaded it, but I have
>some questions:
>
>First, does anybody have any good or bad experence with fastfs?
Yes. Using it for its intended purpose (speeding up restoring dumps of large
filesystems, or similar) where it doesn't matter that a system crash or
messy shutdown may wreck the filesystem, I found it speeded up a 4GB news
spool restore from 18 hours (the previous time the drive broke, a few weeks
earlier...) to around 8 hours.
>Second, I can't get it to compile on my BSDI 2.0 machine. It says it
>can't find mnttab.h, which is probably not suprising since BSDI
>doesn't use mnttab, it uses fstab. Or am I really off my rocker
>here? Anyway, if anybody has the binary, or a patched source, please
>let me know.
It's only intended for Sun (SunOS 4 or Solaris 2) systems, using undocumented
facilities to enable asynchronous updating of filesystem metadata. Doing
that carries with it the risk of serious filesystem corruption in the event
of a messy shutdown, but in the case of restoring a whole filesystem that is
unimportant when you could do the restore several times with fastfs in the
time it would take to do one restore the normal way (with all the
directory/inode updates being written to disc individually rather than left
in memory for saving when convenient).
Unfortunately in the context of Dave Barr's web server neither point is made
clear! In the context of the "FAQ: Sun Computer Administration Frequently
Asked Questions" article in comp.unix.solaris, the place I've normally seen
the program mentioned, it's a lot clearer! The link description does say
"Use with care.", but I would definitely not advise using it e.g. to speed
up expire, since recovering from losing the entire partition is likely to be
a lot more of a problem than slow expiry!
Even if mnttab.h were found, I would be surprised if it worked at all
on any non-Sun systems (unless, in fact, the undocumented ioctl is not
entirely Sun-specific). Some systems have equivalent facilities provided in
other ways, possibly even implemented so as to be safe in the event of
crashes. I vaguely recall reading that asynchronous metadata updates
are a standard facility in BSDI, but I could be wrong about that, so you
may already have the facility available on your system.
For completeness, here's what the Sun admin FAQ says about it - this
is from a fairly old copy - can't find a current one - but ithis section
probably hasn't changed.
===== from Sun admin's FAQ in comp.unix.solaris (April 1996 version)
106) How can you I speed up filesystem restores and/or copies?
In all versions of SunOS 4.1.2 and later (including Solaris2.x)
you can use special filesystem level ioctl. A program written
by Caspar Dik that uses this ioctl can be downloaded as
ftp.ece.uc.edu:/pub/sun-faq/Source/fastfs.c
Please remember that using this program will in many
cases cause fsck to be completely unable to fix your disk in
the case of unexpected system shutdown. Yes, it goes faster -
at a very significant risk of losing the entire filesystem.
When is using this appropriate?
When:
1) You're creating a new filesystem via a copy from somewhere else.
2) You're removing all the files from a partition.
3) You're updating a partition with files from elsewhere, and the
entire contents are restorable.
Remember, this doesn't make IO go any faster, it just allows metadata
to be written asynchronously. If you are creating a 100 M file, this
won't help much. If, on the other hand, you are writing 100000 1k
files, this will help enormously.
Remember to restore the safe mode before shutting the system down!
Think of this as a large chainsaw; it can be useful but has significant
chance of unintended side effects when used by the inexperienced.
Last Updated: April 14, 1995.
=====
John Line
Technical Details
Message-ID:
<5bd24t$pvv@lyra.csx.cam.ac.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<32d99adf.19145122@news>Show Full Headers
Complete Article Headers
Message-ID: <5bd24t$pvv@lyra.csx.cam.ac.uk> Subject: Re: fastfs Date: Mon, 13 Jan 1997 00:00:00 +0000 From: news@news.cam.ac.uk (USENET news) References: <32d99adf.19145122@news> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 209501248 Organization: Computing Service, Cambridge University, England Newsgroups: news.software.nntp