Skip to contentSkip to conversation

3145e78472: vm-scalability.median -18.4% regression

mm/lruvec Chen 1 participant 1 message Oct 2, 2019 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Chen

#1 lore raw

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!
Alex

commit 66108d0a0177aabc62a98a939a39ad23914115a3

Author: Alex Shi <[email protected]>
Date:   Wed Sep 18 19:56:41 2019 +0800

mm/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]>

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.org
Cc linux-mm(a)kvack.org
Cc linux-kernel(a)vger.kernel.org
include/linux/mmzone.h +3 -0
index 55d0152dce4d..3c5198898126 100644
@@ -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.git lru_lock

in testcase: vm-scalability
on test machine: 104 threads Skylake with 192G memory with following parameters:

	runtime: 300s
	test: lru-file-readtwice
	cpufreq_governor: performance