Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #184162
| From | Dejan Jocic <jodejka@gmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: memory.limit_in_bytes: systemd vs lxc |
| Date | 2017-07-24 10:10 +0200 |
| Message-ID | <u6GBc-2ba-9@gated-at.bofh.it> (permalink) |
| References | <u6FF8-1BF-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 24-07-17, Harald Dunkel wrote: > Hi folks, > > I have to restrict memory.limit_in_bytes to 16GByte for my LXC > containers. Problem: The containers based on Stretch and systemd > show > > % for i in $(find /sys/fs/cgroup/memory/lxc/lxc1 -name memory.limit_in_bytes); do \ > echo $i $(cat $i) \ > done | column -t > /sys/fs/cgroup/memory/lxc/lxc1/memory.limit_in_bytes 17179869184 > /sys/fs/cgroup/memory/lxc/lxc1/user.slice/memory.limit_in_bytes 9223372036854771712 > /sys/fs/cgroup/memory/lxc/lxc1/init.scope/memory.limit_in_bytes 9223372036854771712 > /sys/fs/cgroup/memory/lxc/lxc1/system.slice/memory.limit_in_bytes 9223372036854771712 > > Apparently systemd ignores the restricted memory. How can I tell > systemd to keep the limits? > > > Every helpful comment is highly appreciated > Harri > Never did it myself, but perhaps this can help you: https://www.freedesktop.org/software/systemd/man/systemd.exec.html#LimitCPU=
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
memory.limit_in_bytes: systemd vs lxc Harald Dunkel <harald.dunkel@aixigo.de> - 2017-07-24 09:10 +0200
Re: memory.limit_in_bytes: systemd vs lxc Dejan Jocic <jodejka@gmail.com> - 2017-07-24 10:10 +0200
Re: memory.limit_in_bytes: systemd vs lxc Harald Dunkel <harald.dunkel@aixigo.de> - 2017-07-25 10:10 +0200
Re: memory.limit_in_bytes: systemd vs lxc Dejan Jocic <jodejka@gmail.com> - 2017-07-25 10:40 +0200
Re: memory.limit_in_bytes: systemd vs lxc Fungi4All <fungilife@protonmail.com> - 2017-07-25 15:30 +0200
csiph-web