From: Avi Kivity <avi@argo.co.il>
To: Andrew Morton <akpm@osdl.org>
Cc: bert hubert <bert.hubert@netherlabs.nl>, linux-kernel@vger.kernel.org
Subject: Re: fastboot, diskstat
Date: Fri, 22 Jul 2005 10:18:25 +0300 [thread overview]
Message-ID: <42E09DC1.90602@argo.co.il> (raw)
In-Reply-To: <20050722144710.47e0cbd6.akpm@osdl.org>
Andrew Morton wrote:
>The above data is enough for performing a crude preload:
>
>a) Boot the machine
>
>b) Boost the disk queue size, set the VFS readahead to zero, open
> /dev/hda1 and all the regular files, hose reads at the disk via
> fadvise(). Restore VFS readahead and queue size, continue with boot.
>
>
opening all these files will require synchronous reads of their
directories and inodes, so you might need to split b) into first opening
and reading /dev/hda1, then opening and reading the regular files.
>And I suspect that the whole thing will be of marginal benefit. Although
>things might be better now that files are laid out with the Orlov allocator
>(make sure that the distro was installed with a 2.6 kernel! The file
>layout will be quite different if the installer used a 2.4 ext3).
>
>Of course the next step is to rewrite files so that they are more
>favourably laid out on disk. Tricky. Or dump all pagecache to some temp
>file in a nice linear slurp and preload that, copying it all to the
>appropriate per-inode pagecaches and taking care of files which have been
>modified. Trickier ;)
>
>
another possibility: use a device mapper module under /dev/hda1 that
records I/O patterns, then relocates blocks to fit that pattern, so that
the normal boot sequence ends up issuing sequential disk writes.
parallelized initscripts will probably defeat this, though.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
next prev parent reply other threads:[~2005-07-22 7:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-22 3:41 fastboot, diskstat bert hubert
2005-07-22 4:47 ` Andrew Morton
2005-07-22 7:18 ` Avi Kivity [this message]
2005-07-22 8:50 ` Lincoln Dale
2005-07-22 7:16 ` Andre Eisenbach
2005-07-22 9:31 ` Jan Engelhardt
2005-07-22 18:36 ` Diego Calleja
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42E09DC1.90602@argo.co.il \
--to=avi@argo.co.il \
--cc=akpm@osdl.org \
--cc=bert.hubert@netherlabs.nl \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.