[systemd-devel] Restricting swap usage for a process managed via systemd

Debraj Manna subharaj.manna at gmail.com
Sat Jul 10 04:56:43 UTC 2021


Thanks Michal it worked.

On Thu, 8 Jul 2021, 21:35 Michal Koutný, <mkoutny at suse.com> wrote:

> 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 --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20210710/6c5c511f/attachment.htm>


More information about the systemd-devel mailing list