[systemd-devel] systemd-cgls - Memory overflow

Kay Sievers kay at vrfy.org
Sun May 13 16:17:10 PDT 2012


On Thu, May 10, 2012 at 2:45 PM, Sven Anders <anders at anduras.de> wrote:
> I'm experiencing a problem with systemd-cgls while testing systemd.
>
> I run systemd for tests on a small KVM VM with ~700MB RAM and no swap.
>
> If I execute the "systemd-cgls" command, I see the tree but without
> the command lines of the executables. I only see "n/a".

I can run this in a 256 MB KVM just fine.

> open("/proc/300/cmdline", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 7
> mmap2(NULL, 1075859456, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cann
> ot allocate memory)

Looks like this here:

open("/sys/fs/cgroup/systemd/system/systemd-udev.service/cgroup.procs",
O_RDONLY|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x7f53e296a000
read(6, "72\n", 4096)                   = 3

Kay


More information about the systemd-devel mailing list