mm-thp-count-thp_fault_fallback-anytime-thp-fault-fails.patch removed from -mm tree
Subsystems (2)
[email protected]
maintainerSubject: [merged] mm-thp-count-thp_fault_fallback-anytime-thp-fault-fails.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 13 Sep 2013 13:03:04 -0700
The patch titled
Subject: mm, thp: count thp_fault_fallback anytime thp fault fails
has been removed from the -mm tree. Its filename was
mm-thp-count-thp_fault_fallback-anytime-thp-fault-fails.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: David Rientjes <[email protected]>
Subject: mm, thp: count thp_fault_fallback anytime thp fault fails
Currently, thp_fault_fallback in vmstat only gets incremented if a hugepage allocation fails. If current's memcg hits its limit or the page fault handler returns an error, it is incorrectly accounted as a successful thp_fault_alloc.
Count thp_fault_fallback anytime the page fault handler falls back to using regular pages and only count thp_fault_alloc when a hugepage has actually been faulted.
---
mm/huge_memory.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
mm/huge_memory.c renamed from mm/huge_memory.c~mm-thp-count-thp_fault_fallback-anytime-thp-fault-fails +7 -3
@@ -820,17 +820,19 @@ int do_huge_pmd_anonymous_page(struct mmcount_vm_event (THP_FAULT_FALLBACK );return VM_FAULT_FALLBACK ; } -count_vm_event (THP_FAULT_ALLOC );if (unlikely (mem_cgroup_newpage_charge (page, mm,GFP_KERNEL ))) {put_page (page); +count_vm_event (THP_FAULT_FALLBACK );return VM_FAULT_FALLBACK ; }if (unlikely (__do_huge_pmd_anonymous_page (mm, vma, haddr, pmd, page))) {mem_cgroup_uncharge_page (page);put_page (page); +count_vm_event (THP_FAULT_FALLBACK );return VM_FAULT_FALLBACK ; } +count_vm_event (THP_FAULT_ALLOC );return 0 ; }
@@ -1143,7 +1145,6 @@ alloc: new_page =NULL ;if (unlikely (!new_page)) { -count_vm_event (THP_FAULT_FALLBACK );if (is_huge_zero_pmd (orig_pmd)) { ret =do_huge_pmd_wp_zero_page_fallback (mm, vma, address, pmd, orig_pmd, haddr);
@@ -1154,9 +1155,9 @@ alloc:split_huge_page (page);put_page (page); } +count_vm_event (THP_FAULT_FALLBACK ); goto out; } -count_vm_event (THP_FAULT_ALLOC );if (unlikely (mem_cgroup_newpage_charge (new_page, mm,GFP_KERNEL ))) {put_page (new_page);
@@ -1164,10 +1165,13 @@ alloc:split_huge_page (page);put_page (page); } +count_vm_event (THP_FAULT_FALLBACK ); ret |=VM_FAULT_OOM ; goto out; } +count_vm_event (THP_FAULT_ALLOC ); +if (is_huge_zero_pmd (orig_pmd))clear_huge_page (new_page, haddr,HPAGE_PMD_NR );else
_
Patches currently in -mm which might be from [email protected] are
origin.patch