/linux-4.1.27/Documentation/cgroups/ |
D | cgroups.txt | 46 A *cgroup* associates a set of tasks with a set of parameters for one 52 schedules a resource or applies per-cgroup limits, but it may be 59 state attached to each cgroup in the hierarchy. Each hierarchy has 60 an instance of the cgroup virtual filesystem associated with it. 66 instance of the cgroup virtual file system, specify and query to 67 which cgroup a task is assigned, and list the task PIDs assigned to 68 a cgroup. Those creations and assignments only affect the hierarchy 69 associated with that instance of the cgroup file system. 73 cgroup support to provide new attributes for cgroups, such as 74 accounting/limiting the resources which processes in a cgroup can [all …]
|
D | freezer-subsystem.txt | 1 The cgroup freezer is useful to batch job management system which start 5 whole. The cgroup freezer uses cgroups to describe the set of tasks to 9 The cgroup freezer will also be useful for checkpointing running groups 11 image of the tasks by attempting to force the tasks in a cgroup into a 47 In contrast, the cgroup freezer uses the kernel freezer code to 52 The cgroup freezer is hierarchical. Freezing a cgroup freezes all 53 tasks beloning to the cgroup and all its descendant cgroups. Each 54 cgroup has its own state (self-state) and the state inherited from the 55 parent (parent-state). Iff both states are THAWED, the cgroup is 58 The following cgroupfs files are created by cgroup freezer. [all …]
|
D | net_cls.txt | 1 Network classifier cgroup 4 The Network classifier cgroup provides an interface to 21 mkdir /sys/fs/cgroup/net_cls 22 mount -t cgroup -onet_cls net_cls /sys/fs/cgroup/net_cls 23 mkdir /sys/fs/cgroup/net_cls/0 24 echo 0x100001 > /sys/fs/cgroup/net_cls/0/net_cls.classid 27 cat /sys/fs/cgroup/net_cls/0/net_cls.classid 36 tc filter add dev eth0 parent 10: protocol ip prio 10 handle 1: cgroup 39 iptables -A OUTPUT -m cgroup ! --cgroup 0x100001 -j DROP
|
D | cpuacct.txt | 11 Accounting groups can be created by first mounting the cgroup filesystem. 13 # mount -t cgroup -ocpuacct none /sys/fs/cgroup 16 visible at /sys/fs/cgroup. At bootup, this group includes all the tasks in 17 the system. /sys/fs/cgroup/tasks lists the tasks in this cgroup. 18 /sys/fs/cgroup/cpuacct.usage gives the CPU time (in nanoseconds) obtained 22 New accounting groups can be created under the parent group /sys/fs/cgroup. 24 # cd /sys/fs/cgroup 31 /sys/fs/cgroup/cpuacct.usage also. 34 CPU time obtained by the cgroup into user and system times. Currently 37 user: Time spent by tasks of the cgroup in user mode. [all …]
|
D | net_prio.txt | 1 Network priority cgroup 4 The Network priority cgroup provides an interface to allow an administrator to 15 This cgroup allows an administrator to assign a process to a group which defines 17 be created by first mounting the cgroup filesystem. 19 # mount -t cgroup -onet_prio none /sys/fs/cgroup/net_prio 22 becomes visible at '/sys/fs/cgroup/net_prio'. This group includes all tasks in 23 the system. '/sys/fs/cgroup/net_prio/tasks' lists the tasks in this cgroup. 25 Each net_prio cgroup contains two files that are subsystem specific 29 value that the kernel uses as an internal representation of this cgroup. 41 iscsi net_prio cgroup and egressing on interface eth0 to have the priority of [all …]
|
D | memcg_test.txt | 141 mount -t cgroup -o cpuset none /opt/cpuset 182 echo 1 >/opt/cgroup/01/memory/use_hierarchy 183 mkdir /opt/cgroup/01/child_a 184 mkdir /opt/cgroup/01/child_b 191 /opt/cgroup/01/child_a/child_aa 192 /opt/cgroup/01/child_b/child_bb 193 /opt/cgroup/01/child_c 199 race and lock dependency with other cgroup subsystems. 202 # mount -t cgroup none /cgroup -o cpuset,memory,cpu,devices 213 # mount -t cgroup none /cgroup -o memory [all …]
|
D | unified-hierarchy.txt | 7 their rationales. It will eventually be merged into the main cgroup 15 2-2. cgroup.subtree_control 16 2-3. cgroup.controllers 33 cgroup allows an arbitrary number of hierarchies and each hierarchy 54 Internal implementation in cgroup core proper is dazzlingly 56 restricts how cgroup is used in general and what controllers can do. 59 that a task's cgroup membership can't be described in finite length. 80 Unified hierarchy is the next version of cgroup interface. It aims to 95 mount -t cgroup -o __DEVEL__sane_behavior cgroup $MOUNT_POINT 111 is no longer referenced in its current hierarchy. Because per-cgroup [all …]
|
D | memory.txt | 14 When we mention a cgroup (cgroupfs's directory) with memory controller, 15 we call it "memory cgroup". When you see git-log and source code, you'll 28 b. Create a cgroup with a limited amount of memory; this can be used 50 - Root cgroup has no limit controls. 58 cgroup.procs # show list of processes 59 cgroup.event_control # an interface for event_fd() 126 processes associated with the controller. Each cgroup has a memory controller 154 1. Accounting happens per cgroup 155 2. Each mm_struct knows about which cgroup it belongs to 157 cgroup it belongs to [all …]
|
D | devices.txt | 5 Implement a cgroup to track and enforce open and mknod restrictions 6 on device files. A device cgroup associates a device access 7 whitelist with each cgroup. A whitelist entry has 4 fields. 13 The root device cgroup starts with rwm to 'all'. A child device 14 cgroup gets a copy of the parent. Administrators can then remove 15 devices from the whitelist or add new entries. A child cgroup can 23 echo 'c 1:3 mr' > /sys/fs/cgroup/1/devices.allow 25 allows cgroup 1 to read and mknod the device usually known as 28 echo a > /sys/fs/cgroup/1/devices.deny 32 echo a > /sys/fs/cgroup/1/devices.allow [all …]
|
D | blkio-controller.txt | 5 cgroup subsys "blkio" implements the block io controller. There seems to be 8 Plan is to use the same cgroup based management interface for blkio controller 34 mount -t tmpfs cgroup_root /sys/fs/cgroup 35 mkdir /sys/fs/cgroup/blkio 36 mount -t cgroup -o blkio none /sys/fs/cgroup/blkio 39 mkdir -p /sys/fs/cgroup/blkio/test1/ /sys/fs/cgroup/blkio/test2 42 echo 1000 > /sys/fs/cgroup/blkio/test1/blkio.weight 43 echo 500 > /sys/fs/cgroup/blkio/test2/blkio.weight 46 launch two dd threads in different cgroup to read those files. 52 echo $! > /sys/fs/cgroup/blkio/test1/tasks [all …]
|
D | hugetlb.txt | 11 HugeTLB controller can be created by first mounting the cgroup filesystem. 13 # mount -t cgroup -o hugetlb none /sys/fs/cgroup 16 visible at /sys/fs/cgroup. At bootup, this group includes all the tasks in 17 the system. /sys/fs/cgroup/tasks lists the tasks in this cgroup. 19 New groups can be created under the parent group /sys/fs/cgroup. 21 # cd /sys/fs/cgroup
|
D | cpusets.txt | 50 Cpusets use the generic cgroup subsystem described in 62 User level code may create and destroy cpusets by name in the cgroup 122 in the task structure to a reference counted cgroup structure. 152 You should mount the "cgroup" filesystem type in order to enable 167 Each cpuset is represented by a directory in the cgroup file system 168 containing (on top of the standard cgroup files) the following 651 cpuset is bound with another cgroup subsystem which has some restrictions 670 1) mkdir /sys/fs/cgroup/cpuset 671 2) mount -t cgroup -ocpuset cpuset /sys/fs/cgroup/cpuset 673 the /sys/fs/cgroup/cpuset virtual file system. [all …]
|
D | 00-INDEX | 28 - Description the new/next cgroup interface.
|
/linux-4.1.27/include/linux/ |
D | cgroup.h | 177 static inline bool cgroup_on_dfl(const struct cgroup *cgrp) in cgroup_on_dfl() 183 static inline bool cgroup_has_tasks(struct cgroup *cgrp) in cgroup_has_tasks() 189 static inline ino_t cgroup_ino(struct cgroup *cgrp) in cgroup_ino() 218 static inline int cgroup_name(struct cgroup *cgrp, char *buf, size_t buflen) in cgroup_name() 223 static inline char * __must_check cgroup_path(struct cgroup *cgrp, char *buf, in cgroup_path() 229 static inline void pr_cont_cgroup_name(struct cgroup *cgrp) in pr_cont_cgroup_name() 234 static inline void pr_cont_cgroup_path(struct cgroup *cgrp) in pr_cont_cgroup_path() 245 bool cgroup_is_descendant(struct cgroup *cgrp, struct cgroup *ancestor); 339 static inline struct cgroup *task_cgroup(struct task_struct *task, in task_cgroup() 342 return task_css(task, subsys_id)->cgroup; in task_cgroup() [all …]
|
D | cgroup-defs.h | 21 struct cgroup; 87 struct cgroup *cgroup; member 163 struct cgroup *dfl_cgrp; 186 struct cgroup *mg_src_cgrp; 202 struct cgroup { struct 289 struct cgroup cgrp;
|
/linux-4.1.27/Documentation/accounting/ |
D | cgroupstats.txt | 2 http://lkml.org/lkml/2007/4/11/187 and implements per cgroup statistics as 5 Per cgroup statistics infrastructure re-uses code from the taskstats 6 interface. A new set of cgroup operations are registered with commands 8 extend per cgroup statistics, by adding members to the cgroupstats 13 user space requests for statistics by passing the cgroup path. 14 Statistics about the state of all the tasks in the cgroup is returned to 21 To extract cgroup statistics a utility very similar to getdelays.c 24 ~/balbir/cgroupstats # ./getdelays -C "/sys/fs/cgroup/a" 26 ~/balbir/cgroupstats # ./getdelays -C "/sys/fs/cgroup"
|
/linux-4.1.27/kernel/ |
D | cgroup.c | 190 static int cgroup_destroy_locked(struct cgroup *cgrp); 191 static int create_css(struct cgroup *cgrp, struct cgroup_subsys *ss, 195 static int cgroup_addrm_files(struct cgroup *cgrp, struct cftype cfts[], 229 static struct cgroup *cgroup_parent(struct cgroup *cgrp) in cgroup_parent() 234 return container_of(parent_css, struct cgroup, self); in cgroup_parent() 249 static struct cgroup_subsys_state *cgroup_css(struct cgroup *cgrp, in cgroup_css() 269 static struct cgroup_subsys_state *cgroup_e_css(struct cgroup *cgrp, in cgroup_e_css() 302 struct cgroup_subsys_state *cgroup_get_e_css(struct cgroup *cgrp, in cgroup_get_e_css() 325 static inline bool cgroup_is_dead(const struct cgroup *cgrp) in cgroup_is_dead() 332 struct cgroup *cgrp = of->kn->parent->priv; in of_css() [all …]
|
D | cpuset.c | 476 if (!cgroup_on_dfl(cur->css.cgroup) && !is_cpuset_subset(trial, par)) in validate_change() 500 if ((cgroup_has_tasks(cur->css.cgroup) || cur->attach_in_progress)) { in validate_change() 882 if (cgroup_on_dfl(cp->css.cgroup) && cpumask_empty(new_cpus)) in update_cpumasks_hier() 899 WARN_ON(!cgroup_on_dfl(cp->css.cgroup) && in update_cpumasks_hier() 1138 if (cgroup_on_dfl(cp->css.cgroup) && nodes_empty(*new_mems)) in update_nodemasks_hier() 1155 WARN_ON(!cgroup_on_dfl(cp->css.cgroup) && in update_nodemasks_hier() 1443 if (!cgroup_on_dfl(css->cgroup) && in cpuset_can_attach() 1955 if (cgroup_on_dfl(cs->css.cgroup)) { in cpuset_css_online() 1961 if (!test_bit(CGRP_CPUSET_CLONE_CHILDREN, &css->cgroup->flags)) in cpuset_css_online() 2032 if (cgroup_on_dfl(root_css->cgroup)) { in cpuset_bind() [all …]
|
D | Makefile | 56 obj-$(CONFIG_CGROUPS) += cgroup.o
|
/linux-4.1.27/net/core/ |
D | netprio_cgroup.c | 92 int id = css->cgroup->id; in netprio_prio() 112 int id = css->cgroup->id; in netprio_set_prio() 173 return css->cgroup->id; in read_prioidx() 225 void *v = (void *)(unsigned long)css->cgroup->id; in net_prio_attach()
|
/linux-4.1.27/tools/perf/Documentation/ |
D | perf-stat.txt | 99 --cgroup name:: 100 monitor only in the container (cgroup) called "name". This option is available only 101 in per-cpu mode. The cgroup filesystem must be mounted. All threads belonging to 103 can be provided. Each cgroup is applied to the corresponding event, i.e., first cgroup 104 to first event, second cgroup to second event and so on. It is possible to provide 105 an empty cgroup (monitor all the time) using, e.g., -G foo,,bar. Cgroups must have
|
D | perf-record.txt | 181 --cgroup name,...:: 182 monitor only in the container (cgroup) called "name". This option is available only 183 in per-cpu mode. The cgroup filesystem must be mounted. All threads belonging to 185 can be provided. Each cgroup is applied to the corresponding event, i.e., first cgroup 186 to first event, second cgroup to second event and so on. It is possible to provide 187 an empty cgroup (monitor all the time) using, e.g., -G foo,,bar. Cgroups must have
|
/linux-4.1.27/arch/x86/kernel/cpu/ |
D | perf_event_intel_cqm.c | 319 if (cgroup_is_descendant(ac->css.cgroup, bc->css.cgroup) || in __conflict_event() 320 cgroup_is_descendant(bc->css.cgroup, ac->css.cgroup)) in __conflict_event() 354 if (cgroup_is_descendant(ac->css.cgroup, bc->css.cgroup) || in __conflict_event() 355 cgroup_is_descendant(bc->css.cgroup, ac->css.cgroup)) in __conflict_event()
|
/linux-4.1.27/include/net/ |
D | netprio_cgroup.h | 37 idx = css->cgroup->id; in task_netprioidx()
|
D | sock.h | 72 struct cgroup;
|
/linux-4.1.27/Documentation/block/ |
D | cfq-iosched.txt | 149 CFQ supports blkio cgroup and has "blkio." prefixed files in each 150 blkio cgroup directory. It is weight-based and there are four knobs 152 Internal cgroup nodes (the ones with children) can also have tasks in 153 them, so the former two configure how much proportion the cgroup as a 155 configure how much proportion the tasks in the cgroup have compared to 173 and AB have no child and thus its tasks have no children cgroup to 174 compete with. They always get 100% of what the cgroup won at the 221 scheduling. For non-cgroup users nothing should change.
|
D | queue-sysfs.txt | 93 queue maintains a separate request pool per each cgroup when 95 per-block-cgroup request pool. IOW, if there are N block cgroups,
|
/linux-4.1.27/tools/perf/util/ |
D | python-ext-sources | 17 util/cgroup.c
|
D | Build | 65 libperf-y += cgroup.o
|
/linux-4.1.27/Documentation/scheduler/ |
D | sched-design-CFS.txt | 217 create arbitrary groups of tasks, using the "cgroup" pseudo filesystem. See 224 # mount -t tmpfs cgroup_root /sys/fs/cgroup 225 # mkdir /sys/fs/cgroup/cpu 226 # mount -t cgroup -ocpu none /sys/fs/cgroup/cpu 227 # cd /sys/fs/cgroup/cpu
|
D | sched-rt-group.txt | 132 This uses the cgroup virtual file system and "<cgroup>/cpu.rt_runtime_us" 152 ("<cgroup>/cpu.rt_period_us") configurable as well.
|
D | sched-deadline.txt | 319 mount -t cgroup -o cpuset cpuset /dev/cpuset
|
/linux-4.1.27/Documentation/namespaces/ |
D | resource-control.txt | 14 /etc/cgconfig.conf and setting up libpam-cgroup.
|
/linux-4.1.27/block/ |
D | Makefile | 16 obj-$(CONFIG_BLK_CGROUP) += blk-cgroup.o
|
D | Kconfig | 97 the IO rate to a device. IO rate policies are per cgroup and 98 one needs to mount and use blkio cgroup controller for creating
|
D | blk-cgroup.h | 244 p = cgroup_path(blkg->blkcg->css.cgroup, buf, buflen); in blkg_path() 561 struct cgroup;
|
D | blk-throttle.c | 429 if (cgroup_on_dfl(blkg->blkcg->css.cgroup) && blkg->parent) in throtl_pd_init()
|
/linux-4.1.27/Documentation/vm/ |
D | hwpoison.txt | 137 mkdir /sys/fs/cgroup/mem/hwpoison 140 echo `jobs -p` > /sys/fs/cgroup/mem/hwpoison/tasks 142 memcg_ino=$(ls -id /sys/fs/cgroup/mem/hwpoison | cut -f1 -d' ')
|
/linux-4.1.27/tools/ |
D | Makefile | 44 cgroup firewire hv guest usb virtio vm net: FORCE target
|
/linux-4.1.27/Documentation/ |
D | gdb-kernel-debugging.txt | 96 [ 0.000000] Initializing cgroup subsys cpuset 97 [ 0.000000] Initializing cgroup subsys cpu
|
/linux-4.1.27/init/ |
D | Kconfig | 955 bool "Example debug cgroup subsystem" 958 This option enables a simple cgroup subsystem that 965 bool "Freezer cgroup subsystem" 968 cgroup. 973 Provides a cgroup implementing whitelists for devices which 974 a process in the cgroup can mknod or open. 992 bool "Simple CPU accounting cgroup subsystem" 995 total CPU consumed by the tasks in a cgroup. 1013 enable this, you can limit mem+swap usage per cgroup. In other words, 1056 Provides a cgroup Resource Controller for HugeTLB pages. [all …]
|
/linux-4.1.27/net/ |
D | Kconfig | 250 bool "Network priority cgroup" 257 bool "Network classid cgroup"
|
/linux-4.1.27/mm/ |
D | memcontrol.c | 1283 return cgroup_is_descendant(memcg->css.cgroup, root->css.cgroup); in mem_cgroup_is_descendant() 1457 pr_cont_cgroup_path(memcg->css.cgroup); in mem_cgroup_print_oom_info() 1474 pr_cont_cgroup_path(iter->css.cgroup); in mem_cgroup_print_oom_info() 3219 if (cgroup_has_tasks(memcg->css.cgroup) || in memcg_activate_kmem() 5233 if (cgroup_on_dfl(root_css->cgroup)) in mem_cgroup_bind()
|
D | slab_common.c | 511 cgroup_name(css->cgroup, memcg_name_buf, sizeof(memcg_name_buf)); in memcg_create_kmem_cache()
|
D | memory-failure.c | 148 ino = cgroup_ino(css->cgroup); in hwpoison_filter_task()
|
/linux-4.1.27/kernel/sched/ |
D | debug.c | 116 return cgroup_path(tg->css.cgroup, group_path, PATH_MAX); in task_group_path()
|
/linux-4.1.27/net/sched/ |
D | Kconfig | 465 cgroup of their process.
|
/linux-4.1.27/Documentation/sysctl/ |
D | vm.txt | 692 above-mentioned. Even oom happens under memory cgroup, the whole
|
/linux-4.1.27/kernel/events/ |
D | core.c | 381 return cgroup_is_descendant(cpuctx->cgrp->css.cgroup, in perf_cgroup_match() 382 event->cgrp->css.cgroup); in perf_cgroup_match()
|
/linux-4.1.27/ |
D | MAINTAINERS | 2713 T: git git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git 2716 F: include/linux/cgroup* 2717 F: kernel/cgroup* 2724 T: git git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git
|