{"id":1654,"date":"2015-06-17T19:33:20","date_gmt":"2015-06-17T16:33:20","guid":{"rendered":"http:\/\/891rpm.arthead.ru\/?p=1654"},"modified":"2017-12-21T09:43:50","modified_gmt":"2017-12-21T06:43:50","slug":"cgroups-%d0%bb%d0%b8%d0%bc%d0%b8%d1%82-%d0%bd%d0%b0-%d1%80%d0%b0%d0%b7%d0%b4%d0%b5%d0%bb%d0%b5%d0%bd%d0%b8%d0%b5-%d1%80%d0%b5%d1%81%d1%83%d1%80%d1%81%d0%be%d0%b2-%d0%b0-%d0%bd%d0%b5-%d0%bd%d0%b0","status":"publish","type":"post","link":"https:\/\/891rpm.com\/?p=1654","title":{"rendered":"CGroups: \u041b\u0438\u043c\u0438\u0442 \u043d\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432, \u0430 \u043d\u0435 \u043d\u0430 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435"},"content":{"rendered":"<p><a href=\\\"\/\/891rpm.arthead.ru\/wp-content\/uploads\/2015\/06\/Linux_kernel_unified_hierarchy_cgroups_and_systemd.svg_.png\\\"><img class=\\\"alignnone size-large wp-image-1655\\\" src=\\\"\/\/891rpm.arthead.ru\/wp-content\/uploads\/2015\/06\/Linux_kernel_unified_hierarchy_cgroups_and_systemd.svg_-1024x640.png\\\" alt=\\\"Linux_kernel_unified_hierarchy_cgroups_and_systemd.svg\\\" width=\\\"680\\\" height=\\\"425\\\" \/><\/a><\/p>\n<p>\u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 CentOS \u0443 Debian 7 Wheezy \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0435\u0439\u043d\u0442\u0435\u043d\u0435\u0440\u0430 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u044b cgroups, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u043f\u0430\u0440\u044b \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0438 \u043f\u0440\u0430\u0432\u043a\u043e\u0439 1-2\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f.<\/p>\n<pre class=\\\"lang:sh decode:true\\\">apt-get install -y cgroup-bin libcgroup1<\/pre>\n<p>&nbsp;<\/p>\n<p>\u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432:<\/p>\n<pre class=\\\"lang:sh decode:true\\\">cp \/usr\/share\/doc\/cgroup-bin\/examples\/cgconfig.conf \/etc\/cgconfig.conf\r\ncp \/usr\/share\/doc\/cgroup-bin\/examples\/cgconfig.sysconfig \/etc\/default\/cgconfig\r\nzcat \/usr\/share\/doc\/cgroup-bin\/examples\/cgconfig.gz &gt; \/etc\/init.d\/cgconfig\r\nchmod +x \/etc\/init.d\/cgconfig<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u043f\u0435\u0446-\u043f\u0430\u043f\u043a\u0443 (\u0431\u0435\u0437 \u043d\u0435\u0435 \u043f\u043e\u0439\u043c\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443 \\&#8221;touch: cannot touch \/var\/lock\/subsys\/cgconfig: No such file or directory [FAIL] Failed to touch \/var\/lock\/subsys\/cgconfig &#8230; failed!\\&#8221;):<\/p>\n<pre class=\\\"lang:sh decode:true \\\">mkdir -p \/var\/lock\/subsys<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c cgroup \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432, \u043f\u0443\u0441\u0442\u044c \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 cpuacct, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u0430 \u043d\u0435 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0434\u0435\u0433\u0440\u0430\u0434\u0430\u0446\u0438\u044f\u043c \u0438 \u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u0435\u0437\u0432\u0440\u0435\u0434\u043d\u043e \u0438 \u043d\u0430 \u0431\u043e\u0435\u0432\u043e\u043c \u041f\u041e.<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433: \/etc\/cgconfig.conf \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<pre class=\\\"lang:sh decode:true\\\">mount {\r\ncpuacct = \/mnt\/cgroups\/cpuacct;\r\n}\r\ngroup wwwdata {\r\ncpuacct {\r\n}\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0441\u0442\u0430\u0440\u0442\u0430\u043d\u0443\u0442\u044c \u0435\u0433\u043e:<\/p>\n<pre class=\\\"lang:sh decode:true \\\">\/etc\/init.d\/cgconfig restart<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0423\u0431\u0435\u0436\u0434\u0430\u0435\u043c\u0441\u044f, \u0447\u0442\u043e cgroup \u0431\u044b\u043b\u0430 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0441\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0430:<\/p>\n<pre class=\\\"lang:sh decode:true \\\">cat \/proc\/mounts |grep cgroup\r\ncgroup \/mnt\/cgroups\/cpuacct cgroup rw,relatime,cpuacct 0 0<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0410 \u0441\u0430\u043c\u0430 \u043f\u0430\u043f\u043a\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<pre class=\\\"lang:sh decode:true\\\">ls -al \/mnt\/cgroups\/cpuacct\/\r\ntotal 4.0K\r\ndrwxr-xr-x. 3 root root 0 Feb 5 14:04 .drwxr-xr-x. 3 root root 4.0K Feb 5 14:04 ..-rw-r--r--. 1 root root 0 Feb 5 14:04 cgroup.clone_children\r\n--w--w--w-. 1 root root 0 Feb 5 14:04 cgroup.event_control\r\n-rw-r--r--. 1 root root 0 Feb 5 14:04 cgroup.procs\r\n-r--r--r--. 1 root root 0 Feb 5 14:04 cpuacct.stat\r\n-rw-r--r--. 1 root root 0 Feb 5 14:04 cpuacct.usage\r\n-r--r--r--. 1 root root 0 Feb 5 14:04 cpuacct.usage_percpu\r\n-rw-r--r--. 1 root root 0 Feb 5 14:04 notify_on_release\r\n-rw-r--r--. 1 root root 0 Feb 5 14:04 release_agent\r\n-rw-r--r--. 1 root root 0 Feb 5 14:04 tasks\r\ndrwxr-xr-x. 2 root root 0 Feb 5 14:04 wwwdata<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0437\u0430\u0433\u043e\u043d\u044f\u043b\u0438\u0441\u044c \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0443\u044e cgroup.<\/p>\n<p>\u0421\u043d\u043e\u0432\u0430 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0438:<\/p>\n<pre class=\\\"lang:sh decode:true \\\">cp \/usr\/share\/doc\/cgroup-bin\/examples\/cgrules.conf \/etc\/cgrules.conf\r\ncp \/usr\/share\/doc\/cgroup-bin\/examples\/cgred \/etc\/init.d\/cgred\r\ncp \/usr\/share\/doc\/cgroup-bin\/examples\/cgred.conf \/etc\/default\/cgred.conf\r\nchmod +x \/etc\/init.d\/cgred<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u0430\u0432\u0438\u043c \u0431\u0430\u0433\u0438 \u043c\u0435\u0439\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 Debian:<\/p>\n<pre class=\\\"lang:sh decode:true \\\">sed -i \\'s\/sysconfig\/default\/\\' \/etc\/init.d\/cgconfig<\/pre>\n<p>&nbsp;<\/p>\n<p>\u041f\u043e\u0442\u043e\u043c \u0434\u043e\u0431\u0430\u0432\u044f\u043b\u0435\u043c \u0442\u0443\u0434\u0430 (\/etc\/cgrules.conf) \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0432 \u0441\u0430\u043c\u044b\u0439 \u043d\u0438\u0437:<\/p>\n<pre class=\\\"lang:sh decode:true \\\">@www-data cpuacct wwwdata\/<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0434\u0435\u0444\u0430\u043b\u0442 \u0433\u0440\u0443\u043f\u043f\u044b (\u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043c\u0435\u0449\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u043a\u0440\u043e\u043c\u0435 \u0442\u0435\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043c\u0435\u0449\u0435\u043d\u044b \u0432 \u0438\u043d\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b):<\/p>\n<pre class=\\\"lang:sh decode:true\\\">vim \/etc\/default\/cgconfig\r\nCREATE_DEFAULT=no<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u044b \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f www-data \u0432 \u0433\u0440\u0443\u043f\u043f\u0443 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c wwwdata.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 (\u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0447\u0442\u043e-\u0442\u043e \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0445 \u043d\u0435 \u0442\u043e \u0438 \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0430 \u0443 \u043d\u0435\u0433\u043e \u043d\u0435 \u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u0440\u0430\u0437\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c cgroup) \u0434\u0435\u0440\u0433\u0430\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<pre class=\\\"lang:sh decode:true\\\">\/etc\/init.d\/cgconfig stop<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0418 \u043f\u043e\u0442\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c:<\/p>\n<pre class=\\\"lang:sh decode:true \\\">\/etc\/init.d\/cgconfig start<\/pre>\n<p>&nbsp;<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0434\u0435\u043c\u043e\u043d\u0430 cgred, \u043a\u043e\u0442\u043e\u0440\u044b\u0439, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0434\u043e\u043b\u0436\u0435\u043d \u0440\u0430\u0441\u043f\u0438\u0445\u0438\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u043f\u043e cgroup:<\/p>\n<pre class=\\\"lang:sh decode:true \\\">\/etc\/init.d\/cgred start<\/pre>\n<p>&nbsp;<\/p>\n<p>\u041d\u043e \u043d\u0430\u0441 \u043f\u043e\u0441\u0442\u0438\u0433\u043d\u0435\u0442 \u0443\u0436\u0430\u0441\u043d\u043e\u0435 \u0440\u0430\u0437\u043e\u0447\u0430\u0440\u043e\u0432\u0430\u043d\u0438\u0435 &#8211; init \u0441\u043a\u0440\u0438\u043f\u0442 \u0442\u0443\u043f\u043e \u0432\u0437\u044f\u0442 \u0438\u0437 RedHat \u0431\u0435\u0437 \u0434\u043e\u043b\u0436\u043d\u043e\u0439 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u043e\u0434 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 Debian (\u0432\u043f\u0440\u043e\u0447\u0435\u043c, \u0432 \/etc\/init.d\/cgconfig \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 &#8211; \u0442\u0430\u043c \u0432\u043c\u0435\u0441\u0442\u043e \/etc\/default \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0443\u0442\u044c \/etc\/sysconfig):<\/p>\n<p>\/etc\/init.d\/cgred: line 43: \/etc\/rc.d\/init.d\/functions: No such file or directory<br \/>\nStarting CGroup Rules Engine Daemon: \/etc\/init.d\/cgred: line 85: daemon: command not found<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \/etc\/init.d\/cgred \u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u043c 43\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u043a\u043e\u0434\u043e\u043c: \\&#8221;\/etc\/rc.d\/init.d\/functions\\&#8221;.<\/p>\n<p>\u041f\u043e\u0442\u043e\u043c \u0438\u0449\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443<\/p>\n<pre class=\\\"lang:sh decode:true\\\">daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS<\/pre>\n<p>\u0438 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430:<\/p>\n<pre class=\\\"lang:sh decode:true \\\">start-stop-daemon --start --quiet --pidfile $pidfile --exec $CGRED_BIN -- $OPTIONS<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u0430\u0432\u0438\u043c:<\/p>\n<pre class=\\\"lang:sh decode:true \\\">sed -i \\'s\/sysconfig\/default\/\\' \/etc\/init.d\/cgred<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0415\u0449\u0435 \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0433\u0440\u0443\u043f\u043f\u0443, \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0434\u0435\u043c\u043e\u043d:<\/p>\n<pre class=\\\"lang:sh decode:true \\\">vim \/etc\/default\/cgred.conf<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0438 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c SOCKET_GROUP=\\&#8221;cgred\\&#8221; \u043d\u0430 SOCKET_GROUP=\\&#8221;\\&#8221;<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0430\u043f\u043a\u0443 \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0439 cgroup:<\/p>\n<pre class=\\\"lang:sh decode:true \\\">mkdir \/mnt\/cgroups\/cpuacct\/wwwdata<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0418\u0442\u0430\u043a, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0434\u0435\u043c\u043e\u043d\u0430:<\/p>\n<pre class=\\\"lang:sh decode:true \\\">\/etc\/init.d\/cgred start<\/pre>\n<p>&nbsp;<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432 cgroup, \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e nginx \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f www-data:<\/p>\n<pre class=\\\"lang:sh decode:true \\\">\/etc\/init.d\/nginx reload<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0412\u0441\u0435, \u0442\u0435\u043f\u0435\u0440\u044c \u0443\u0431\u0435\u0436\u0434\u0430\u0435\u043c\u0441\u044f, \u0447\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u043f\u043e\u043f\u0430\u043b\u0438 \u0432 \u043d\u0443\u0436\u043d\u0443\u044e cgroup:<\/p>\n<pre class=\\\"lang:sh decode:true \\\">cat \/mnt\/cgroups\/cpuacct\/wwwdata\/tasks\r\n28623\r\n28624\r\n28625\r\n28626<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 CentOS \u0443 Debian 7 Wheezy \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0435\u0439\u043d\u0442\u0435\u043d\u0435\u0440\u0430 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u044b cgroups, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u043f\u0430\u0440\u044b \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0438 \u043f\u0440\u0430\u0432\u043a\u043e\u0439 1-2\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f. apt-get install -y cgroup-bin libcgroup1 &nbsp; \u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432: cp \/usr\/share\/doc\/cgroup-bin\/examples\/cgconfig.conf \/etc\/cgconfig.conf cp \/usr\/share\/doc\/cgroup-bin\/examples\/cgconfig.sysconfig \/etc\/default\/cgconfig zcat \/usr\/share\/doc\/cgroup-bin\/examples\/cgconfig.gz &gt; \/etc\/init.d\/cgconfig chmod +x \/etc\/init.d\/cgconfig &nbsp; \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u043f\u0435\u0446-\u043f\u0430\u043f\u043a\u0443 (\u0431\u0435\u0437 \u043d\u0435\u0435 \u043f\u043e\u0439\u043c\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443 \\&#8221;touch: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[85,86,100,103,319],"class_list":["post-1654","post","type-post","status-publish","format-standard","hentry","category-tech-articles","tag-cgconfig","tag-cgroups","tag-control-groups","tag-cpu","tag-memory"],"_links":{"self":[{"href":"https:\/\/891rpm.com\/index.php?rest_route=\/wp\/v2\/posts\/1654","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/891rpm.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/891rpm.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/891rpm.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/891rpm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1654"}],"version-history":[{"count":0,"href":"https:\/\/891rpm.com\/index.php?rest_route=\/wp\/v2\/posts\/1654\/revisions"}],"wp:attachment":[{"href":"https:\/\/891rpm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/891rpm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/891rpm.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}