Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1207071

[PATCH 2/2] block: bump BLK_DEF_MAX_SECTORS to 2560

From Jeff Moyer <jmoyer@redhat.com>
Newsgroups linux.kernel
Subject [PATCH 2/2] block: bump BLK_DEF_MAX_SECTORS to 2560
Date 2015-08-13 21:00 +0200
Message-ID <pX5Tk-3pd-29@gated-at.bofh.it> (permalink)
References <pX5Tk-3pd-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---
 include/linux/blkdev.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 1fd459e1..dbc845f 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -1138,7 +1138,7 @@ extern int blk_verify_command(unsigned char *cmd, fmode_t has_write_perm);
 enum blk_default_limits {
 	BLK_MAX_SEGMENTS	= 128,
 	BLK_SAFE_MAX_SECTORS	= 255,
-	BLK_DEF_MAX_SECTORS	= 1024,
+	BLK_DEF_MAX_SECTORS	= 2560,
 	BLK_MAX_SEGMENT_SIZE	= 65536,
 	BLK_SEG_BOUNDARY_MASK	= 0xFFFFFFFFUL,
 };
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] block: Reinstate BLK_DEF_MAX_SECTORS Jeff Moyer <jmoyer@redhat.com> - 2015-08-13 21:00 +0200
  [PATCH 2/2] block: bump BLK_DEF_MAX_SECTORS to 2560 Jeff Moyer <jmoyer@redhat.com> - 2015-08-13 21:00 +0200
  [PATCH 1/2] Revert "block: remove artifical max_hw_sectors cap" Jeff Moyer <jmoyer@redhat.com> - 2015-08-13 21:00 +0200
    Re: [PATCH 1/2] Revert "block: remove artifical max_hw_sectors cap" Ed Cashin <ed.cashin@acm.org> - 2015-08-15 03:20 +0200
  Re: [PATCH 0/2] block: Reinstate BLK_DEF_MAX_SECTORS Jens Axboe <axboe@kernel.dk> - 2015-08-18 22:30 +0200

csiph-web