Commit 682fc25d authored by Liu Shixin's avatar Liu Shixin
Browse files

mm/swapfile: introduce per-memcg swapfile control

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I7CGGT


CVE: NA

--------------------------------

With memory.swapfile interface, the avail swap device can be limit for
memcg. The acceptable parameters are 'all', 'none' and valid swap device.
Usage:
	echo /dev/zram0 > memory.swapfile

If the swap device is offline, the swapfile will be fallback to 'none'.

Signed-off-by: default avatarLiu Shixin <liushixin2@huawei.com>
parent 5361bef3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment