提交 27393b9b 编写于 作者: X Xu Yu 提交者: Shile Zhang

alinux: mm, memcg: export workingset counters on memcg v1

This exports the workingset counters, i.e., workingset_refault,
workingset_activate, workingset_restore, and workingset_nodereclaim, to
memory cgroup v1.

The stat collection of these counters is shared between memory cgroup v1
and v2.  What this patch does is just to export them on memory cgroup v1.
Signed-off-by: NXu Yu <xuyu@linux.alibaba.com>
Reviewed-by: NYang Shi <yang.shi@linux.alibaba.com>
Reviewed-by: NXunlei Pang <xlpang@linux.alibaba.com>
上级 350f8ab8
......@@ -1473,6 +1473,10 @@ static const unsigned int memcg1_stats[] = {
NR_FILE_DIRTY,
NR_WRITEBACK,
MEMCG_SWAP,
WORKINGSET_REFAULT,
WORKINGSET_ACTIVATE,
WORKINGSET_RESTORE,
WORKINGSET_NODERECLAIM,
};
static const char *const memcg1_stat_names[] = {
......@@ -1484,6 +1488,10 @@ static const char *const memcg1_stat_names[] = {
"dirty",
"writeback",
"swap",
"workingset_refault",
"workingset_activate",
"workingset_restore",
"workingset_nodereclaim",
};
#define K(x) ((x) << (PAGE_SHIFT-10))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册