* Reducing I/O latency
@ 2012-05-17 16:39 Bart Van Assche
0 siblings, 0 replies; only message in thread
From: Bart Van Assche @ 2012-05-17 16:39 UTC (permalink / raw)
To: linux-scsi
Hello,
Recently I have been looking for opportunities to reduce command
processing latency in the Linux SCSI initiator stack. I've noticed the
following:
- In drivers/scsi/scsi.c memory for the SCSI command and the SCSI sense
data are allocated separately. Would it be a good idea to combine
scsi_host_cmd_pool.cmd_slab and scsi_host_cmd_pool.sense_slab into a
single kmem_cache or would this break something ?
- While running an I/O workload that was using eight LUNs (two hosts
with four LUNs each) I noticed huge lock contention on the spinlock in
scsi_host_cmd_pool.cmd_slab. Has anyone already tried to modify the
code in drivers/scsi/scsi.c such that there is one pool per LUN
instead of one pool for all LUNs of all hosts ? Note: the
scsi_sg_pools array in drivers/scsi/scsi_lib.c is also shared over
all LUNs.
Thanks,
Bart.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-05-17 16:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-17 16:39 Reducing I/O latency Bart Van Assche
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).