From: Jens Axboe <axboe@suse.de>
To: Linux Kernel <linux-kernel@vger.kernel.org>
Cc: Martin Waitz <tali@admingilde.org>
Subject: Re: [PATCH] 2.4 laptop mode
Date: Thu, 15 May 2003 12:06:53 +0200 [thread overview]
Message-ID: <20030515100653.GF15261@suse.de> (raw)
In-Reply-To: <20030515085912.GV1253@admingilde.org>
On Thu, May 15 2003, Martin Waitz wrote:
> hi :)
>
> On Wed, May 14, 2003 at 11:35:04AM +0200, Jens Axboe wrote:
> > Now, this isn't the prettiest patch in the world. But it does allow me
> > to get good spin down times on my laptop hard drive. It was somewhat
> > inspired by the 2.5.early version akpm did. Basically, it adds:
>
> if you are interested in spinning down hard drives, you might want to read
> http://www4.informatik.uni-erlangen.de/Publications/pdf/Weissel-Beutel-Bellosa-OSDI-CoopIO.pdf
>
Interesting, I did not know about this paper. A lot of what my patch
does is identical to what they describe, I stop at the OS level though
and haven't (and don't really want to) extend it to applications. I
think that we can get 'pretty good' power saves without going that extra
mile.
Note that I also operate outside of the 4 ide power states described,
sleep -> standby -> idle -> active. I chose to disregard sleep, because
it requires a reset and drive program when transitioning from sleep to
idle. It's my feeling that most drives do the idle -> active transition
(and vice versa) on their own. So for me, that just leaves on
interesting operating mode (idle-active :). However, I added the
acoustic management in-between that. So when the drive is considered
'active' (ie serving requests), the amount of io will determine how fast
the seeks go by switching between the acoustic levels.
So with my patch, we are pretty close to the ECU level described in the
paper. With the laptop patch, we handle the writeout of dirty data at
appropriate times (when reads spin up the disk, etc) as well.
> they describe strategies to get maximum sleep times for drives by
> bundling accesses to hard discs.
I bundle writes with reads (slighly postponed), doing more would require
the added new syscalls.
> they even go a little bit faster and allow user space to give hints
> about when they need data.
> i only had a brief look at the sources but i guess this could be folded
> into the aio interface.
> (CoopIO as described above adds its own system calls)
Yeah, using aio would make it a lot easier and wouldn't require many
changes to the existing aio interface.
> it would be great if somethink like that could be ported to 2.5...
What's stopping you?
--
Jens Axboe
next prev parent reply other threads:[~2003-05-15 9:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-14 9:35 [PATCH] 2.4 laptop mode Jens Axboe
2003-05-15 8:59 ` Martin Waitz
2003-05-15 10:06 ` Jens Axboe [this message]
2003-05-15 12:54 ` Martin Waitz
2003-05-15 15:14 ` Jens Axboe
[not found] <20030514094011$5169@gated-at.bofh.it>
2003-06-09 7:44 ` Tim Connors
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=20030515100653.GF15261@suse.de \
--to=axboe@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=tali@admingilde.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