From: John Reiser <jreiser-Po6cBsTGB2ZWk0Htik3J/w@public.gmane.org>
To: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Testers wanted: dracut lazy install with cpio
Date: Tue, 28 Feb 2012 08:58:09 -0800 [thread overview]
Message-ID: <4F4D07A1.7010305@bitwagon.com> (raw)
In-Reply-To: <1330446443.1026.123.camel-1q1vX8mYZiGLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
On 02/28/2012 08:27 AM, David Dillow wrote:
> Is the purpose of this work to speed things up for the user, or for the
> developers? Your approach is correct for developers, since we're more
> likely to be making multiple dracut image with a warm cache. But users
> are more likely to hit the cold cache case.
Both users and developers. However, the cache must be controlled
(or known) for any measurement, else there is no way to attribute
the effects of any measured change: the cache effect could be much
larger than any improvement (or degredation). The easiest way
is to have a warm cache: discard the first run of a series because
of the unknown cache state.
The cold cache case can be approximated by:
# echo 1 > /proc/sys/vm/drop_caches
# time dracut ...
# echo 1 > /proc/sys/vm/drop_caches # each time!
# time dracut ...
but that path /proc/sys/vm/drop_caches is harder to remember
(and harder to get correct in a sudo!)
It is also harder to guarantee consistency on a machine that is
not otherwise idle.
Running dracut after updating kernel and/or drivers is likely
to hit a mixed cache: the updated stuff will tend to be hot,
the not-updated stuff probably will be cold.
--
next prev parent reply other threads:[~2012-02-28 16:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-27 15:50 Testers wanted: dracut lazy install with cpio Harald Hoyer
[not found] ` <4F4BA634.5070804-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-02-27 21:55 ` John Reiser
2012-02-28 12:43 ` Cong Wang
2012-02-28 15:09 ` John Reiser
[not found] ` <4F4CEE33.3000906-Po6cBsTGB2ZWk0Htik3J/w@public.gmane.org>
2012-02-28 15:29 ` Harald Hoyer
[not found] ` <4F4CF2D1.8090704-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-02-28 16:27 ` David Dillow
[not found] ` <1330446443.1026.123.camel-1q1vX8mYZiGLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
2012-02-28 16:58 ` John Reiser [this message]
[not found] ` <4F4D07A1.7010305-Po6cBsTGB2ZWk0Htik3J/w@public.gmane.org>
2012-02-28 17:46 ` David Dillow
[not found] ` <1330451168.1026.139.camel-1q1vX8mYZiGLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
2012-02-28 18:30 ` John Reiser
2012-02-28 15:14 ` Harald Hoyer
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=4F4D07A1.7010305@bitwagon.com \
--to=jreiser-po6cbstgb2zwk0htik3j/w@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox