Red Hat Bugzilla – Bug 150283
upgrade script slowness
Last modified: 2015-01-04 17:17:21 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050224 Firefox/1.0.1 Fedora/1.0.1-1.3.1
Description of problem:
One of the scripts that run during the upgrade is very slow. Running strace reveals why.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Upgrade your kernel
Actual Results: It took minutes to continue.
Created attachment 111654 [details]
part of strace of the script.
Notice how it is reading the characters one at a time. That is never going to
the reading 1 char at a time isn't the problem (thats likely bash, and its
reading from stdin). The problem is that theres just so many files to checksum,
as you have so many kernels installed (The runtime increases proportionatly
depending on how many are installed).
For FC4 this has been 'fixed' to some extent by moving a lot of the files that
were in the main package to a -devel package (which you wouldn't install unless
you need it, and is removable after you're done with it).
The problem is always going to be there to some extent though if you have a lot
of kernels installed.