From: Johannes Weiner <hannes@cmpxchg.org>
To: Yu Zhao <yuzhao@google.com>
Cc: linux-mm@kvack.org, cgroups@vger.kernel.org, x86@kernel.org,
linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org,
jamieliu@google.com, suleiman@google.com
Subject: Re: [PATCH 0/3] Per cgroup swap file support
Date: Sat, 22 Mar 2014 11:43:24 -0400 [thread overview]
Message-ID: <20140322154324.GK4407@cmpxchg.org> (raw)
In-Reply-To: <1395442234-7493-1-git-send-email-yuzhao@google.com>
Hello Yu!
On Fri, Mar 21, 2014 at 03:50:31PM -0700, Yu Zhao wrote:
> This series of patches adds support to configure a cgroup to swap to a
> particular file by using control file memory.swapfile.
>
> A value of "default" in memory.swapfile indicates that this cgroup should
> use the default, system-wide, swap files. A value of "none" indicates that
> this cgroup should never swap. Other values are interpreted as the path
> to a private swap file that can only be used by the owner (and its children).
>
> The swap file has to be created and swapon() has to be done on it with
> SWAP_FLAG_PRIVATE, before it can be used. This flag ensures that the swap
> file is private and does not get used by others.
>
> Jamie Liu (1):
> swap: do not store private swap files on swap_list
>
> Suleiman Souhlal (2):
> mm/swap: support per memory cgroup swapfiles
> swap: Increase the maximum number of swap files to 8192.
>
> Documentation/cgroups/memory.txt | 15 ++
> arch/x86/include/asm/pgtable_64.h | 63 ++++++--
> include/linux/memcontrol.h | 2 +
> include/linux/swap.h | 45 +++---
> mm/memcontrol.c | 76 ++++++++++
> mm/memory.c | 3 +-
> mm/shmem.c | 2 +-
> mm/swap_state.c | 2 +-
> mm/swapfile.c | 307 +++++++++++++++++++++++++++++++-------
> mm/vmscan.c | 2 +-
> 10 files changed, 423 insertions(+), 94 deletions(-)
For feature patches like this, please include a rationale. What is
this functionality good for, and who is going to use this?
--
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>
prev parent reply other threads:[~2014-03-22 15:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-21 22:50 Yu Zhao
2014-03-21 22:50 ` [PATCH 1/3] mm/swap: support per memory cgroup swapfiles Yu Zhao
2014-03-21 22:50 ` [PATCH 2/3] swap: do not store private swap files on swap_list Yu Zhao
2014-03-21 22:50 ` [PATCH 3/3] swap: Increase the maximum number of swap files to 8192 Yu Zhao
2014-03-22 15:43 ` Johannes Weiner [this message]
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=20140322154324.GK4407@cmpxchg.org \
--to=hannes@cmpxchg.org \
--cc=cgroups@vger.kernel.org \
--cc=jamieliu@google.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=suleiman@google.com \
--cc=x86@kernel.org \
--cc=yuzhao@google.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