Re: [linux-next:master] [mm] 1111d46b5c: stress-ng.pthread.ops_per_sec -84.3% regression

Oliver Sang
2024-01-04T08:40:20Z

hi, Fengwei, hi, Yang Shi,

On Thu, Jan 04, 2024 at 04:18:00PM +0800, Yin Fengwei wrote:
>
> On 2024/1/4 09:32, Yang Shi wrote:

...

> > Can you please help test the below patch?
> I can't access the testing box now. Oliver will help to test your patch.
>

since now the commit-id of
'mm: align larger anonymous mappings on THP boundaries'
in linux-next/master is efa7df3e3bb5d
I applied the patch like below:

* d8d7b1dae6f03 fix for 'mm: align larger anonymous mappings on THP boundaries' from Yang Shi
* efa7df3e3bb5d mm: align larger anonymous mappings on THP boundaries
* 1803d0c5ee1a3 mailmap: add an old address for Naoya Horiguchi

our auto-bisect captured new efa7df3e3b as fbc for quite a number of regression
so far, I will test d8d7b1dae6f03 for all these tests. Thanks

commit d8d7b1dae6f0311d528b289cda7b317520f9a984
Author: 0day robot <lkp@intel.com>
Date: Thu Jan 4 12:51:10 2024 +0800

fix for 'mm: align larger anonymous mappings on THP boundaries' from Yang Shi

diff --git a/include/linux/mman.h b/include/linux/mman.h
index 40d94411d4920..91197bd387730 100644
--- a/include/linux/mman.h
+++ b/include/linux/mman.h
@@ -156,6 +156,7 @@ calc_vm_flag_bits(unsigned long flags)
return _calc_vm_trans(flags, MAP_GROWSDOWN, VM_GROWSDOWN ) |
_calc_vm_trans(flags, MAP_LOCKED, VM_LOCKED ) |
_calc_vm_trans(flags, MAP_SYNC, VM_SYNC ) |
+ _calc_vm_trans(flags, MAP_STACK, VM_NOHUGEPAGE) |
arch_calc_vm_flag_bits(flags);
}

>
> Regards
> Yin, Fengwei
>
> >
> > diff --git a/include/linux/mman.h b/include/linux/mman.h
> > index 40d94411d492..dc7048824be8 100644
> > --- a/include/linux/mman.h
> > +++ b/include/linux/mman.h
> > @@ -156,6 +156,7 @@ calc_vm_flag_bits(unsigned long flags)
> > return _calc_vm_trans(flags, MAP_GROWSDOWN, VM_GROWSDOWN ) |
> > _calc_vm_trans(flags, MAP_LOCKED, VM_LOCKED ) |
> > _calc_vm_trans(flags, MAP_SYNC, VM_SYNC ) |
> > + _calc_vm_trans(flags, MAP_STACK, VM_NOHUGEPAGE) |
> > arch_calc_vm_flag_bits(flags);
> > }
> >