RFC mm: continue using per-VMA lock when retrying page faults after I/O
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest2 patches 14 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | mm/filemap: Retry fault by VMA lock if the lock was released for I/Oarch/ arch/ arch/ +6 more | +39 | 3 replies | |
| 2/2 | mm/swapin: Retry swapin by VMA lock if the lock was released for I/Omm/ | +8 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Pedro Falcato | Wang Lian | Kunwu Chan |
|---|---|---|---|
| Series | T-b R-b | T-b R-b | |
| 1/2 | A-b | ||
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [RFC PATCH 0/2] mm: continue using per-VMA lock when retrying page faults after I/O
From: Barry Song <[email protected]>
Oven observed most mmap_lock contention and priority inversion come from page fault retries after waiting for I/O completion. Oven subsequently raised the following idea:
There is no need to always fall back to mmap_lock if the per-VMA lock was released only to wait for pagecache or swapcache to become ready.
In this case, the retry path can continue using the per-VMA lock. This is a big win: it greatly reduces mmap_lock acquisitions.
Oven Liyang (1):
mm/filemap: Retry fault by VMA lock if the lock was released for I/O
Barry Song (1):
mm/swapin: Retry swapin by VMA lock if the lock was released for I/O
arch/arm/mm/fault.c | 5 +++++ arch/arm64/mm/fault.c | 5 +++++ arch/loongarch/mm/fault.c | 4 ++++ arch/powerpc/mm/fault.c | 5 ++++- arch/riscv/mm/fault.c | 4 ++++ arch/s390/mm/fault.c | 4 ++++ arch/x86/mm/fault.c | 4 ++++ include/linux/mm_types.h | 9 +++++---- mm/filemap.c | 5 ++++- mm/memory.c | 10 ++++++++-- 10 files changed, 47 insertions(+), 8 deletions(-)
Signature · 1 line
2.39.3 (Apple Git-146)