Bug#915139: linux-image-4.18.0-2-amd64: Please set CONFIG_MEMCG_SWAP_ENABLED
- To: Mikhail Morfikov <mmorfikov@gmail.com>, 915139@bugs.debian.org
- Cc: 915139-done@bugs.debian.org
- Subject: Bug#915139: linux-image-4.18.0-2-amd64: Please set CONFIG_MEMCG_SWAP_ENABLED
- From: Salvatore Bonaccorso <carnil@debian.org>
- Date: Fri, 23 Apr 2021 13:49:01 +0200
- Message-id: <YIK0LWWp/T/XF99D@eldamar.lan>
- Reply-to: Salvatore Bonaccorso <carnil@debian.org>, 915139@bugs.debian.org
- In-reply-to: <154361514645.12667.4363824781729026160.reportbug@morfikownia.mhouse>
- References: <154361514645.12667.4363824781729026160.reportbug@morfikownia.mhouse> <154361514645.12667.4363824781729026160.reportbug@morfikownia.mhouse>
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: