Saeshnikov / Linux-monitoring-utility

MIT License
2 stars 0 forks source link

prototype: Broken counting of unused packages #116

Closed denis-koptev closed 3 months ago

denis-koptev commented 3 months ago

Config:

root@platform-dev:/tmp/lmu# cat /etc/lmu/lmuConfig.yaml
scriptTime: 100
programTime: 3000
SyscallsFileName: "/etc/lmu/lmuSyscalls.yaml"
outputPath: "/tmp/lmu/out"
lsofBinPath: "/usr/sbin/lsof"
rpmBinPath: "/usr/bin/rpm"
bpftraceBinPath: "/usr/bin/bpftrace"
tmpPath: "/tmp/lmu/work"
tmpDelete: true
BPFTRACE_STRLEN : "128"
BPFTRACE_MAP_KEYS_MAX : "100000"
DirToIgnore:
  - /proc/
  - /dev/
  - /sys/

I ran lmu with the following command:

root@platform-dev:/tmp/lmu# lmu -T 30 -t 10 -tmpRM false

In parallel I ran the following command several times:

root@platform-dev:/# find /usr/bin -type f -exec cat {} > /dev/null \;

But in the end I see that all packages on my system are unused

root@platform-dev:/tmp/lmu# jq length out/result.json
1558
root@platform-dev:/tmp/lmu# rpm -qa | wc -l
1558