Google lmctfy 3.1 - Example memory.stale_page_age error

UPDATE:

It is a defect in ver0.3.0, and it is proved to be fixed in ver0.3.1.

As I assumed, that is noted here "Some kernels do not support setting stale page age, ignore in those cases."


Now let's review this error.

Command exited with error message: 5: Failed to open file "/sys/fs/cgroup/memory/memory_only/memory.stale_page_age" for hierarchy 7


After checking around the source, I found lmctfy will create a mirror directory for memory_only as memory in cgroup.

The error will appear as memory.stale_page_age which is used by CreateOnlySetup function does not exist.

It is assumed that maybe configuration for this feature is not well enabled in my kernel.


https://groups.google.com/forum/#!msg/fa.linux.kernel/ogBDV1FI2jc/hzo1UU4u_g4J

+config KSTALED 
+       depends on CGROUP_MEM_RES_CTLR 
+       bool "Per-cgroup idle page tracking" 
+       help 
+         This feature allows the kernel to report the amount of user pages 
+         in a cgroup that have not been touched in a given time. 
+         This information may be used to size the cgroups and/or for 
+         job placement within a compute cluster. 
+         See Documentation/cgroups/memory.txt for a more complete description. 
-- 

https://lkml.org/lkml/2011/9/16/366

"

+The desired idle period must first be selected on a per-cgroup basis
+by writing an integer to the memory.stale_page_age file. The integer
+is the interval we want pages to be idle for, expressed in scan cycles.
+For example to check for pages that have been idle for 5 consecutive
+scan cycles (equivalent to the idle_5_clean statistic), one would
+write 5 to the memory.stale_page_age file. The default value for the
+memory.stale_page_age file is 0, which disables the incremental idle
+page tracking feature.
" https://lkml.org/lkml/2011/9/16/366


版权声明:欢迎交流 ,转载请注明作者及出处。自由转载-非商用-非衍生-保持署名|Creative Commons BY-NC-ND 3.0

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值