![]() Meanwhile converting the architectures with using generic PUD pagatableĪllocation to add corresponding pgtable_set_and_inc() or pgtable_clear_and_dec() Get more accurate pagetable accounting by /proc/kpageflags interface. Moreover this patch will also mark the PUD level pagetable with PG_tableįlag, which will help to do sanity validation in unpoison_memory() and Pages to help to get an accurate pagetable accounting. Pgtable_clear_and_dec() when allocating or freeing PUD level pagetable That means we will miss to account PUD level pagetable pages.Īdding pagetable account by calling pgtable_set_and_inc() or Pagetable pages allocation will not call pgtable_pte_page_ctor/dtor(), Which means no split pagetable lock needed. Now the PUD level ptes are always protected by mm->page_table_lock, 8:58 ` mm: Factor out the pagetable pages account into new helper function Baolin 8:58 ` Baolin Wang 8:58 Add PUD and kernel PTE level pagetable account Baolin Wang ^ raw reply related 18+ messages in thread Static inline void pgtable_pmd_page_dtor(struct page *page) #define pte_offset_map_lock(mm, pmd, address, -2476,16 +2486,14 static inline bool pgtable_pmd_page_ctor(struct page *page) dec_lruvec_page_state(page, NR_PAGETABLE) Static inline void pgtable_pte_page_dtor(struct page *page) inc_lruvec_page_state(page, NR_PAGETABLE) ![]() Static inline bool pgtable_pte_page_ctor(struct page *page) + dec_lruvec_page_state(page, NR_PAGETABLE) +static inline void pgtable_clear_and_dec(struct page *page) ![]() + inc_lruvec_page_state(page, NR_PAGETABLE) +static inline void pgtable_set_and_inc(struct page *page) Meanwhile these helper functions also will be used toĪccount pagetable pages which do not need split pagetale lock.ġ file changed, 16 insertions(+), 8 deletions(-)ĭiff -git a/include/linux/mm.h b/include/linux/mm.h 8:58 ` mm: Add kernel PTE level pagetable pages account Baolin WangĢ siblings, 1 reply 18+ messages in threadįactor out the pagetable pages account into new helper functions to avoidĭuplicated code. 8:58 ` mm: Add PUD level pagetable account Baolin Wang 8:58 Add PUD and kernel PTE level pagetable account Baolin 8:58 ` Baolin Wang * mm: Factor out the pagetable pages account into new helper function Mm: Add kernel PTE level pagetable pages accountĪrch/loongarch/include/asm/pgalloc.h | 11 ++++++++-Īrch/mips/include/asm/pgalloc.h | 11 ++++++++. Mm: Factor out the pagetable pages account into new helper function Use _free_page() to free pagetable which can avoid duplicated virt_to_page(). Add missing pgtable_clear_and_dec() on X86 arch. ![]() Objections from mm people, then I will send to the related arch's maillist Now I only send patches to mm mailist, and if no That need to account the pagetable pages, which need more investigationĪnd cleanup in future. Note there are still some architectures specific pagetable allocation Helpers to help to account PUD and kernel PTE pagetable pages. Pages, which will get an inaccurate pagetable accounting, and miss Pagetable, as well as missing to set the PG_table flags for these pagetable Now we will miss to account the PUD level pagetable and kernel PTE level To: akpm +Cc: rppt, willy, baolin.wang, linux-mm, linux-kernel ` (2 more replies) 0 siblings, 3 replies 18+ messages in thread 8:58 ` mm: Factor out the pagetable pages account into new helper function Baolin Wang Add PUD and kernel PTE level pagetable account All of help / color / mirror / Atom feed * Add PUD and kernel PTE level pagetable account 8:58 Baolin Wang
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |