* disable TCQ?
@ 2007-06-28 8:19 Michael Tokarev
2007-06-28 10:09 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Michael Tokarev @ 2007-06-28 8:19 UTC (permalink / raw)
To: linux-scsi
/sys/block/sdX/device/queue_depth file is read-write with
libsata, but is read-only with SCSI controllers (at least
with the ones we have -- mostly aic7xxx or mptsas).
Googling for "disable tcq" gives results about {dis,en}abling
TCQ at boot time, and also mentions ipr (which we don't have).
Is there an option to control TCQ at runtime?
I'm doing a set of (pretty interesting) tests of various
drives and their TCQ/NCQ implementations, everything's
simple on SATA front but I can't test different TCQ modes
with SCSI drives because I can't find a way control TCQ
at runtime, and since those are production machines (I
plug/unplug spare drives for testing, but have no spare
machines), I can't reboot them often.
Thanks.
/mjt
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: disable TCQ?
2007-06-28 8:19 disable TCQ? Michael Tokarev
@ 2007-06-28 10:09 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2007-06-28 10:09 UTC (permalink / raw)
To: Michael Tokarev; +Cc: linux-scsi
Michael Tokarev wrote:
> /sys/block/sdX/device/queue_depth file is read-write with
> libsata, but is read-only with SCSI controllers (at least
> with the ones we have -- mostly aic7xxx or mptsas).
>
> Googling for "disable tcq" gives results about {dis,en}abling
> TCQ at boot time, and also mentions ipr (which we don't have).
>
> Is there an option to control TCQ at runtime?
You have found the correct sysfs file -- but read/write access to it
requires the SCSI driver to implement the ->change_queue_depth() hook.
'grep -w' will show that not too many drivers have implemented this yet,
mostly the newer ones. For older drivers, poke around and see if there
is a driver-specific module option or somesuch.
Jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-06-28 10:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-28 8:19 disable TCQ? Michael Tokarev
2007-06-28 10:09 ` Jeff Garzik
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.