Bug 600716

Summary: USB-Flash Drive yum update very slow
Product: [Fedora] Fedora Reporter: Alice K <alice_knoll_drouin>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: low    
Version: 13CC: ffesti, james.antill, jnovy, maxamillion, pmatilai, tim.lauridsen
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: 2010-06-07 06:33:49 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
System Data on smolt, Xorg and dmesg none

Description Alice K 2010-06-05 18:12:42 UTC
Created attachment 421472 [details]
System Data on smolt, Xorg and dmesg

Description of problem:
'sudo yum update' to update packages onto the USB-Flash Drive.  Downloading speed of packages were normal.  Update and install each package may take more than 90 seconds.  Cleanup each package may take more than 30 seconds.  A typical update of 50 packages may take more than one and a half hour.



Version-Release number of selected component (if applicable):
Updating packages for Fedora 11, Fedora 12 and Fedora 13 of the installed USB-Flash Drive are all very slow.



How reproducible:
Everytime



Steps to Reproduce:
1.  Boot up Fedora 13 installed on the USB-Flash Drive
2.  sudo yum update
3.
  


Actual results:
The update progress indicator for each package appeared to the very slow and move very slowly.



Expected results:
As for updating packages installed on Hard Disk, the progress indicator was advancing much faster, even for a 80 MB package like the openoffice-core.



Additional info:

Comment 1 James Antill 2010-06-05 21:12:39 UTC
My guess is that the USB flash disk just doesn't like fsync() calls or something. But maybe Panu will be able to give some more advise.

Comment 2 seth vidal 2010-06-05 22:35:05 UTC
If you download a package you need to update and run:


rpm -Uvh somepkg.rpm

is it also slow?

Comment 3 Panu Matilainen 2010-06-07 06:33:49 UTC
Yeah, flash drives seem to hate fdatasync(). Adding "nofsync" option to rpm configuration should help somewhat, eg something like this:

echo "%__dbi_other %{?__dbi_cdb} nofsync" > /etc/rpm/macros.dbi

*** This bug has been marked as a duplicate of bug 529948 ***