[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#915139: linux-image-4.18.0-2-amd64: Please set CONFIG_MEMCG_SWAP_ENABLED



Hi,

On Fri, Nov 30, 2018 at 10:59:06PM +0100, Mikhail Morfikov wrote:
> Package: src:linux
> Version: 4.18.10-2+b1
> Severity: wishlist
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> 
> Dear Maintainer,
> 
> Some processes in my system need to be limited when it comes to memory
> consumption. I wanted to use cgroup v1 along with tools from the cgroup-tools
> package to achieve the goal. Everything works well, but the limits can be
> applied to RAM only. My machine has also a SWAP partition, and in such case,
> when the limit is reached, kernel starts to use SWAP, and it does that without
> any control. For instance, if I've set a limit of 1GiB of memory for firefox,
> after reaching this limit, all the data would go to SWAP and fill it up slowing
> also the system down. There's an option that could prevent this from happening:
> CONFIG_MEMCG_SWAP_ENABLED , but it's not set and all the memory.memsw.* files
> under /sys/fs/cgroup/memory/ don't exist. Could you set this option?

This is not supported anymore since upstream 5.8-rc1, 2d1c498072de
("mm: memcontrol: make swap tracking an integral part of memory
control"), so closing the bugreport.

Regards,
Salvatore


Reply to: