Whamcloud - gitweb
LU-12142 readahead: limit over reservation 60/42060/5
authorWang Shilong <wshilong@ddn.com>
Wed, 17 Mar 2021 09:58:00 +0000 (17:58 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 6 Apr 2021 03:01:47 +0000 (03:01 +0000)
commit1058867c004bf19774218945631a691e8210b502
tree8c93cb1ce4ed6e1f7e3203397eb0284f226f85e9
parentb4391fcdaf392a50bd1419342eca3b730c077ed2
LU-12142 readahead: limit over reservation

For performance reason, exceeding @ra_max_pages are allowed to
cover current read window, but this should be limited with RPC
size in case a large block size read issued. Trim to RPC boundary.

Otherwise, too many read ahead pages might be issued and
make client short of LRU pages.

Fixes: 777b04a093 ("LU-13386 llite: allow current readahead to exceed reservation"
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Change-Id: Icf74b5fbc75cf836fedcad5184fcdf45c7b037b4
Reviewed-on: https://review.whamcloud.com/42060
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/lproc_llite.c
lustre/llite/rw.c