lkml.org 
[lkml]   [2014]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/3] Per cgroup swap file support
Date
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(-)

--
1.9.1.423.g4596e3a



\
 
 \ /
  Last update: 2014-03-22 00:21    [W:0.143 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site