Bug 150283

Summary: upgrade script slowness
Product: [Fedora] Fedora Reporter: Need Real Name <5bvm8sv02>
Component: kernelAssignee: Dave Jones <davej>
Status: CLOSED NEXTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 3CC: pfrields, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-03-04 09:23:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
part of strace of the script. none

Description Need Real Name 2005-03-04 09:06:03 UTC
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):
kernel-2.6.10-1.770_FC3

How reproducible:
Didn't try

Steps to Reproduce:
1. Upgrade your kernel
 

Actual Results:  It took minutes to continue.

Additional info:

Comment 1 Need Real Name 2005-03-04 09:07:55 UTC
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
be fast.

Comment 2 Dave Jones 2005-03-04 09:23:21 UTC
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.