* Looking for faster fsck
@ 1992-03-26 14:22 P. Allen Jensen
1992-03-26 14:48 ` Marcus J. Ranum
1992-03-27 4:22 ` Greg Pavlov
0 siblings, 2 replies; 5+ messages in thread
From: P. Allen Jensen @ 1992-03-26 14:22 UTC (permalink / raw)
When recovering from system failuressuch as power outages,most of the
time booting is spent in FSCK (on ULTRIX systems). Does anyone have
or know of a faster fsck ?
Thanks,
--
P. Allen Jensen | BellSouth Advanced Networks
Tel. 404.847.2900 | 1100 Johnson Ferry Road, Suite 900
Internet: jensen@eedsp.gatech.edu | Atlanta, GA 30342, USA
X.400 gateway: /G=Allen/S=Jensen/O=BSAN/ADMD=BELLSOUTH/C=US/@sprint.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Looking for faster fsck
1992-03-26 14:22 Looking for faster fsck P. Allen Jensen
@ 1992-03-26 14:48 ` Marcus J. Ranum
1992-03-26 18:45 ` Geoff Collyer
1992-03-26 22:00 ` Lyle_Seaman
1992-03-27 4:22 ` Greg Pavlov
1 sibling, 2 replies; 5+ messages in thread
From: Marcus J. Ranum @ 1992-03-26 14:48 UTC (permalink / raw)
jensen@gauss.eedsp.gatech.edu (P. Allen Jensen) writes:
>
>When recovering from system failuressuch as power outages,most of the
>time booting is spent in FSCK (on ULTRIX systems). Does anyone have
>or know of a faster fsck ?
Fsck does its thing at its own good pace, and there's not much
you can do about it. If you've got multiple disks/controllers, you can
interleave the fscks by being careful about the pass numbers in fstab,
or use the "preen" program, which is a little smarter about interleaving
the fsck passes. Generally, though, fsck is necessary, and it's slow
by necessity, since it has to look all over your disk.
Another option is to not use filesystems, or mount things read
only. (for example, don't have fstab entries that imply your CDROMS are
to be checked, or fsck will blissfully check them)
mjr.
--
"Sometimes if you have a cappuccino and then try again it will work OK."
- Dr. Brian Reid, 1992
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Looking for faster fsck
1992-03-26 14:48 ` Marcus J. Ranum
@ 1992-03-26 18:45 ` Geoff Collyer
1992-03-26 22:00 ` Lyle_Seaman
1 sibling, 0 replies; 5+ messages in thread
From: Geoff Collyer @ 1992-03-26 18:45 UTC (permalink / raw)
mjr@hussar.dco.dec.com (Marcus J. Ranum) writes:
>Fsck does its thing at its own good pace, and there's not much
>you can do about it. If you've got multiple disks/controllers, you can
>interleave the fscks by being careful about the pass numbers in fstab,
>or use the "preen" program, which is a little smarter about interleaving
>the fsck passes. Generally, though, fsck is necessary, and it's slow
>by necessity, since it has to look all over your disk.
Sorry, fsck need not be slow (or even as slow as it usually is). Even
without a radical redesign, one can roughly double its speed by (a)
reading in larger units and (b) not throwing away directory blocks
casually. For more information, see
%T A Faster fsck for BSD UNIX(TM)
%A Eric J. Bina
%A Perry A. Emrath
%J Proc. Winter Usenix Conf. San Diego 1989
%D January 1989
%P 173-185
%K fsck file system check repair performance
It's a nice piece of work and it's unfortunate that their code never
seems to have been fed back to UCB nor AT&T.
--
Geoff Collyer world.std.com!geoff, uunet.uu.net!geoff
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Looking for faster fsck
1992-03-26 14:48 ` Marcus J. Ranum
1992-03-26 18:45 ` Geoff Collyer
@ 1992-03-26 22:00 ` Lyle_Seaman
1 sibling, 0 replies; 5+ messages in thread
From: Lyle_Seaman @ 1992-03-26 22:00 UTC (permalink / raw)
mjr@hussar.dco.dec.com (Marcus J. Ranum) writes:
> the fsck passes. Generally, though, fsck is necessary, and it's slow
> by necessity, since it has to look all over your disk.
> Another option is to not use filesystems, or mount things read
> only. (for example, don't have fstab entries that imply your CDROMS are
> to be checked, or fsck will blissfully check them)
Another option is to use a fast-restart filesystem, such as log-based
filesystems, of which JFS (on AIX) is currently the most widely-used.
Others are also available. For a recent paper, see:
@INPROCEEDINGS{Rosenblum91,
AUTHOR = "Mendel Rosenblum and John K. Ousterhout",
TITLE = "The design and implementation of a log-structured file system",
BOOKTITLE = "Proceedings of 13th ACM Symposium on Operating Systems Principles",
CONFLOCATION = "Asilomar, Pacific Grove, CA ",
PUBLISHER = "Association for Computing Machinery SIGOPS",
MONTH = "October",
YEAR = "1991",
PAGES = "1--15",
KEY = "Rosenblum91"}
The time-to-fsck becomes an issue when you have 10s of GB of disk
hanging off a machine. It becomes a real problem once you get
near 100 GB.
Lyle Transarc 707 Grant Street
412 338 4474 The Gulf Tower Pittsburgh 15219
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Looking for faster fsck
1992-03-26 14:22 Looking for faster fsck P. Allen Jensen
1992-03-26 14:48 ` Marcus J. Ranum
@ 1992-03-27 4:22 ` Greg Pavlov
1 sibling, 0 replies; 5+ messages in thread
From: Greg Pavlov @ 1992-03-27 4:22 UTC (permalink / raw)
In article <1992Mar26.142221.26014@ee.gatech.edu>, jensen@gauss.eedsp.gatech.edu (P. Allen Jensen) writes:
>
> When recovering from system failuressuch as power outages,most of the
> time booting is spent in FSCK (on ULTRIX systems). Does anyone have
> or know of a faster fsck ?
>
fsck does a heck of a lot of work and it must do it carefully (read: conser-
vative algorithms). HOWEVER, there is one thing that we have done here in
one specific instance (a 1 GB disk that contains some 30,000 small files,
many "historical" but occasionally accessed): because fsck took so long
to check this drive and because it does not contain critical data, we removed
its entry from fstab. We then mount it after the system reboots. Don't
know if this cutting-corners technique has any relevance/application to
your situation.....
greg pavlov
pavlov@karloff.fstrf.org
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1992-03-27 4:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1992-03-26 14:22 Looking for faster fsck P. Allen Jensen
1992-03-26 14:48 ` Marcus J. Ranum
1992-03-26 18:45 ` Geoff Collyer
1992-03-26 22:00 ` Lyle_Seaman
1992-03-27 4:22 ` Greg Pavlov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox