Bug 220614

Summary: RFE: improve start time of yum-updatesd
Product: [Fedora] Fedora Reporter: Thorsten Leemhuis <fedora>
Component: yumAssignee: Jeremy Katz <katzj>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: bos
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-05-03 01:26:20 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:
Bug Depends On:    
Bug Blocks: 150225    

Description Thorsten Leemhuis 2006-12-22 15:41:04 UTC
Description of problem:
I own a 2 1/2 year old laptop with Pentium M 1,5 GHz, 60 GB harddisk and ATI
Graphics. I the harddisk is quite slow, I know that, but it's normally fast
enough for normal use. But I noticed that yum-updatesd takes quite a while to
start due to the slow disk -- between 5 and 5,5 seconds round about. That's IMHO
far to much for a daemon that's started on boottime (thus I disabled it in between).

Version-Release number of selected component (if applicable):
yum-updatesd-3.0.1-2.fc6

How reproducible:
Always

Additional Informations:
[root@notebook ~]# time /etc/init.d/yum-updatesd start
Yum-Updatesd starten:                                      [  OK  ]

real    0m5.398s
user    0m0.514s
sys     0m0.126s
[root@notebook ~]# /etc/init.d/yum-updatesd stop
Yum-updatesd beenden:                                      [  OK  ]
[root@notebook ~]# time /etc/init.d/yum-updatesd start
Yum-Updatesd starten:                                      [  OK  ]

real    0m0.481s
user    0m0.263s
sys     0m0.051s
[root@notebook ~]#

Comment 1 Thorsten Leemhuis 2006-12-22 15:45:24 UTC
(In reply to comment #0)
> [root@notebook ~]# time /etc/init.d/yum-updatesd start

This first run was with cold cache ("echo 3 >/proc/sys/vm/drop_caches"). It's
probably a little bit faster during startup as some other things updatesd might
need are probably in the cache already, but it's not much faster afaics

Comment 2 Jeremy Katz 2007-01-03 16:58:47 UTC
Putting some dead simple timing, this is purely due to the various imports which
are done.  It looks like delaying imports until after we fork could cut the time
roughly in half

Comment 3 Bryan O'Sullivan 2007-04-27 03:56:13 UTC
This isn't just slow old hard disks; it's an issue on my spanking new desktop
and laptop systems, too.  yum-updatesd is the most visible component of boot
time :-(

Comment 4 Jeremy Katz 2007-05-03 01:26:20 UTC
Improved in yum CVS.

Time with cold cache on my laptop is now 2.8 seconds.  Cold cache to just start
the python interpreter and print hello world is 1.6 seconds.  So that seems
about as good as we're going to get.