From: Doug Ledford <dledford@redhat.com>
To: Pete Zaitcev <zaitcev@redhat.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCH + RFC] Beginning of some updates to scsi mid layer
Date: Wed, 19 Jun 2002 14:25:54 -0400 [thread overview]
Message-ID: <20020619142554.G8854@redhat.com> (raw)
In-Reply-To: <20020619134436.A27002@devserv.devel.redhat.com>; from zaitcev@redhat.com on Wed, Jun 19, 2002 at 01:44:36PM -0400
On Wed, Jun 19, 2002 at 01:44:36PM -0400, Pete Zaitcev wrote:
> > So, when Justin Gibbs' driver allocates a queue depth of 253
> > commands on drive X, then finds out that drive X has a hard limit of 64,
> > then we aren't continuing to waste 189 commands worth of allocated kernel
> > memory that can never be effectively used.
>
> > + diff = p->dev_lun_queue_depth[tindex] -
> > + p->dev_active_cmds[tindex];
> > + p->dev_lun_queue_depth[tindex] -= diff;
>
> I think this is not enough, or backwards. We hit a situation with
> EMC when attaching hundreds of disks depleted atomic memory with
> queue request arrays before swapper had a chance to replenish it.
> I would much appreciate if the initial allocation was concervative,
> if low performing, and was adjusted upwards at slave_attach time.
This is actually from the runtime code, part of my interrupt handler. It
notices that we might get a lot of QUEUE_FULLs from a device all at the
same queue depth, and in that case it reduces the queue depth to the new
depth. So, in short, it's not backwards, it's actually taking the depth
down based upon solid feedback from the drive.
> For 2.5 I would appreciate if we made some SCSI allocations non-atomic.
> The probe time things better be GFP_KERNEL.
Noted, I'll change that soon. As long as we have at least 1 command
block, then the other allocations can be at our leisure since the change
to scsi_release_command() will attempt to allocate 1 command block per
completed command until they catch up to the intended queue depth. And,
since that isn't done from an interrupt, all make it GFP_KERNEL as well
and if we fail, then we simply wait and do the allocation later.
Allocations on the aic7xxx_old driver are a different thing. Don't pay
too much attention to them. This work I'm doing here has pointed out to
me that the tagged queue handling in the driver is totally busted in
regards to multi-lun disk devices. I would actually have to do a rather
large overhaul to get it right, and that's not on the plate until I've
got some of this other stuff out of the way.
--
Doug Ledford <dledford@redhat.com> 919-754-3700 x44233
Red Hat, Inc.
1801 Varsity Dr.
Raleigh, NC 27606
next prev parent reply other threads:[~2002-06-19 18:25 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20020619014048.B8623@redhat.com>
2002-06-19 17:44 ` [PATCH + RFC] Beginning of some updates to scsi mid layer Pete Zaitcev
2002-06-19 17:55 ` Matthew Jacob
2002-06-19 18:25 ` Doug Ledford [this message]
2002-06-28 5:41 ` Jeremy Higdon
2002-06-28 7:37 ` Doug Ledford
2002-06-28 8:25 Martin Peschke3
2002-06-28 11:22 ` Doug Ledford
-- strict thread matches above, loose matches on Subject: below --
2002-06-28 6:08 Martin Peschke3
2002-06-28 7:39 ` Doug Ledford
2002-06-29 1:19 ` Jeremy Higdon
2002-06-29 2:04 ` Matthew Jacob
2002-06-29 10:05 ` Doug Ledford
2002-06-29 10:37 ` Matthew Jacob
2002-07-01 21:02 ` Gérard Roudier
2002-07-01 19:08 ` Matthew Jacob
2002-07-01 19:15 ` Doug Ledford
2002-07-01 19:23 ` Matthew Jacob
2002-07-01 19:59 ` Doug Ledford
2002-07-01 20:17 ` Matthew Jacob
2002-07-02 11:27 ` Rogier Wolff
2002-06-29 10:10 ` Doug Ledford
2002-06-19 0:47 Doug Ledford
2002-06-19 21:15 ` Patrick Mansfield
2002-06-20 19:45 ` Doug Ledford
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=20020619142554.G8854@redhat.com \
--to=dledford@redhat.com \
--cc=linux-scsi@vger.kernel.org \
--cc=zaitcev@redhat.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