Skip to content

Commit ed2e63a

Browse files
kelleymhmartinkpetersen
authored andcommitted
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. Signed-off-by: Michael Kelley <mikelley@microsoft.com> Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 382e06d commit ed2e63a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/storvsc_drv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ enum storvsc_request_type {
385385
* This is the end of Protocol specific defines.
386386
*/
387387

388-
static int storvsc_ringbuffer_size = (256 * PAGE_SIZE);
388+
static int storvsc_ringbuffer_size = (128 * 1024);
389389
static u32 max_outstanding_req_per_channel;
390390

391391
static int storvsc_vcpus_per_sub_channel = 4;

0 commit comments

Comments
 (0)