zhao, forrest wrote: > Hi, Tejun > > Since your NCQ patches were pushed into #upstream, I decide to compare > the performance between with and without NCQ enabling. > > But initial test result of running iozone with O_DIRECT option turned on > didn't show the visible performance gain with NCQ. In certain cases, NCQ > even had a worse performance than without NCQ. > > So my question is in what usage case can we observe the performance gain > with NCQ? > I don't know the workload of iozone. But NCQ shines when there are many concurrent IOs in progress. A good real world example would be busy file-serving web server. It generally helps if there are multiple IO requests. If iozone is single-threaded (IO-wise), try to run multiple copies of them and compare the results. Also, you need to pay attention to IO schedule in use, IIRC as and cfq are heavily optimized for single-queued devices and might not show the best performance depending on workload. For functionality test, I usually use deadline. It's simpler and usually doesn't get in the way, which, BTW, may or may not translate into better performance. -- tejun - : send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html