[LU-11296] page cache cleanup improvement on lock flush Created: 29/Aug/18  Updated: 25/Feb/20  Resolved: 04/Jan/19

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.13.0, Lustre 2.12.3

Type: Improvement Priority: Major
Reporter: Andrew Perepechko Assignee: Andrew Perepechko
Resolution: Fixed Votes: 0
Labels: patch

Issue Links:
Related
Rank (Obsolete): 9223372036854775807

 Description   

If client A writes a 100 GiB file, then client B attempts to read it, the cached PW lock on client A will be flushed together with page cache data. It can take 5-10 s just to complete that.

 

We can speed up cache invalidation a bit.



 Comments   
Comment by Gerrit Updater [ 29/Aug/18 ]

Andrew Perepechko (c17827@cray.com) uploaded a new patch: https://review.whamcloud.com/33090
Subject: LU-11296 osc: speed up page cache cleanup during blocking ASTs
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 5f898137dbf5ab502271981d4c3d2a490dd1a7c9

Comment by Andreas Dilger [ 30/Aug/18 ]

Have you looked into other kinds of speed ups (eg. new kernel APIs for managing multiple pages at once)?

Comment by Andrew Perepechko [ 30/Aug/18 ]

Have you looked into other kinds of speed ups (eg. new kernel APIs for managing multiple pages at once)?

Patrick Farrell has a patch with such an optimization. It's currently under testing.

Comment by Gerrit Updater [ 04/Jan/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33090/
Subject: LU-11296 osc: speed up page cache cleanup during blocking ASTs
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: b9ebb17277c78101018a0cf4a63f6beb93b9baf0

Comment by Peter Jones [ 04/Jan/19 ]

Landed for 2.13

Comment by Gerrit Updater [ 19/Aug/19 ]

Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/35831
Subject: LU-11296 osc: speed up page cache cleanup during blocking ASTs
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: e21e7b5558aa0bb851e41dea9a4780eb4c45d4d1

Comment by Gerrit Updater [ 04/Oct/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35831/
Subject: LU-11296 osc: speed up page cache cleanup during blocking ASTs
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: f8a55d95954a995126c5b3964400be8ca5eb8d66

Comment by Gerrit Updater [ 25/Feb/20 ]

Alex Zhuravlev (bzzz@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37722
Subject: LU-11296 ptlrpc: debugging for the assertion
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: d939c72a6c1e57f4cdaf0437afa6a98c912e132f

Generated at Sat Feb 10 02:42:38 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.