All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pierre Beck <mail@pierre-beck.de>
To: linux-scsi@vger.kernel.org
Subject: Tunables for timeout behaviour?
Date: Mon, 23 Apr 2012 23:12:00 +0200	[thread overview]
Message-ID: <4F95C59A.7010706@pierre-beck.de> (raw)

Hi,

asking on the linux-raid list about implementing timeouts in mdraid, 
Neil Brown answered with a quite definitive "no" and said the next lower 
level should take care of timeouts. So here I am :-)

SCSI timeouts currently reset device, then bus, then host adapter. I 
currently experience bus and / or host adapter resets as several minutes 
of zero I/O on HW RAID cards. Can't speak for simple HBAs, but HW RAID 
cards seem to search for logical volumes on all attached disks or 
something and take ages to "reset" even in JBOD mode.

In other words, a bad sector may escalate to unnecessary long 
unavailability of a whole array of disks, despite mdraid in place. Yes, 
drives with TLER / SCTERC management should not spend much time on bad 
sectors, but not every drive supports that and a *failing* drive with 
crashed firmware won't be cooperative anyways.

So is there any way to influence this behaviour? I think the mdraid 
layer could profit alot from stopping retries at the device level. 
mdraid can simply fail the device and keep working. Neil mentioned 
"FAILFAST" flags that can be added to requests issued by mdraid, but 
reading a few patches I suspect these are meant for multipath only 
(there's zero documentation on FAILFAST?).

What I'd wish for was a tunable that goes along with 
/sys/bus/scsi/devices/.../timeout to limit escalation to a specific 
level and / or some way for mdraid to flag requests.

Greetings,

Pierre Beck


                 reply	other threads:[~2012-04-23 21:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4F95C59A.7010706@pierre-beck.de \
    --to=mail@pierre-beck.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.