Whamcloud - gitweb
LU-5505 clio: revise read ahead algorithm 28/11528/7
authorJinshan Xiong <jinshan.xiong@intel.com>
Tue, 13 Jan 2015 18:59:42 +0000 (10:59 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 14 Mar 2016 02:39:39 +0000 (02:39 +0000)
commit4548ec5512ac67a6fa5788fb418b5d98e7370c7d
tree61c1566ac8068c6370f37232e3c46c7bb2a8eb38
parentdd48eb801321ab87c89dfbe3dd89fa487cf874b8
LU-5505 clio: revise read ahead algorithm

ras_window_len should only be updated in ras_update() by read
pattern and it can't be adjusted in ll_readahead() at all;
ras_consecutive_pages is used to detect read pattern from
mmap. It will be used to increase read ahead window length
gradually.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I78b41646ccd8d9d1c810196a8cbcf58adbcb9319
Reviewed-on: http://review.whamcloud.com/11528
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/llite_internal.h
lustre/llite/rw.c
lustre/tests/sanity.sh