From: Serge Hallyn <serge.hallyn-GeWIH/nMZzLQT0dZR+AlfA@public.gmane.org>
To: Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
mhocko-AlSwsSmVLrQ@public.gmane.org,
cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
vgoyal-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Subject: Re: [PATCH 4/4] memcg: force use_hierarchy if sane_behavior
Date: Sun, 14 Apr 2013 20:13:36 -0500 [thread overview]
Message-ID: <20130415011336.GF8408@sergelap> (raw)
In-Reply-To: <1365808259-31073-5-git-send-email-tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Quoting Tejun Heo (tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org):
> Turn on use_hierarchy by default if sane_behavior is specified and
> don't create .use_hierarchy file.
>
> It is debatable whether to remove .use_hierarchy file or make it ro as
> the former could make transition easier in certain cases; however, the
> behavior changes which will be gated by sane_behavior are intensive
> including changing basic meaning of certain control knobs in a few
> controllers and I don't really think keeping this piece would make
> things easier in any noticeable way, so let's remove it.
Hi Tejun,
this actually reminds me of something that's been on my todo list to
report for some time, but I haven't had time to find the source of the
bug... And maybe it's already been reported... but
If I do
cd /sys/fs/cgroup/memory
mkdir b
cd b
echo 1 > memory.use_hierarchy
echo 5000 > memory.limit_in_bytes
cat memory.limit_in_bytes
8192
mkdir c
cd c
cat memory.use_hierarchy
1
cat memory.limit_in_bytes
9223372036854775807
echo $$ > tasks
bash
<killed>
So it seems the hierarchy is being enforced, but not reported in
child limit_in_bytes files.
(Last tested tonight on 3.8.0-17-generic #27-Ubuntu fwiw)
-serge
WARNING: multiple messages have this Message-ID (diff)
From: Serge Hallyn <serge.hallyn@ubuntu.com>
To: Tejun Heo <tj@kernel.org>
Cc: lizefan@huawei.com, containers@lists.linux-foundation.org,
linux-kernel@vger.kernel.org, mhocko@suse.cz, vgoyal@redhat.com,
cgroups@vger.kernel.org
Subject: Re: [PATCH 4/4] memcg: force use_hierarchy if sane_behavior
Date: Sun, 14 Apr 2013 20:13:36 -0500 [thread overview]
Message-ID: <20130415011336.GF8408@sergelap> (raw)
In-Reply-To: <1365808259-31073-5-git-send-email-tj@kernel.org>
Quoting Tejun Heo (tj@kernel.org):
> Turn on use_hierarchy by default if sane_behavior is specified and
> don't create .use_hierarchy file.
>
> It is debatable whether to remove .use_hierarchy file or make it ro as
> the former could make transition easier in certain cases; however, the
> behavior changes which will be gated by sane_behavior are intensive
> including changing basic meaning of certain control knobs in a few
> controllers and I don't really think keeping this piece would make
> things easier in any noticeable way, so let's remove it.
Hi Tejun,
this actually reminds me of something that's been on my todo list to
report for some time, but I haven't had time to find the source of the
bug... And maybe it's already been reported... but
If I do
cd /sys/fs/cgroup/memory
mkdir b
cd b
echo 1 > memory.use_hierarchy
echo 5000 > memory.limit_in_bytes
cat memory.limit_in_bytes
8192
mkdir c
cd c
cat memory.use_hierarchy
1
cat memory.limit_in_bytes
9223372036854775807
echo $$ > tasks
bash
<killed>
So it seems the hierarchy is being enforced, but not reported in
child limit_in_bytes files.
(Last tested tonight on 3.8.0-17-generic #27-Ubuntu fwiw)
-serge
next prev parent reply other threads:[~2013-04-15 1:13 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-12 23:10 [PATCHSET] cgroup, memcg: introduce sane_behavior mount option Tejun Heo
2013-04-12 23:10 ` Tejun Heo
[not found] ` <1365808259-31073-1-git-send-email-tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2013-04-12 23:10 ` [PATCH 1/4] cgroup: convert cgroupfs_root flag bits to masks and add CGRP_ prefix Tejun Heo
2013-04-12 23:10 ` Tejun Heo
[not found] ` <1365808259-31073-2-git-send-email-tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2013-04-15 0:56 ` Serge Hallyn
2013-04-15 0:56 ` Serge Hallyn
2013-04-15 0:56 ` Serge Hallyn
2013-04-12 23:10 ` [PATCH 2/4] move cgroupfs_root to include/linux/cgroup.h Tejun Heo
2013-04-12 23:10 ` Tejun Heo
2013-04-12 23:10 ` Tejun Heo
[not found] ` <1365808259-31073-3-git-send-email-tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2013-04-15 1:02 ` Serge Hallyn
2013-04-15 1:02 ` Serge Hallyn
2013-04-12 23:10 ` [PATCH 3/4] cgroup: introduce sane_behavior mount option Tejun Heo
2013-04-12 23:10 ` Tejun Heo
[not found] ` <1365808259-31073-4-git-send-email-tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2013-04-15 1:05 ` Serge Hallyn
2013-04-15 1:05 ` Serge Hallyn
2013-04-15 1:05 ` Serge Hallyn
2013-04-15 2:49 ` Li Zefan
2013-04-15 2:49 ` Li Zefan
[not found] ` <516B6AAB.8010507-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2013-04-15 2:54 ` Tejun Heo
2013-04-15 2:54 ` Tejun Heo
2013-04-12 23:10 ` [PATCH 4/4] memcg: force use_hierarchy if sane_behavior Tejun Heo
2013-04-15 2:50 ` [PATCHSET] cgroup, memcg: introduce sane_behavior mount option Li Zefan
2013-04-15 2:50 ` Li Zefan
2013-04-15 3:17 ` Tejun Heo
2013-04-15 3:17 ` Tejun Heo
[not found] ` <20130415031754.GG3050-Gd/HAXX7CRxy/B6EtB590w@public.gmane.org>
2013-04-15 14:46 ` Michal Hocko
2013-04-15 14:46 ` Michal Hocko
2013-04-15 14:46 ` Michal Hocko
2013-04-12 23:10 ` [PATCH 4/4] memcg: force use_hierarchy if sane_behavior Tejun Heo
[not found] ` <1365808259-31073-5-git-send-email-tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2013-04-15 1:06 ` Serge Hallyn
2013-04-15 1:06 ` Serge Hallyn
2013-04-15 1:13 ` Serge Hallyn [this message]
2013-04-15 1:13 ` Serge Hallyn
2013-04-15 2:35 ` Michal Hocko
2013-04-15 2:35 ` Michal Hocko
2013-04-15 2:35 ` Michal Hocko
2013-04-15 2:39 ` Tejun Heo
2013-04-15 2:39 ` Tejun Heo
[not found] ` <20130415023935.GE3050-Gd/HAXX7CRxy/B6EtB590w@public.gmane.org>
2013-04-15 5:29 ` Serge Hallyn
2013-04-15 5:29 ` Serge Hallyn
2013-04-15 14:42 ` Michal Hocko
2013-04-15 14:42 ` Michal Hocko
2013-04-15 14:42 ` Michal Hocko
2013-04-15 15:29 ` Kamezawa Hiroyuki
2013-04-15 15:29 ` Kamezawa Hiroyuki
2013-04-15 20:40 ` [PATCH v2 " Tejun Heo
2013-04-15 20:40 ` Tejun Heo
2013-04-15 20:40 ` Tejun Heo
[not found] ` <20130415204016.GA19531-9pTldWuhBndy/B6EtB590w@public.gmane.org>
2013-04-15 20:57 ` Michal Hocko
2013-04-15 20:57 ` Michal Hocko
2013-04-15 20:57 ` Michal Hocko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130415011336.GF8408@sergelap \
--to=serge.hallyn-gewih/nmzzlqt0dzr+alfa@public.gmane.org \
--cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mhocko-AlSwsSmVLrQ@public.gmane.org \
--cc=tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=vgoyal-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.