Why is restore so slow?(what about using cpio -pudmv)

J.C. Webber III jc at skyking.UUCP
Thu Jan 31 00:39:14 AEST 1991


In <2880 at redstar.cs.qmw.ac.uk> liam at cs.qmw.ac.uk (William Roberts;) writes:

>Restore suffers from the fact that files are stored in inode-number order: 
>this is not the ideal order for createing files as it thrashes the namei-cache 
>because the files are recreated randomly all over the place. We reorganised 
>our machine once and used dump/restore to move our /usr/spool and /usr/mail 
>partitions around: /usr/spool contains lots of tiny files called things like 
>/usr/spool/news/comp/unix/internals/5342 and this took an incredibly long time 
>to restore. /usr/mail contains several hundred files but no subdirectories and 
>restored in about the same sort of time as it took to dump. 

I have the imfamous lost inode problem on my system (after installing 
Bnews) so periodically I need to recover my /usr/spool partition.
What I have been doing is using "find . print|cpio -pudmv /new.slice
/usr/spool"  to move the files to a different partition while I clean
up the /usr/spool slice.  I do a rm -r * on /usr/spool, umount it,
fsck it, remount it and the cpio all the files back from the backup
partition.  My purpose in doing all this rather than just a simple
fsck is an attempt to recover *all* stray inodes sprinkled throughout
the /usr/spool slice.  My assumption is that the cpio'ing of these
files will cause them to have their inodes reassigned and layed out
sequencially on the disk.  Is this a correct assumtion?  It seams
to last longer (between "out of inode" messages) than just simply
fsck'ing the partition.  BTW, does anyone know of a resonable fix
for this problem.  I don't have kernal sources, but I can do some
kernel parameter tweeking and rebuilding using the sysconf utilities
on my system.  I have a CounterPoint System19k 68020 SystemV.3.0.
've read some postings about how this bug manifests itself, but
haven't seen anything about how to fix it except to contact the
vendor.  Well, that won't work, CounterPoint is out of buisness.

thx...jc

--
 /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 \  J.C. Webber III		jc at skyking.UUCP	                              /
 /  R&D Lab Manager		(...uunet!mips!skyking!jc)                    \
 \  Mips Computer Systems	{ames,decwrl,pyramid,prls)!mips!skyking!jc    /
 /  (408)524-8260                                                             \
 \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/



More information about the Comp.unix.internals mailing list