Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1131151
| From | Shengjing Zhu <zhsj@debian.org> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#1026793: docker.io: --memory-swap not enforced on systemd cgroup driver |
| Date | 2023-01-01 20:30 +0100 |
| Message-ID | <FJcbT-eTe0-13@gated-at.bofh.it> (permalink) |
| References | <FF2Xv-c8V2-5@gated-at.bofh.it> <FF2Xv-c8V2-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi, On Wed, Dec 21, 2022 at 4:45 PM Saj Goonatilleke <saj@discourse.org> wrote: > --- 8< --- > # systemctl show docker-container-id.scope | awk -F = '$1 ~ /Memory.*Max/' > MemoryMax=25165824 > MemorySwapMax=infinity > --- >8 --- > > From the cgroup: > > --- 8< --- > # cat memory.swap.max > max > > # cat memory.current memory.swap.current > 22798336 > 218423296 > --- >8 --- > > I would expect memory.swap.max to read zero (swap - limit), > and likewise for memory.swap.current. I can't reproduce it on unstable, with docker/20.10.21+dfsg1, containerd/1.6.14~ds1, runc/1.1.4+ds1. $ docker run --rm --memory 1G --memory-swap 1G -it ubuntu:18.04 bash root@65cc55e0f5f8:/# $ systemctl show docker-65cc55e0f5f82c23bed45a8451c552650d7eebee182db991ecd855454fafaab7.scope |grep MemorySwapMax= MemorySwapMax=infinity $ cat /sys/fs/cgroup/system.slice/docker-65cc55e0f5f82c23bed45a8451c552650d7eebee182db991ecd855454fafaab7.scope/memory.swap.max 0 The systemd property seems wrong, but the cgroup value is right. So I think it's not a big deal. I'll try to see if I can reproduce it on bullseye later. -- Shengjing Zhu
Back to linux.debian.bugs.dist | Previous | Next — Next in thread | Find similar | Unroll thread
Bug#1026793: docker.io: --memory-swap not enforced on systemd cgroup driver Shengjing Zhu <zhsj@debian.org> - 2023-01-01 20:30 +0100
Bug#1026793: docker.io: --memory-swap not enforced on systemd cgroup driver Shengjing Zhu <zhsj@debian.org> - 2023-01-01 20:50 +0100
Bug#1026793: docker.io: --memory-swap not enforced on systemd cgroup driver Saj Goonatilleke <saj@discourse.org> - 2023-01-06 21:00 +0100
Bug#1026793: docker.io: --memory-swap not enforced on systemd cgroup driver Saj Goonatilleke <saj@discourse.org> - 2023-01-11 17:10 +0100
csiph-web