[systemd-devel] Restricting swap usage for a process managed via systemd
Michal Koutný
mkoutny at suse.com
Thu Jul 8 16:05:10 UTC 2021
Hello Debraj.
On Thu, Jul 08, 2021 at 05:10:44PM +0530, Debraj Manna <subharaj.manna at gmail.com> wrote:
> >> Linux vrni-platform 4.15.0-143-generic #147-Ubuntu SMP Wed Apr 14 16:10:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
> [...]
> GRUB_CMDLINE_LINUX="audit=1 rootdelay=180 nousb net.ifnames=0 biosdevname=0
> fsck.mode=force fsck.repair=yes ipv6.disable=1
> systemd.unified_cgroup_hierarchy=1"
>
> Even after making these changes MemorySwapMax not taking into effect.
You need to add also swapaccount=1, swap accounting is enabled by
default only since kernel v5.8.
HTH,
Michal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20210708/451e34d1/attachment-0001.sig>
More information about the systemd-devel
mailing list