From: Robert Love <rml@tech9.net>
To: psusi@cfl.rr.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: New SCSI subsystem in 2.4, and scsi idle patch
Date: 09 Sep 2001 18:53:34 -0400 [thread overview]
Message-ID: <1000076015.18039.1.camel@phantasy> (raw)
On Sun, 2001-09-09 at 14:21, Phillip Susi wrote:
> P.S. I'd like to use a user mode daemon to detect disk idle, and issue the
> existing ioctl code to spin the disk down, and rely on the kernel to spin it
> back up as needed. Isn't there somewhere in /proc that keeps IO counters on
> the disk I can monitor? Also, is there a way I could ask the kernel to not
> flush dirty pages to disk unless it gets a whole lot of them so the disk
> won't be spun up all the time just to write a few KB?
You can change the behavior of how dirty pages are flushed using
/proc/bdflush.
[18:41:55]rml@phantasy:/proc/sys/vm# cat bdflush
30 64 64 256 500 3000 60 0 0
Of these 9 parameters, you probably care about the first and sixth. The
first is percent of buffer full before bdflush kicks in and starts
flushing. Setting this to 60% is fine, and will work towards your aim.
Note that, Documentation/sysctl/vm.txt is outdated (I will send a patch
off...) this is the correct values of the fields on bdflush:
union bdflush_param {
struct {
int nfract; /* Percentage of buffer cache dirty to
activate bdflush */
int dummy1; /* old "ndirty" */
int dummy2; /* old "nrefill" */
int dummy3; /* unused */
int interval; /* jiffies delay between kupdate flushes */
int age_buffer; /* Time for normal buffer to age before we flush it */
int nfract_sync;/* Percentage of buffer cache dirty to
activate bdflush synchronously */
int dummy4; /* unused */
int dummy5; /* unused */
} b_un;
unsigned int data[N_PARAM];
} bdf_prm = {{30, 64, 64, 256, 5*HZ, 30*HZ, 60, 0, 0}};
Finally, I like your idea. I have an all SCSI system and would like my
disks to spin down. Good luck.
--
Robert M. Love
rml at ufl.edu
rml at tech9.net
next reply other threads:[~2001-09-09 22:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-09 22:53 Robert Love [this message]
2001-09-10 9:44 ` New SCSI subsystem in 2.4, and scsi idle patch Frank Schneider
-- strict thread matches above, loose matches on Subject: below --
2001-09-09 18:21 Phillip Susi
2001-09-10 11:25 ` Alistair Riddell
2001-09-10 14:10 ` Mark Hahn
2001-09-10 16:33 ` idalton
2001-09-10 20:34 ` Daniel Kobras
2001-09-10 21:03 ` Daniel Kobras
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=1000076015.18039.1.camel@phantasy \
--to=rml@tech9.net \
--cc=linux-kernel@vger.kernel.org \
--cc=psusi@cfl.rr.com \
/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