2012年4月18日

Linux Cgroups详解(二)

摘要: cgroups 数据结构设计我们从进程出发来剖析cgroups相关数据结构之间的关系。在Linux中,管理进程的数据结构是task_struct,其中与cgroups有关的:#ifdef CONFIG_CGROUPS /* Control Group info protected by css_set_lock */ struct css_set *cgroups; /* cg_list protected by css_set_lock and tsk->alloc_lock */ struct list_head cg_list;#endif其中cgroups指针指向了一个css_s 阅读全文
posted @ 2012-04-18 11:30 lisperl 阅读(13372) 评论(0) 推荐(4) 编辑