Re: 2.5.46: ide-cd cdrecord (almost) success report

Patrick Mansfield (patmans@us.ibm.com)
Wed, 6 Nov 2002 15:52:35 -0800


On Wed, Nov 06, 2002 at 06:33:25PM -0500, Adam Kropelin wrote:
> On Wed, Nov 06, 2002 at 10:11:44AM -0800, Patrick Mansfield wrote:

> > What queue depth is the AIC setting?
> >
> > SCSI in 2.5.x no longer copies the request, so if you have a queue
> > depth larger than the allocated requests there might not be
> > any free requests left for the blk layer to play with.
> >
> > AIC default queue depth is 253 (with 2.5.46 queue depth can be set to 1
>
> Are you talking tcq depth here? Best as I can tell, 2.5.46 defaults to
> 16. Lowering it to 2 doesn't seem to help.

Yes, but not the IDE code (I have know idea what IDE defaults to). If you
have sg its proc interface can dump them, but AIC should default to 253,
on my system with AIC adapter (not the aic7xxx_old adapter, it looks like
it defaults to 32) I typically see:

cat /proc/scsi/sg/device_hdr /proc/scsi/sg/devices
host chan id lun type opens qdepth busy online
0 0 0 0 0 2 253 0 1
0 0 1 0 0 1 253 0 1
0 0 15 0 3 0 2 0 1

The last device does not support tcq (id 15), so it gets a depth of 2.

The AIC driver also prints the depth on init/boot like so:

scsi0:A:0:0: Tagged Queuing enabled. Depth 253

My .config has (default cmd per device):

CONFIG_SCSI_AIC7XXX=y
CONFIG_AIC7XXX_CMDS_PER_DEVICE=253
CONFIG_AIC7XXX_RESET_DELAY_MS=15000

-- Patrick Mansfield
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/