3145e78472: vm-scalability.median -18.4% regression
Chen
Hi Alex,
One possible reason is that the struct layout changed causes the regression.
I will check the issue after the holiday ASAP.
Thanks,
Rong Chen
Quoted 67 lines · Alex Shi
Hi Rong,
Thanks a lot!
But this patch only add a unused flags which is unlikely to be effect or cause cache miss.Could you like to double this issue?
Thanks a lot!
Alexcommit
66108d0a0177aabc62a98a939a39ad23914115a3Author: Alex Shi <[email protected]> Date: Wed Sep 18 19:56:41 2019 +0800mm/lruvec: add irqsave flags into lruvec struct
We need a flags vaiable to save state when do irqsave action, declare it here would make code more clear/clean.
Originally-from: Hugh Dickins <[email protected]>
Signed-off-by Alex Shi <[email protected]>Cc Andrew Morton <[email protected]>Cc Vlastimil Babka <[email protected]>Cc Dan Williams <[email protected]>Cc Michal Hocko <[email protected]>Cc Mel Gorman <[email protected]>Cc Wei Yang <[email protected]>Cc Johannes Weiner <[email protected]>Cc Arun KS <[email protected]>Cc Tejun Heo <[email protected]>Cc Konstantin Khlebnikov <[email protected]>Cc cgroups(a)vger.kernel.orgCc linux-mm(a)kvack.orgCc linux-kernel(a)vger.kernel.orginclude/linux/mmzone.h +3
-0@@ -298,6 +298,9 @@ struct lruvec {struct list_head lists[NR_LRU_LISTS ];/* per lruvec lru_lock for memcg */ spinlock_t lru_lock; +/* flags for irqsave */ +unsigned long flags; +struct zone_reclaim_stat reclaim_stat;/* Evictions & activations on the inactive file list */ atomic_long_t inactive_age;Quoted 15 lines · kernel test robot
Greeting,
FYI, we noticed a -18.4% regression of vm-scalability.median due to commit:
commit:
3145e78472f7ad746e15180092a9a60e34e5455b("mm/lruvec: add irqsave flags into lruvec struct")
https://github.com/alexshi/linux.gitlru_lockin testcase: vm-scalability
on test machine: 104 threads Skylake with 192G memory with following parameters:runtime: 300s test: lru-file-readtwice cpufreq_governor: performance