mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jamie Lokier <lk@tantalophile.demon.co.uk>
To: Pavel Machek <pavel@suse.cz>
Cc: linux-kernel@vger.kernel.org
Subject: Re: faster boots?
Date: Fri, 12 Apr 2002 11:44:22 +0100	[thread overview]
Message-ID: <20020412114422.A24021@kushida.apsleyroad.org> (raw)
In-Reply-To: <200204080048.g380mt514749@lmail.actcom.co.il> <200204080057.g380vbO00868@vindaloo.ras.ucalgary.ca> <3CB0EF0B.14D48619@zip.com.au> <20020408095717.GB27999@atrey.karlin.mff.cuni.cz> <20020408174333.A28116@kushida.apsleyroad.org> <20020408124803.A14935@redhat.com> <20020409015657.A28889@kushida.apsleyroad.org> <20020409222214.GK5148@atrey.karlin.mff.cuni.cz>

Pavel Machek wrote:
> > > > I've had no luck at all with noflushd on my Toshiba Satellite 4070CDT.
> > > > It would spin down every few minutes, and then spin up _immediately_,
> > > > every time.  I have no idea why.
> > > 
> > > Were you using the console?  Any activity on ttys causes device inode 
> > > atime/mtime updates which trigger disk spin ups.  The easiest way to 
> > > work around this is to run X while using devpts for the ptys.
> > 
> > I was using X, nodiratime on all /dev/hda mounts.  My friend who has the
> > small VAIO with a Crusoe chip also reports the same problem: noflushd
> > doesn't work with 2.4 kernels (versions that we tried), and the problem
> > is the same: it spins down and then spins up immediately afterward.
> 
> It works for me, 2.4.18 on HP omnibook xe3.
> 
> You may want to watch /proc/stats to see if it is read or write
> activity that wakes disk up.

It's write activity, due to atime updates.  I was using nodiratime, but
that's not good enough because every time an executable is run a load of
things are accessed.

I found it interesting that some write activity happens almost
immediately after the access -- and noflushd is connected in some way.
If I do this:

    while :; do cat /proc/stat; sleep 1; done

Then I see a few writes have occurred at nearly every iteration.  I
think that is due to the atime updates, because using "noatime" there
are no writes at most iterations.

But more interesting: I only see those few-per-second atime writes while
noflushd is running.  If I kill noflushd then they go away.

So, noflushd triggers some kind of regular write activity.  Either
killing noflushd, or mounting with "noatime", makes it go away.

I don't like "noatime" because some programs monitor
/var/spool/mail/jamie's atime to decide if there is any new mail.  But I
am using it now anyway.

With "noatime", I find the disk is able to spin down for 20 seconds.  A
record :-)  But not a very useful one.

When the disk spins up, I see both read and write activity at the same
time.  Of course I have no idea what files are triggering the spin up.
(And atime is switched off so I can't use that as a guide!)

I am a bit surprised that "noatime" makes a difference -- I thought that
if noflushd spun down a disk, then pending inode writes should be
delayed until a read or excess memory pressure forces a spin up.

So: "noatime" is definitely required, to spin the disk down for more
than an instant.  But even that is not good enough.  I have 192MB RAM,
btw.  Is that enough to expect longer spin down times than 20s?

-- Jamie

  reply	other threads:[~2002-04-12 10:44 UTC|newest]

Thread overview: 77+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-04 23:54 joeja
2002-04-05  0:21 ` Alan Cox
2002-04-05  1:00   ` Jeremy Jackson
2002-04-05  0:26 ` Andrew Morton
2002-04-05  2:18   ` Richard Gooch
2002-04-05  2:51     ` Andrew Morton
2002-04-05  3:00       ` Benjamin LaHaise
2002-04-05  3:21         ` Alan Cox
2002-04-05  5:38           ` Richard Gooch
2002-04-05 12:49             ` Alan Cox
2002-04-05 16:33               ` Richard Gooch
2002-04-05 23:02               ` Itai Nahshon
2002-04-05 23:07                 ` Benjamin LaHaise
2002-04-06  0:07                   ` Itai Nahshon
2002-04-06  0:29                     ` Benjamin LaHaise
2002-04-07 14:42                     ` Pavel Machek
2002-04-08  0:48                       ` Itai Nahshon
2002-04-08  0:57                         ` Richard Gooch
2002-04-08  1:14                           ` Andrew Morton
2002-04-08  4:17                             ` Andre Hedrick
2002-04-08  9:57                             ` Pavel Machek
2002-04-08 16:43                               ` Jamie Lokier
2002-04-08 16:48                                 ` Benjamin LaHaise
2002-04-08 21:09                                   ` Pavel Machek
2002-04-09  0:56                                   ` Jamie Lokier
2002-04-09 22:22                                     ` Pavel Machek
2002-04-12 10:44                                       ` Jamie Lokier [this message]
2002-04-12 11:42                                         ` Pavel Machek
2002-04-12 14:29                                           ` Jamie Lokier
2002-04-14 19:40                                             ` Pavel Machek
2002-04-15 13:34                                             ` Philipp Matthias Hahn
2002-04-08 17:08                             ` Mark Mielke
2002-04-08 17:49                               ` Rene Rebe
2002-04-08 18:02                                 ` G . Sumner Hayes
2002-04-08  6:02                           ` Oliver Neukum
2002-04-08 17:06                             ` Richard Gooch
2002-04-08 16:13                               ` Martin Dalecki
2002-04-08 15:16                           ` Bill Davidsen
2002-04-08 17:32                             ` Richard Gooch
2002-04-08 18:31                               ` Bill Davidsen
2002-04-08 18:40                                 ` David Lang
2002-04-08 18:56                                   ` Richard B. Johnson
2002-04-08 19:06                                     ` David Lang
2002-04-08 19:27                                       ` Richard B. Johnson
2002-04-08  8:03                         ` Helge Hafting
2002-04-08 12:38                           ` Rogier Wolff
2002-04-08 14:41                           ` Bill Davidsen
2002-04-08  9:55                         ` Pavel Machek
2002-04-08 12:15                         ` Rogier Wolff
2002-04-08 12:09                     ` Rogier Wolff
2002-04-05  6:14           ` Eric W. Biederman
2002-04-05 12:45             ` Alan Cox
2002-04-05 13:04         ` Bill Davidsen
2002-04-05 21:33           ` Benjamin LaHaise
2002-04-05  5:26       ` Richard Gooch
2002-04-05  7:45   ` dean gaudet
2002-04-05 18:43     ` Jeremy Jackson
2002-04-05  0:44 ` Piotr Esden-Tempski
2002-04-05 13:37   ` Mauricio Nuñez
2002-04-05  1:11 ` Ross Vandegrift
2002-04-05  1:55 ` Bernd Eckenfels
2002-04-05 12:56 ` Bill Davidsen
2002-04-10  1:20   ` Mike Touloumtzis
2002-04-05 19:08 ` Mark H. Wood
2002-04-05  2:10 joeja
2002-04-05  7:44 ` Helge Hafting
2002-04-05 12:13   ` Thomas 'Dent' Mirlacher
2002-04-05 15:14   ` Luigi Genoni
2002-04-05  8:00 willy tarreau
2002-04-05 13:06 ` Bill Davidsen
2002-04-05 13:21   ` willy tarreau
2002-04-05 15:29     ` Bill Davidsen
2002-04-05 16:20       ` willy tarreau
2002-04-05 23:10     ` Itai Nahshon
     [not found] <3CACEF18.CE742314@zip.com.au.suse.lists.linux.kernel>
     [not found] ` <Pine.LNX.4.33.0204042330270.10358-100000@twinlark.arctic.org.suse.lists.linux.kernel>
2002-04-05  8:41   ` Andi Kleen
2002-04-05 18:23 Torrey Hoffman
2002-04-06 17:53 Re: " Alan Cox
2002-04-06 19:01 ` Joe
     [not found] <Pine.LNX.4.33.0204051403200.7124-100000@mhw.ULib.IUPUI.Edu >
2002-04-07 20:10 ` Stevie O

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=20020412114422.A24021@kushida.apsleyroad.org \
    --to=lk@tantalophile.demon.co.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@suse.cz \
    /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

all inboxes | Powered by JetHome®