Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jun 2004 10:54:20 -0500 (CDT)
From:      Chris Dillon <cdillon@wolves.k12.mo.us>
To:        Herve Boulouis <amon@sockar.homeip.net>
Cc:        freebsd-scsi@freebsd.org
Subject:   Re: how to limit SCSI TCQ depth in FreeBSD?
Message-ID:  <20040611104932.T52446@duey.wolves.k12.mo.us>
In-Reply-To: <20040611140334.C70536@ra.aabs>
References:  <40C99BED.12482.159E333F@localhost> <20040611140334.C70536@ra.aabs>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--0-245630583-1086969260=:52446
Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8BIT

On Fri, 11 Jun 2004, Herve Boulouis wrote:

> Le 11/06/2004 à 11:47, Frantisek Rysanek a écrit:
>> Dear SCSI experts and FreeBSD veterans,
>>
>> I'm looking for advice with an apparently simple SCSI issue: how do 
>> I set a maximum TCQ depth in FreeBSD?
>
> I'm no kernel guru but maybe adding an entry to the xpt_quirk_table 
> in sys/cam/cam_xpt.c for your disk would solve the problem ?

The first thing you should do is upgrade the firmware on the drive and 
see if that solves the problem.  If not, add an entry to the quirk 
table.  You can also use camcontrol to limit the maximum number of 
transactions sent to the drive concurrently.  To set the maximum queue 
depth on da0 to 32:

camcontrol tags da0 -N 32


-- 
  Chris Dillon - cdillon(at)wolves.k12.mo.us
  FreeBSD: The fastest, most open, and most stable OS on the planet
  - Available for IA32, IA64, AMD64, PC98, Alpha, and UltraSPARC architectures
  - PowerPC, ARM, MIPS, and S/390 under development
  - http://www.freebsd.org

Q: Because it reverses the logical flow of conversation.
A: Why is putting a reply at the top of the message frowned upon?

--0-245630583-1086969260=:52446--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040611104932.T52446>