diff options
author | Tim Chen <tim.c.chen@linux.intel.com> | 2020-09-21 09:03:13 -0700 |
---|---|---|
committer | Huang Ying <ying.huang@intel.com> | 2021-01-13 12:59:08 +0800 |
commit | bb4b8cdad53534c4de05a272b1cba9509a7d6813 (patch) | |
tree | cf69661c613a854518c4dee5fadef0cf47776190 | |
parent | 2735216de4f4b6b845db1f3be6887267e0403a7b (diff) | |
download | tiering-0.61.tar.gz |
debug: Dump changes of toptier node statustiering-0.61tiering-0.61
-rw-r--r-- | mm/memcontrol.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index a5e8e90d87fdf6..7038630475849f 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -7163,6 +7163,8 @@ static int mem_update_toptier(void *data) to_toptier = work->to_toptier; count = 0; + printk("memcgroup update toptier node %d to_toptier %d\n", nid, to_toptier); + if (to_toptier) { if (node_state(nid, N_TOPTIER)) return 0; @@ -7183,6 +7185,7 @@ static int mem_update_toptier(void *data) count += pn->lru_zone_size[zid][lru]; } } + printk("Add/Remove %ld pages to memcg %llx toptier\n", count, (long long) memcg); if (to_toptier) atomic_long_add(count, &memcg->toptier.usage); else { @@ -7199,6 +7202,7 @@ void mem_set_toptier_status(int nid, bool to_toptier) { struct mem_node_tier_update_work work; + printk("set toptier node %d status to %d, cur node toptier:%d \n", nid, (int) to_toptier, node_state(nid, N_TOPTIER)? 1:0); if (to_toptier && node_state(nid, N_TOPTIER)) return; @@ -7207,6 +7211,7 @@ void mem_set_toptier_status(int nid, bool to_toptier) work.nid = nid; work.to_toptier = to_toptier; + printk("call stop machine node %d status to %d", nid, (int) to_toptier); stop_machine(mem_update_toptier, (void *) &work, NULL); } |