You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge: mm: Remember a/d bits for migration entries
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/2294
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2168392
Testing: KT1-lite + MM regressions as reported on the BZ ticket
This work brings in upstream homonymous series [1] alongside
its missing dependencies and required follow-ups to address
the feature request expressed in Bug 2168392.
This is a micro-optimization for the page migration path,
which would unconditionally mark migrated pages as old &
clean. This changeset teaches the migration code to remember
these PTE bits from the old PTE and properly reset them after
migrating the page over. For the generic use case, the bit
loosing in the new PTE isn't really much of a problem, but
there's measurable performance costs. For specific use cases
(DEVICE MEMORY migrations comes to mind) this might represent
potential problems, though, so we're bringing in the changeset
for correctness and performance.
[1] https://lore.kernel.org/all/20220811161331.37055-6-peterx@redhat.com/T/#me0e2db4c09f9a615cc7f7e21df37ce184f48571d
Omitted-fix: bf2f34a ("LoongArch: Set _PAGE_DIRTY only if _PAGE_WRITE is set in {pmd,pte}_mkdirty()")
Rafael Aquini (13):
include/linux/swapops.h: remove stub for non_swap_entry()
mm/swapops: make is_pmd_migration_entry more strict
mm/x86: use SWP_TYPE_BITS in 3-level swap macros
mm/swap: comment all the ifdef in swapops.h
mm/swap: add swp_offset_pfn() to fetch PFN from swap entry
mm/thp: carry over dirty bit when thp splits on pmd
mm: remember young/dirty bit for page migrations
mm/swap: cache maximum swapfile size when init swap
mm/swap: cache swap migration A/D bits support
mm/swap: fix SWP_PFN_BITS with CONFIG_PHYS_ADDR_T_64BIT on 32bit
Partly revert "mm/thp: carry over dirty bit when thp splits on pmd"
mm/thp: re-apply mkdirty for small pages after split
mm/migrate: fix wrongly apply write bit after mkdirty on sparc64
Signed-off-by: Rafael Aquini <aquini@redhat.com>
Approved-by: Nico Pache <npache@redhat.com>
Approved-by: Waiman Long <longman@redhat.com>
Approved-by: Donald Dutile <ddutile@redhat.com>
Approved-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Jan Stancek <jstancek@redhat.com>
0 commit comments