History

scsi: storvsc: Reduce default ring buffer size to 128 Kbytes

Reduce the default VMbus channel ring buffer size for storvsc SCSI devices from 1 Mbyte to 128 Kbytes. Measurements show that ring buffer sizes above 128 Kbytes do not increase performance even at very high IOPS rates, so don't waste the memory. Also remove the dependence on PAGE_SIZE, since the ring buffer size should not change on architectures where PAGE_SIZE is not 4 Kbytes.

Michael Kelley committed 7 years ago

Commit ed2e63a1 parent 382e06d1 file · +1 −1Browse files

Unified · Split

drivers/scsi/storvsc_drv.c+1−1
@@ -385,7 +385,7 @@ enum storvsc_request_type { · 384 unmodified lines
385 * This is the end of Protocol specific defines.385 * This is the end of Protocol specific defines.
386 */386 */
387 387
388static int storvsc_ringbuffer_size = (256 * PAGE_SIZE);388static int storvsc_ringbuffer_size = (128 * 1024);
389static u32 max_outstanding_req_per_channel;389static u32 max_outstanding_req_per_channel;
390 390
391static int storvsc_vcpus_per_sub_channel = 4;391static int storvsc_vcpus_per_sub_channel = 4;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t