]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nbd: increase default and max request sizes
authorMichal Belczyk <belczyk@bsd.krakow.pl>
Wed, 17 Apr 2013 23:49:14 +0000 (09:49 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 22 Apr 2013 08:08:31 +0000 (18:08 +1000)
commit17fc7a80d2c534d35546c03c3a8352490a1459fc
tree2a2df96f18ece434c8fbfc2ba757fb692fcd829f
parent32b81a1d0498b960c928135a5fdcebb36be80fe9
nbd: increase default and max request sizes

Raise the default max request size for nbd to 128KB (from 127KB) to get it
4KB aligned.  This patch also allows the max request size to be increased
(via /sys/block/nbd<x>/queue/max_sectors_kb) to 32MB.

The patch makes nbd network traffic more efficient by:
- reducing request fragmentation (4KB alignment)
- reducing the number of requests (fewer round trips, less network overhead)

Especially in high latency networks, larger request size can make a dramatic

Signed-off-by: Paul Clements <paul.clements@steeleye.com>
Signed-off-by: Michal Belczyk <belczyk@bsd.krakow.pl>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/block/nbd.c