From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: 3ware queue depth [was: Re: HIGHMEM4G config for 1GB RAM on desktop?] Date: Wed, 1 Sep 2004 11:09:44 +0100 Sender: linux-scsi-owner@vger.kernel.org Message-ID: <20040901110944.A10160@infradead.org> References: <200408021602.34320.swsnyder@insightbb.com> <1094030083l.3189l.2l@traveler> <1094030194l.3189l.3l@traveler> <200409010233.31643.lkml@lpbproductions.com> <1094032735l.3189l.7l@traveler> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from imladris.demon.co.uk ([193.237.130.41]:26884 "EHLO phoenix.infradead.org") by vger.kernel.org with ESMTP id S265410AbUIAKKH (ORCPT ); Wed, 1 Sep 2004 06:10:07 -0400 Content-Disposition: inline In-Reply-To: <1094032735l.3189l.7l@traveler>; from miquels@cistron.nl on Wed, Sep 01, 2004 at 09:58:55AM +0000 List-Id: linux-scsi@vger.kernel.org To: Miquel van Smoorenburg Cc: lkml@lpbproductions.com, Timothy Miller , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org On Wed, Sep 01, 2004 at 09:58:55AM +0000, Miquel van Smoorenburg wrote: > On 2004.09.01 11:33, Matt Heler wrote: > > > > I have a 3ware 7000-2 card. And I noticed the same problem. > > > > Actually what I just did now was change the max luns from 254 to 64. > > Recompiled and booted up. This seems to fix all my problems, and the speed > > seems to be quite faster then before. > > Yes, that is because the queue_depth parameter gets set from > TW_MAX_CMDS_PER_LUN by the 3w-xxxx.c driver ... > > I found the 3ware patch. The patch below makes the queue depth > an optional module parameter, makes sure that the initial > nr_requests is twice the size of the queue_depth, and > makes queue_depth writable for the 3ware driver. - the writeable queue_depth sysfs attr is fine, - the reverse_scan option is vetoed because it can't be supported when the driver will be converted to the pci_driver interface (soon) - I'm not so sure about the module parameter, what's the problem of beeing able to only change the queue depth once sysfs is mounted?