From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
To: Evgeniy Ivanov <lolkaantimat@gmail.com>
Cc: linux-mm@kvack.org
Subject: Re: Question about cgroup hierarchy and reducing memory limit
Date: Wed, 24 Nov 2010 09:47:36 +0900 [thread overview]
Message-ID: <20101124094736.3c4ba760.kamezawa.hiroyu@jp.fujitsu.com> (raw)
In-Reply-To: <AANLkTingzd3Pqrip1izfkLm+HCE9jRQL777nu9s3RnLv@mail.gmail.com>
On Mon, 22 Nov 2010 19:59:41 +0300
Evgeniy Ivanov <lolkaantimat@gmail.com> wrote:
> Hello,
>
Hi,
> I have following cgroup hierarchy:
>
> Root
> / |
> A B
>
> A and B have memory limits set so that it's 100% of limit set in Root.
> I want to add C to root:
>
> Root
> / | \
> A B C
>
> What is correct way to shrink limits for A and B? When they use all
> allowed memory and I try to write to their limit files I get error.
What kinds of error ? Do you have swap ? What is the kerenel version ?
> It seems, that I can shrink their limits multiple times by 1Mb and it
> works, but looks ugly and like very dirty workaround.
>
It's designed to allow "shrink at once" but that means release memory
and do forced-writeback. To release memory, it may have to write back
to swap. If tasks in "A" and "B" are too busy and tocuhes tons of memory
while shrinking, it may fail.
It may be a regression. Kernel version is important.
Could you show memory.stat file when you shrink "A" and "B" ?
And what happnes
# sync
# sync
# sync
# reduce memory A
# reduce memory B
one by one ?
Thanks,
-Kame
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2010-11-24 0:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-22 16:59 Evgeniy Ivanov
2010-11-24 0:47 ` KAMEZAWA Hiroyuki [this message]
2010-11-24 12:17 ` Evgeniy Ivanov
2010-11-25 1:04 ` KAMEZAWA Hiroyuki
2010-11-25 10:51 ` Evgeniy Ivanov
2010-11-29 6:58 ` KAMEZAWA Hiroyuki
2010-11-29 14:02 ` Balbir Singh
2010-11-30 0:03 ` KAMEZAWA Hiroyuki
2010-11-30 1:23 ` KAMEZAWA Hiroyuki
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=20101124094736.3c4ba760.kamezawa.hiroyu@jp.fujitsu.com \
--to=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-mm@kvack.org \
--cc=lolkaantimat@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox