Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 909186

Summary: RPM has an excessive HDD usage
Product: Red Hat Enterprise Linux 6 Reporter: Artem S. Tashkinov <aros>
Component: rpmAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.3CC: erecio, ffesti, james.antill, jzeleny, pmatilai
Target Milestone: rc   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-04 13:29:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Artem S. Tashkinov 2013-02-08 13:14:48 UTC
Description of problem:

When I do 'yum update' yum rebuilds RPM 'Packages' database many times over, writing out up to 800MB (!) of data to the disk (whereas my 'Packages' file weighs just 35MB). That's insane.


Version-Release number of selected component (if applicable):

yum-3.2.29-30.el6.noarch
rpm-4.8.0-27.el6.i686


How reproducible: Always, specially if I install/update Google Chrome


Additional info: I've tried to rebuild the RPM database several times, but it had no effect whatsoever.

I can upload my entire /var/lib/rpm if anyone's interested (a 10MB tar.xz archive).

Comment 2 Artem S. Tashkinov 2013-02-09 14:41:58 UTC
OK, this is getting ridiculous.

I've just run yum search dhcp and according to iotop, this operation alone has made yum write out over 400MB of data to the disk.

Please, fix this insanity.

Comment 3 Artem S. Tashkinov 2013-02-09 14:43:48 UTC
As a temporary workaround I've resorted to

1) cp -a /var/lib/rpm /tmp (tmp is tmpfs)
2) do everything I need to with yum
3) cp -a /tmp/rpm /var/lib

Comment 4 James Antill 2013-02-11 16:12:51 UTC
Can you at least save /var/lib/rpm somewhere it won't go away.

If you can get an strace/ltrace that might be helpful.

Also if you manually do: "rpm --rebuilddb" ... does that solve the problem?

Comment 5 Artem S. Tashkinov 2013-02-12 06:17:21 UTC
(In reply to comment #4)

I mentioned in the original message that the rebuilding of the RPM database hadn't helped.

strace shows billions of write()

Anyways, here's my entire RPM db for your consideration: ompldr.org/vaGZzbQ (sha1sum: c458f9a089e0c2f946307eec3c337a0381e4e51e)

I've changed the bug report title, since `rpm -Uvh package.rpm` causes the same problem.

Comment 6 Florian Festi 2013-04-04 13:29:30 UTC
You are most likely not measuring correctly. Even if you would measure correctly the only way around this behaviour would be replacing the rpmdb. Work like this has just started upstream but is far from being finished. Even if upstream ends up replacing the current rpmdb implementation backporting such massive changed to RHEL6 is completely out of question. Closing.