lmctfy
dadaism_
这个作者很懒,什么都没留下…
展开
-
Linux 容器的建立和简单管理
原文链接:http://www.ibm.com/developerworks/cn/linux/1312_caojh_linuxlxc/index.html Linux 容器的建立和简单管理 LXC 中文名称就是 Linux 容器工具,容器可以提供轻量级的虚拟化,以便隔离进程和资源。使用 LXC 的优点就是不需要安装太多的软件包,使用过程也不会占用太多的资源, LXC 是在转载 2014-01-21 17:22:32 · 496 阅读 · 0 评论 -
Google lmctfy 2.0 - build
lmctfy depends on the following libraries and expects them to be available on the system: Protocol BuffersgflagsRE2 https://code.google.com/p/protobuf/ https://code.google.com/p/gflags/ http原创 2014-01-21 14:39:23 · 484 阅读 · 0 评论 -
Google lmctfy 1.0 - Introduction
lmctfy = let me contain that for you,Google发布的开源的Linux Container,https://github.com/google/lmctfy, 关于项目说明,也可以参考中文译本:http://linux.cn/article-2049-1.html。 它是一种Linux容器,利用Cgroup为各种应用程序提供CPU、Memory、N原创 2014-01-20 21:46:44 · 761 阅读 · 0 评论 -
Google lmctfy 3.2 - Example allocate memory in container
写个了小程序试着在memory_only下分配超过100MB的内存,结果每次都能成功,百思不得其姐,岂不是违背了资源隔离的本意? 原来是这个原因, "Looks like I didn't have memory isolation enabled. I needed to enable CONFIG_MEMCG, and now things work (without the sym原创 2014-01-27 10:54:46 · 565 阅读 · 0 评论 -
Google lmctfy 3.0 - Example
1. cgroup文件系统 作为lmctfy的基础,cgroup文件系统是必要的,否则执行init时会报错 ls /sys/fs/cgroup/ blkio cpuacct devices hugetlb perf_event cpu cpuset freezer memory systemd 说明已经挂载了cgroup文件系统,上面显示的就是cgroup原创 2014-01-22 22:20:10 · 809 阅读 · 0 评论 -
Google lmctfy 3.1 - Example memory.stale_page_age error
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,原创 2014-01-27 09:49:31 · 588 阅读 · 0 评论 -
Google lmctfy 4.0 - flow of creating a container
For checking the error of memory.stale_page_age, I looked around the flow of creating a container, taking memory 100M for a example. The flow is very clear from command respond to derived handler wor原创 2014-01-28 22:30:55 · 478 阅读 · 0 评论