[LU-8276] Make lru clear always discard read lock pages Created: 14/Jun/16 Updated: 24/Oct/17 Resolved: 28/Aug/17 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.11.0, Lustre 2.10.2 |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Patrick Farrell (Inactive) | Assignee: | Patrick Farrell (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | patch | ||
| Issue Links: |
|
||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
A significant amount of time is sometimes spent during (Time is spent specifically in ldlm_lock_match, trying to So, in the case of echo clear > lru_size, we should not We do this by using the LDLM_FL_DISCARD_DATA flag, which is We set this flag on all the PR locks which are slated for The case where another lock does cover those pages (and is 1. When discarding pages, we wait (discard_cb->cl_page_own) 2. Removal of pages under a read lock is something that can This has a performance cost for that reader, but if anyone In the case of many read locks on a single resource, this |
| Comments |
| Comment by Gerrit Updater [ 14/Jun/16 ] |
|
Patrick Farrell (paf@cray.com) uploaded a new patch: http://review.whamcloud.com/20785 |
| Comment by Gerrit Updater [ 28/Aug/17 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/20785/ |
| Comment by Peter Jones [ 28/Aug/17 ] |
|
Landed for 2.11 |
| Comment by Gerrit Updater [ 29/Sep/17 ] |
|
Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/29264 |
| Comment by Patrick Farrell (Inactive) [ 29/Sep/17 ] |
|
Minh, I'm curious why this one was targeted for stable? It's a performance improvement rather than, say, a bug fix. Just wondering, thanks. |
| Comment by Minh Diep [ 03/Oct/17 ] |
|
paf, I believe it's a dependency for a patch on top (I don't recall the number). We'll take another look soon |
| Comment by Gerrit Updater [ 24/Oct/17 ] |
|
John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/29264/ |