Re: Playing with SATA NCQ

Jens Axboe
2005-05-28T12:12:54Z

On Sat, May 28 2005, Michael Thonke wrote:
> Jeff Garzik schrieb:
>
> > Michael Thonke wrote:
> >
> >> Hello Jens,
> >>
> >> I tried to play with your patch on ICH6R and ICH7R chipset also on
> >> Sil3124R Controller
> >> with 2xSamsung HD160JJ SATAII drives. But the performance gain stay
> >> out..
> >> anything special to set to get it working? I used a vanilla-kernel
> >> 2.6.12-rc5-git2 for it.
> >
> >
> > SiI 3124 driver needs to be updated to support NCQ.
> >
> > Jeff
> >
> >
> >
> >
> Hello Jeff,
>
> thanks for the info, and whats about Intel ICH6R and ICH7R anything
> special there?
> I played a bit with the patch and tried to tune it a bit. But there is
> no Documentation
> for AHCI in kernel.with parameter I can handover or can be changed.
> Maybe I've missed them?
> If so can you please refer me to one?

There's really nothing to be tuned. If NCQ is enabled for your drive, it
will be printed in dmesg after the lba48 flag, such as:

ata1: dev 0 ATA, max UDMA/133, 488281250 sectors lba48 ncq

If you don't see NCQ there, your drive/controller doesn't support it.
Likewise you will have a queueing depth of > 1 if NCQ is enabled, check
/sys/block/sdX/device/queue_depth to see what the configured queueing
depth is for that device.

--
Jens Axboe