[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 |