Skip to content

Commit d2be537

Browse files
JeffMoyeraxboe
authored andcommitted
block: bump BLK_DEF_MAX_SECTORS to 2560
A value of 2560 (1280k) will accommodate a 10-data-disk stripe write with chunk size 128k. In the testing I've done using iozone, fio, and aio-stress across a number of different storage devices, a value of 1280 does not show a big performance difference from 512, but will hopefully help software RAID setups using SATA disks, as reported by Christoph. NOTE: drivers/block/aoe/aoeblk.c sets its own max_hw_sectors_kb to BLK_DEF_MAX_SECTORS. So, this patch essentially changes aeoblk to Use a larger maximum sector size, and I did not test this. Signed-off-by: Jeff Moyer <jmoyer@redhat.com> Signed-off-by: Jens Axboe <axboe@fb.com>
1 parent 30e2bc0 commit d2be537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/blkdev.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ extern int blk_verify_command(unsigned char *cmd, fmode_t has_write_perm);
11321132
enum blk_default_limits {
11331133
BLK_MAX_SEGMENTS = 128,
11341134
BLK_SAFE_MAX_SECTORS = 255,
1135-
BLK_DEF_MAX_SECTORS = 1024,
1135+
BLK_DEF_MAX_SECTORS = 2560,
11361136
BLK_MAX_SEGMENT_SIZE = 65536,
11371137
BLK_SEG_BOUNDARY_MASK = 0xFFFFFFFFUL,
11381138
};

0 commit comments

Comments
 (0)