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


_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]

Reply via email to