linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Weiner <hannes@cmpxchg.org>
To: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: linux-mm@kvack.org, Michal Hocko <mhocko@suse.cz>,
	Andrew Morton <akpm@linux-foundation.org>,
	cgroups@vger.kernel.org,
	Naoya Horiguchi <nao.horiguchi@gmail.com>
Subject: Re: memcg swap doesn't work in mmotm-2014-07-09-17-08?
Date: Wed, 16 Jul 2014 14:37:27 -0400	[thread overview]
Message-ID: <20140716183727.GB29639@cmpxchg.org> (raw)
In-Reply-To: <20140716181007.GA8524@nhori.redhat.com>

On Wed, Jul 16, 2014 at 02:10:07PM -0400, Naoya Horiguchi wrote:
> Hi,
> 
> It seems that when a process in some memcg tries to allocate more than
> memcg.limit_in_bytes, oom happens instead of swaping out in
> mmotm-2014-07-09-17-08 (memcg.memsw.limit_in_bytes is large enough).
> It does work in v3.16-rc3, so I think latest patches changed something.
> I'm not familiar with memcg internally, so no idea about what caused it.
> Could you see the problem?

There are a lot of changes in memory and swap accounting, but I can
not reproduce what you are describing: I set up a cgroup with a 100MB
memory limit and an unlimited memory+swap, then start a task in there
that faults 200MB worth of anonymous pages.  The result is 100MB in
memory, 100MB in swap:

cache 0
rss 104267776
rss_huge 0
mapped_file 0
writeback 0
swap 105545728
pgpgin 26367
pgpgout 25950
pgfault 26695
pgmajfault 32
inactive_anon 52285440
active_anon 51982336
inactive_file 0
active_file 0
unevictable 0
hierarchical_memory_limit 104857600
hierarchical_memsw_limit 18446744073709551615

Filename                                Type            Size    Used    Priority
/swapfile                               file            8388604 109800  -1

Could you provide more detail on your configuration and test case?

Thanks!

--
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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2014-07-16 18:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-16 18:10 Naoya Horiguchi
2014-07-16 18:37 ` Johannes Weiner [this message]
2014-07-16 19:31   ` Naoya Horiguchi
2014-07-16 19:57     ` Johannes Weiner
2014-07-16 20:11       ` Naoya Horiguchi
2014-07-16 20:43         ` Naoya Horiguchi
2014-07-16 21:26           ` Johannes Weiner

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=20140716183727.GB29639@cmpxchg.org \
    --to=hannes@cmpxchg.org \
    --cc=akpm@linux-foundation.org \
    --cc=cgroups@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@suse.cz \
    --cc=n-horiguchi@ah.jp.nec.com \
    --cc=nao.horiguchi@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