]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Adds the ability to enable / disable sorting of BIO requests queued within
authorSteven Hartland <smh@FreeBSD.org>
Fri, 29 Mar 2013 22:58:15 +0000 (22:58 +0000)
committerSteven Hartland <smh@FreeBSD.org>
Fri, 29 Mar 2013 22:58:15 +0000 (22:58 +0000)
commit5f83aee5e585e899ce347b0eff42e64628f81df7
treebb7d2f8108f86f3417b00d4bf9c025cf6f66ae71
parentce7ad6640ca40126ffeba22f254f55afc50623e9
Adds the ability to enable / disable sorting of BIO requests queued within
CAM. This can significantly improve performance particularly for SSDs
which don't suffer from seek latencies.

The sysctl / tunable kern.cam.sort_io_queues provides the systems default
setting where:-
0 = queued BIOs are NOT sorted
1 = queued BIOs are sorted (default)

Each device gets its own sysctl kern.cam.<type>.<id>.sort_io_queue
Valid values are:-
-1 = use system default (default)
0 = queued BIOs are NOT sorted
1 = queued BIOs are sorted

Note: Additional patch will look to add automatic use of none sorted queues
for none rotating media e.g. SSD's

Reviewed by: scottl
Approved by: pjd (mentor)
MFC after: 2 weeks
sys/cam/ata/ata_da.c
sys/cam/cam.c
sys/cam/cam.h
sys/cam/scsi/scsi_da.c