On 22.07.2022 20:54, Moby wrote:
From what I gathered from the link provided by Andrei (https://github.com/lsof-org/lsof/blob/bcc125b7c2a160da019dd8089b999bc6d34866...), zypper ps may have issues if the device or inode or both of a file do not match. I chased one of the files (/usr/lib64/libaudit.so.1.0.0) and find that the device and inode match between /proc/1270/maps and stat.
No, they do not.
cat /proc/1270/maps ... 7f671edd2000-7f671edd6000 r--p 00000000 00:20>> 39055104 /usr/lib64/libaudit.so.1.0.0 ...
stat /usr/lib64/libaudit.so.1.0.0 File: /usr/lib64/libaudit.so.1.0.0 Size: 116800 Blocks: 232 IO Block: 4096 regular file Device: 0,35 Inode: 39055104 Links: 1
So this is device 0,32 in /proc/.../maps and device 0,35 in stat. Which kernel and root filesystem are you using (more precisely - what filesystem where /usr/lib64 is located)? Are you using vanilla or upstream kernel instead of openSUSE kernel? bor@tw:~> uname -a Linux tw 5.18.9-2-vanilla #1 SMP PREEMPT_DYNAMIC Wed Jul 6 05:57:32 UTC 2022 (a7c5f9c) x86_64 x86_64 x86_64 GNU/Linux bor@tw:~> sudo zypper ps The following running processes use deleted files: PID | PPID | UID | User | Command | Service | Files -----+------+------+------------+-------------------------------+-----------------------+----------------------------------------------------------------------------------------------------- 1 | 0 | 0 | root | systemd | | /usr/lib/systemd/libsystemd-shared-251.so (path dev=0,36) | | | | | | /usr/lib64/libc.so.6 (path dev=0,36) ... bor@tw:~> sudo grep /usr/lib/systemd/libsystemd-shared-251.so /proc/1/maps 7fa29f5b4000-7fa29f623000 r--p 00000000 00:20 13359340 /usr/lib/systemd/libsystemd-shared-251.so ... bor@tw:~> stat /usr/lib/systemd/libsystemd-shared-251.so File: /usr/lib/systemd/libsystemd-shared-251.so Size: 3262064 Blocks: 6376 IO Block: 4096 regular file Device: 0,36 Inode: 13359340 Links: 1 ...