Re: [systemd-devel] MemoryLimit for user unit

2017-11-13 Thread Lennart Poettering
On So, 12.11.17 18:14, Stefan Schweter (ste...@schweter.it) wrote: > Hi systemd-users, > > I tried to add a memory limit for a user service unit (inspired by [1]), > it looks like: > > [Service] > # > MemoryAccounting=true > MemoryLimit=1G > > Now the problem is that the (user) service

Re: [systemd-devel] MemoryLimit for user unit

2017-11-12 Thread WaLyong Cho
On 2017년 11월 13일 09:53, Kai Krakow wrote: > Am Sun, 12 Nov 2017 18:14:38 +0100 > schrieb Stefan Schweter : > >> Hi systemd-users, >> >> I tried to add a memory limit for a user service unit (inspired by >> [1]), it looks like: >> >> [Service] >> # >> MemoryAccounting=true

Re: [systemd-devel] MemoryLimit for user unit

2017-11-12 Thread Kai Krakow
Am Sun, 12 Nov 2017 18:14:38 +0100 schrieb Stefan Schweter : > Hi systemd-users, > > I tried to add a memory limit for a user service unit (inspired by > [1]), it looks like: > > [Service] > # > MemoryAccounting=true > MemoryLimit=1G > > Now the problem is that the

[systemd-devel] MemoryLimit for user unit

2017-11-12 Thread Stefan Schweter
Hi systemd-users, I tried to add a memory limit for a user service unit (inspired by [1]), it looks like: [Service] # MemoryAccounting=true MemoryLimit=1G Now the problem is that the (user) service consumes more than 1G without being terminated. htop shows a memory consumption of 1.4 GB.