Boot-oriented disk defragmenter
Everybody is annoyed at how long it takes computers to boot. Some use hibernate mode to save a copy of the system in a booted state, which is one approach. Booting procedures have also gotten better about running stuff in parallel.
How about watching a system as it boots, and noting what disk blocks are read to boot it. Then save that map for the disk defragmenter or other disk organizer and have it try to rearrange the files needed at boot so they are all contiguous
and close together. This should reduce the role of I/O as a boot bottleneck. Many disks today can read 50 megabytes in a second, and most OSs only need to access a few 100MB in order to boot, and they have the ram to only need to read files once.
Comments
Justin
Thu, 2005-11-03 13:11
Permalink
like "readahead"
Hi Brad --
What XP, some linux distros, and Mac OS X are doing nowadays, is using "read-ahead" -- monitoring which files are read during boot, then "preloading" them into RAM as soon as possible so that as much of the boot process takes place from the buffer cache. Since much of the boot process is spent doing things like talking to other hardware, waiting for network activity, etc., this means that I/O preloading can take place at that time.
See:
http://www.kernelthread.com/mac/osx/arch_boot.html (search for "BootCache")
http://lists.debian.org/debian-knoppix/2005/01/msg00005.html (one Linux distro using readahead)
http://kerneltrap.org/node/2157 (an old LKML thread on the topic)
--j.
brad
Thu, 2005-11-03 13:23
Permalink
Readahead is good
And may be enough, but readahead is even better if the files you are reading ahead are just one long stream of contiguous blocks on disk.
Todd Larason
Thu, 2005-11-03 15:17
Permalink
It's almost been done
I don't know of anyone who's actually rearranged the physical blocks to make it optimal, but at least two different people have tried keeping records of what blocks were read and pre-loading them in the optimal order, eventually coming to the conclusion that it wasn't worth it. See
this linux-kernel thread for more details.
Anonymous
Mon, 2005-11-14 19:08
Permalink
Check perfectdisk
Check our Raxco's PerfectDisk, it has a very effective boot time defragger. Diskkeeper(that's the name of the one that M$ oem's into Windows) is a POS.
Add new comment