UID of an oom killed process is not shown in an oom kill event message
Issue
- In the event of an oom kill, useful information about the killed process is printed to dmesg, however, the UID of the killed process is missing.
# uname -r
4.18.0-147.0.3.el8_1.x86_64
# dmesg | tail -n 2
[ 141.292069] Out of memory: Killed process 1295 (memhog) total-vm:2657344kB, anon-rss:2653200kB, file-rss:4kB, shmem-rss:0kB
[ 141.374892] oom_reaper: reaped process 1295 (memhog), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB
- An oom kill event message on the RHEL-6 system contains the UID of the killed process.
# uname -r
2.6.32-754.3.5.el6.x86_64
# dmesg | tail -n 2
Out of memory: Kill process 1221 (rsyslogd) score 1 or sacrifice child
Killed process 1221, UID 0, (rsyslogd) total-vm:249080kB, anon-rss:544kB, file-rss:1100kB
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- kernel
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.