Re: [PATCH v4 01/26] mm: Do page fault accounting in handle_mm_fault

2020-06-30 Thread Peter Xu
Hi, David, On Tue, Jun 30, 2020 at 02:05:24PM -0700, David Rientjes wrote: > On Tue, 30 Jun 2020, Peter Xu wrote: > > > @@ -4408,6 +4440,34 @@ vm_fault_t handle_mm_fault(struct vm_area_struct > > *vma, unsigned long address, > > mem_cgroup_oom_synchronize(false); > > } >

Re: [PATCH v4 01/26] mm: Do page fault accounting in handle_mm_fault

2020-06-30 Thread David Rientjes
On Tue, 30 Jun 2020, Peter Xu wrote: > @@ -4408,6 +4440,34 @@ vm_fault_t handle_mm_fault(struct vm_area_struct *vma, > unsigned long address, > mem_cgroup_oom_synchronize(false); > } > > + if (ret & (VM_FAULT_RETRY | VM_FAULT_ERROR)) > + return ret;

[PATCH v4 01/26] mm: Do page fault accounting in handle_mm_fault

2020-06-30 Thread Peter Xu
This is a preparation patch to move page fault accountings into the general code in handle_mm_fault(). This includes both the per task flt_maj/flt_min counters, and the major/minor page fault perf events. To do this, the pt_regs pointer is passed into handle_mm_fault().