RPM Community Forums

Mailing List Message of <rpm-devel>

Re: Eliminating --rebuilddb by doing lazy secondary index re-creation

From: Jeff Johnson <n3npq@mac.com>
Date: Wed 09 Dec 2009 - 05:10:26 CET
Message-id: <2744AC80-8C87-4945-A34D-9875AFACBCC4@mac.com>

On Dec 8, 2009, at 4:26 PM, Jeff Johnson wrote:

> 
> I'll leave the existing --rebuilddb as "opt-in" with a compile time toggle
> until, say, Friday 12/11/2009 for comments before
> hauling out the trash from rpmdb/rpmdb.c.
> 

Here's wallclock measurements for 1407 packages and inplace --rebuilddb:

	# /usr/bin/time rpm --rebuilddb -vv
	5.91user 6.16system 0:21.33elapsed 56%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+7519512outputs
	(0major+77101minor)pagefaults 0swaps 

Sadly, multi-threaded (w -fopenmp) --rebuilddb is not possible. Otherwise
I'l like cut 21.33 secs by the no. of cpu's.

The guts of rpmdbRebuild() will move to rpmtsRebuildDB(), and rpmdbRebuild() will
be eliminated when I haul out the trash on Friday.

Not sure its worth waiting until Friday trash collection, but I will.

73 de Jeff
Received on Wed Dec 9 05:10:45 2009
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.