Bug 15567 - SCSI Generic queueing appears unfair between processes
Summary: SCSI Generic queueing appears unfair between processes
Status: RESOLVED OBSOLETE
Alias: None
Product: IO/Storage
Classification: Unclassified
Component: SCSI (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: linux-scsi@vger.kernel.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-17 22:54 UTC by Mike Hayward
Modified: 2013-12-10 18:15 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.18-2.6.32
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Mike Hayward 2010-03-17 22:54:47 UTC
My timing indicates there appears to be no fair queueing mechanism for
scsi commands issued from multiple processes to separate devices over
a shared bus (e.g. SCSI or USB).  For example, an io can easily be
starved in queue for more than half a minute with just four processes
issuing 16 slow ios to usb flash devices at a time.  If I hold back
ios in my application and reduce the number of ios queued in the
kernel at a time to 2 per process it decreases average and maximum end
to end latency to more tolerable levels.

Much like memory, cpu or network hogging, unfair storage command
queueing between processes would be considered by most people to be a
performance related defect.  Shared use, particularly of a congested
bus, calls for time or bandwidth slicing to prevent starvation.

The SCSI Generic HOWTO doesn't go into it, but is this the current
kernel design?  If so, perhaps libaio would be a more viable solution
to concurrent io?

Note You need to log in before you can comment on or make changes to this bug.