From: Jinshan Xiong Date: Fri, 12 Aug 2016 04:20:44 +0000 (-0700) Subject: LU-4865 zfs: grow block size by write pattern X-Git-Tag: 2.8.57~2 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=b738c4850935f3a9c483b3141cb37d6539557615;hp=b738c4850935f3a9c483b3141cb37d6539557615;ds=sidebyside LU-4865 zfs: grow block size by write pattern This patch grows the block size by write RPC. The osd-zfs blocksize used to be fixed at 128KB, which is too big for random write and too small for seqential write. This patch decides the block size by the first few RPCs. If the first few RPCs are sequential, mostly it will pick maximum block size for the object; otherwise, a feasible block size will be picked by the RPC size. Signed-off-by: Jinshan Xiong Change-Id: I66f7cbdc2b5e0365058b152b4865b00cdabb0cf3 Reviewed-on: http://review.whamcloud.com/18441 Tested-by: Jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Don Brady ---