I'll been putting up with very slow dnf update for a while.
strace showed that it was reading /var/lib/rpm/Packages 4KiB at a time.
My /var/lib/rpm/Packages is 118MiB so that takes a while on a hard disk
around 60s.
My desktop is i7 4GHz CPU 16GiB of ram.
Unless there is a way to configure DNF to use bigger reads this hack speeds it
up.
# cat /var/lib/rpm/* > /dev/null; dnf update --refresh
After the cat of the files Packages will be in kernel buffers and then dnf
runs in 1s-2s.
Do you want a bug report on this issue?
Barry
Show replies by thread