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.
--
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