From: Douglas Gilbert <dougg@torque.net>
To: Tejun Heo <htejun@gmail.com>
Cc: James.Bottomley@SteelEye.com, Jeff Garzik <jgarzik@pobox.com>,
hmh@hmh.eng.br, linux-ide@vger.kernel.org,
linux-scsi@vger.kernel.org
Subject: Re: [PATCH] sd: implement stop_on_shutdown
Date: Fri, 19 Jan 2007 18:34:13 -0500 [thread overview]
Message-ID: <45B15575.5090806@torque.net> (raw)
In-Reply-To: <20070119170122.GS10987@htj.dyndns.org>
Tejun Heo wrote:
> sd doesn't stop (unload head) on shutdown. This behavior is necessary
> for multi initiator cases. Unloading head by powering off stresses
> the drive and sometimes produces distinct clunking noise which
> apparently disturbs users considering multiple reports on different
> distributions. halt(8) usually puts the drives to sleep prior to
> shutdown but the implementation is fragile and it doesn't work with
> sleep-to-disk.
>
> This patch implements sd attribute stop_on_shutdown. If set to 1, sd
> stops the drive on non-restarting shutdown. stop_on_shutdown is
> initialized from sd parameter stop_on_shutdown_default which defaults
> to 0. So, this patch does not change the default behavior.
Tejun,
The IMMED bit in the START STOP UNIT cdb is not being set
when your patch stops a drive:
Advantage:
- the power won't be dropped immediately after sending
the command to the drive (assuming the drive gets
its power from the same power supply that shutdown
turns off)
Disadvantage:
- it will delay shutdown proportional to the number of
drives with the stop_on_shutdown attribute set. Say
5 seconds per disk.
Disadvantage (with or without IMMED bit set):
- if another initiator (e.g. on another machine) was
using a different partition on that disk, then it might
get upset (especially if it was running Linux).
[I'm not sure why you say this patch is necessary
in this case.]
BTW SCSI disks typically have a lower start-stop lifetime
rating than ATA disks. This reflects that SCSI disks are
designed to be on 168 hours per week.
Doug Gilbert
next prev parent reply other threads:[~2007-01-19 23:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-19 17:01 [PATCH] sd: implement stop_on_shutdown Tejun Heo
2007-01-19 23:34 ` Douglas Gilbert [this message]
2007-01-20 3:18 ` Tejun Heo
2007-01-21 22:47 ` Stefan Richter
2007-01-19 23:42 ` Darrick J. Wong
2007-01-20 3:22 ` Tejun Heo
2007-01-20 9:50 ` Jeff Garzik
2007-01-20 9:59 ` Tejun Heo
2007-01-20 14:39 ` James Bottomley
2007-01-20 14:39 ` James Bottomley
2007-02-05 9:43 ` Tejun Heo
2007-02-05 14:55 ` James Bottomley
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=45B15575.5090806@torque.net \
--to=dougg@torque.net \
--cc=James.Bottomley@SteelEye.com \
--cc=hmh@hmh.eng.br \
--cc=htejun@gmail.com \
--cc=jgarzik@pobox.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-scsi@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).