RPM needs to go on a diet.

Sam Varshavchik mrsam at courier-mta.com
Wed Feb 16 12:13:04 UTC 2005

Jeff Pitman writes:

> On Wednesday 16 February 2005 10:34, Sam Varshavchik wrote:
>> Yes, these are large packages that are being removed.  No, even with
>> all that, taking six minutes, a dual Opteron box, with SCSI RAID, is
>> unreasonable.
> Check strace, %preun, %post, %postun, and other related trigger 
> operations and post your results where the bottlenecks are.  Could be 
> rpm, could be db, could be scriptlets .. who knows.

It's neither of these.  According to top, all the CPU was being charged to 
the rpm process alone.  The kernel package's %preun consists of:

/sbin/modprobe loop 2> /dev/null > /dev/null  || :
[ -x /sbin/new-kernel-pkg ] && /sbin/new-kernel-pkg --rminitrd --rmmoddep --remove 2.6.10-1.12_FC2

Which is nothing.

rpm was eating CPU like there's no tomorrow.  strace was showing lots of 
read/writes, likely its database.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20050216/4f713c34/attachment.sig>

More information about the fedora-devel-list mailing list