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

2020-06-29 Thread Peter Xu
On Sun, Jun 28, 2020 at 06:52:24PM -0700, John Hubbard wrote: > The above file is renamed, as of a couple weeks ago, via > commit ad8694bac410 ("iommu/amd: Move AMD IOMMU driver into > subdirectory"). > > Also there are a number of changes to mm/gup.c (not a concern for this > patch, but it is

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

2020-06-28 Thread John Hubbard
On 2020-06-26 15:31, Peter Xu wrote: 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

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

2020-06-26 Thread Peter Xu
On Fri, Jun 26, 2020 at 05:53:46PM -0400, Peter Xu wrote: > Since this patch seems to be the only one that needs a new post so far, I'll > repost this patch only by replying to itself with v2.1. Hopefully that can > avoid some unecessary mail bombs. Unluckily patch 25 will need a trivial

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

2020-06-26 Thread Peter Xu
On Fri, Jun 26, 2020 at 09:54:24PM +0200, Gerald Schaefer wrote: > On Wed, 24 Jun 2020 16:34:12 -0400 > Peter Xu wrote: > > > On Wed, Jun 24, 2020 at 08:49:03PM +0200, Gerald Schaefer wrote: > > > On Fri, 19 Jun 2020 12:05:13 -0400 > > > Peter Xu wrote: > > > > > > [...] > > > > > > > @@

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

2020-06-26 Thread Gerald Schaefer
On Wed, 24 Jun 2020 16:34:12 -0400 Peter Xu wrote: > On Wed, Jun 24, 2020 at 08:49:03PM +0200, Gerald Schaefer wrote: > > On Fri, 19 Jun 2020 12:05:13 -0400 > > Peter Xu wrote: > > > > [...] > > > > > @@ -4393,6 +4425,38 @@ vm_fault_t handle_mm_fault(struct vm_area_struct > > > *vma,

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

2020-06-24 Thread Peter Xu
On Wed, Jun 24, 2020 at 08:49:03PM +0200, Gerald Schaefer wrote: > On Fri, 19 Jun 2020 12:05:13 -0400 > Peter Xu wrote: > > [...] > > > @@ -4393,6 +4425,38 @@ vm_fault_t handle_mm_fault(struct vm_area_struct > > *vma, unsigned long address, > >

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

2020-06-24 Thread Gerald Schaefer
On Fri, 19 Jun 2020 12:05:13 -0400 Peter Xu wrote: [...] > @@ -4393,6 +4425,38 @@ vm_fault_t handle_mm_fault(struct vm_area_struct *vma, > unsigned long address, > mem_cgroup_oom_synchronize(false); > } > > + if (ret & VM_FAULT_RETRY) > + return