htlb shared page table
Subsystems (2)
PATCH 2/2 htlb shared page table
Remove RSS accounting. Due to hugetlb PT sharing, rss accounting is no longer precise.
Signed-off-by Ken Chen <[email protected]>
mm/hugetlb.c renamed from mm/hugetlb.c.orig +0 -8
@@ -344,7 +344,6 @@ int copy_hugetlb_page_range(struct mm_st entry = *src_pte; ptepage =pte_page (entry);get_page (ptepage); -add_mm_counter (dst, file_rss,HPAGE_SIZE /PAGE_SIZE );set_huge_pte_at (dst, addr, dst_pte, entry); }spin_unlock (&src->page_table_lock);
@@ -370,10 +369,6 @@ void unmap_hugepage_range(struct vm_areaBUG_ON (end & ~HPAGE_MASK );spin_lock (&mm->page_table_lock); - -/* Update high watermark before we lower rss */ -update_hiwater_rss (mm); -for (address = start; address < end; address +=HPAGE_SIZE ) { ptep =huge_pte_offset (mm, address);if (!ptep)
@@ -388,9 +383,7 @@ void unmap_hugepage_range(struct vm_area page =pte_page (pte);put_page (page); -add_mm_counter (mm, file_rss, (int ) -(HPAGE_SIZE /PAGE_SIZE )); } -spin_unlock (&mm->page_table_lock);flush_tlb_range (vma, start, end); }
@@ -491,7 +484,6 @@ retry:if (!pte_none (*ptep)) goto backout; -add_mm_counter (mm, file_rss,HPAGE_SIZE /PAGE_SIZE ); new_pte =make_huge_pte (vma, page, ((vma->vm_flags &VM_WRITE ) && (vma->vm_flags &VM_SHARED )));set_huge_pte_at (mm, address, ptep, new_pte);
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>