[LU-16033] refine ll_use_fast_io() for stride mode Created: 21/Jul/22  Updated: 21/Jul/22

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Zhenyu Xu Assignee: Zhenyu Xu
Resolution: Unresolved Votes: 0
Labels: None

Rank (Obsolete): 9223372036854775807

 Description   

ll_use_fast_io() calculates whether current readahead window covers next_readahead + max rpc pages, if that's the case, we can issue a readahed RPC, so we'd not do fast IO because we will need a cl_io to issue the RPC, otherwise we'd return true and do fast IO w/o issueing readahead RPC.

While for stride mode, the to-be-covered pages algorithm is

max_rpc_pages * (ras->ras_stride_length + ras->ras_stride_bytes - 1) / stride_bytes

which is not so accurate.



 Comments   
Comment by Gerrit Updater [ 21/Jul/22 ]

"Bobi Jam <bobijam@hotmail.com>" uploaded a new patch: https://review.whamcloud.com/48007
Subject: LU-16033 llite: refine ll_use_fast_io() for stride mode
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 28bd9283ad4049c17cfdbb2d887f6bf522aac6cd

Generated at Sat Feb 10 03:23:24 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.