On Sat, Feb 5, 2022 at 4:00 PM Sam Varshavchik <mrsam(a)courier-mta.com> wrote:
I noticed that dnf update stuck for a while in the
"Cleanup" phase of the
breeze-icon-theme package.
At the time this was taken: it spent 10 minutes with the CPU pegged at 100%,
and it eventually finished at about the 11 and a half minute mark, and
completed the rest of the update:
Tasks: 330 total, 2 running, 324 sleeping, 0 stopped, 4 zombie
%Cpu(s): 8.8 us, 3.6 sy, 0.0 ni, 87.4 id, 0.0 wa, 0.1 hi, 0.0 si, 0.0 st
MiB Mem : 16002.0 total, 4592.0 free, 1188.6 used, 10221.4 buff/cache
MiB Swap: 1024.0 total, 966.4 free, 57.6 used. 14398.6 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
185190 root 20 0 563752 217788 31884 R 98.7 1.3 10:40.80 dnf
strace was showing that this was reading and writing to
/var/lib/rpm/rpmdb.sqlite-wal which, here, is about 240mb in size.
/var/lib/rpm/rpmdb.sqlite was 256mb (there's a lot of junk on this box due
to its history).
rpm --rebuilddb removed rpmdb.sqlite-wal, and shrunk rpmdb.qlite to 128mb.
The breeze-icon-theme package installs 17513 files. I guess I'll have to
wait until this package gets another update and see if the issue is with rpm
grinding down on such a large package, or sqlite dbs accumulating cruft over
time.
That sounds like:
https://bugzilla.redhat.com/show_bug.cgi?id=2048168
Fixed by:
https://bodhi.fedoraproject.org/updates/FEDORA-2022-a9a84f2456
--
Ondrej Mosnacek
Software Engineer, Linux Security - SELinux kernel
Red Hat, Inc.