[LU-17463] enable/disable page cache shrinker on OSC layer Created: 24/Jan/24  Updated: 26/Jan/24

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

Type: Bug Priority: Minor
Reporter: Qian Yingjin Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Those pages mapped into VM_LOCKED [mlock()ed] VMAs should be unevictable pages:
i.e. mlocked pages via mlock() or mlockall() (see the URL for details: https://www.kernel.org/doc/html/v4.19/vm/unevictable-lru.html).

However, OSC page cache shrinker treats all cached page equally even some of them are unelectable. It may evict the mlocked pages wrongly.

We should disable page cache shrinker to avoid it evicting mlocked pages.



 Comments   
Comment by Gerrit Updater [ 24/Jan/24 ]

"Qian Yingjin <qian@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/53795
Subject: LU-17463 osc: add option to disable page cache shrinker
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: c243a844e6d66fdb7aac86618c38e3e9457b8e68

Comment by Gerrit Updater [ 26/Jan/24 ]

"Qian Yingjin <qian@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/53826
Subject: LU-17463 osc: add support for unevitable mlock()ed pages
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 6c0213821095431a16ae36cddbaba7a02385cb3e

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