[Pkg-utopia-maintainers] Bug#1052466: OOM killed

Philipp Marek philipp at marek.priv.at
Fri Sep 22 16:07:35 BST 2023


Package: pipewire
Version: 0.3.80-2
Severity: normal
X-Debbugs-Cc: philipp at marek.priv.at

I just got my pipewire process OOM killed:

    [62615.563546] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/user at 1000.service/session.slice/pipewire.service,task=pipewire,pid=2550,uid=1000
    [62615.563573] Out of memory: Killed process 2550 (pipewire) total-vm:22028128kB, anon-rss:21793560kB, file-rss:3972kB, shmem-rss:1204kB, UID:1000 pgtables:42860kB oom_score_adj:200

The interesting part is that the process is started with a user-account,
but the ulimits set via /etc/security/limits.conf on this account 
(respectively all, because of using "*" as domain there) are not used:


    $ cat /proc/159204/limits
    Limit                     Soft Limit           Hard Limit           Units
    Max cpu time              unlimited            unlimited            seconds
    Max file size             unlimited            unlimited            bytes
    Max data size             3379200000           3891200000           bytes
    Max stack size            unlimited            unlimited            bytes
    Max core file size        0                    unlimited            bytes
    Max resident set          3379200000           3993600000           bytes
    Max processes             127626               127626               processes
    Max open files            1024                 1048576              files
    Max locked memory         4192755712           4192755712           bytes
    Max address space         327680000000         337920000000         bytes
    Max file locks            unlimited            unlimited            locks
    Max pending signals       127626               127626               signals
    Max msgqueue size         819200               819200               bytes
    Max nice priority         0                    0
    Max realtime priority     95                   95
    Max realtime timeout      200000               200000               us

    $ ulimit -aH
    real-time non-blocking time  (microseconds, -R) unlimited
    core file size              (blocks, -c) unlimited
    data seg size               (kbytes, -d) 3800000
    scheduling priority                 (-e) 0
    file size                   (blocks, -f) unlimited
    pending signals                     (-i) 127626
    max locked memory           (kbytes, -l) 4094488
    max memory size             (kbytes, -m) 3900000
    open files                          (-n) 1048576
    pipe size                (512 bytes, -p) 8
    POSIX message queues         (bytes, -q) 819200
    real-time priority                  (-r) 95
    stack size                  (kbytes, -s) unlimited
    cpu time                   (seconds, -t) unlimited
    max user processes                  (-u) 127626
    virtual memory              (kbytes, -v) 330000000
    file locks                          (-x) unlimited

Please have at least /usr/lib/systemd/user/pipewire.service use some
limits to avoid running-away memory allocations -- it's quite boring
to wait for the OOM kill.


The root cause isn't quite clear - I used qpwgraph to connect the 
microphone to the speaker output, but there's nothing in the logs
that would help diagnose any further.


Thanks!


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.5.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8), LANGUAGE=de_AT:de
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages pipewire depends on:
ii  adduser                  3.137
ii  init-system-helpers      1.65.2
ii  libpipewire-0.3-modules  0.3.80-2
ii  pipewire-bin             0.3.80-2

pipewire recommends no packages.

pipewire suggests no packages.

-- no debconf information

-- debsums errors found:
debsums: can't check pipewire:amd64 file /usr/share/doc/pipewire/NEWS.gz (Wide character in subroutine entry)
debsums: can't check pipewire:amd64 file /usr/share/doc/pipewire/README.Debian.gz (Wide character in subroutine entry)
debsums: can't check pipewire:amd64 file /usr/share/doc/pipewire/changelog.Debian.gz (Wide character in subroutine entry)



More information about the Pkg-utopia-maintainers mailing list