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: Mon 14 Dec 2009 - 04:57:06 CET
Message-id: <8D0453CA-2709-4EB4-A186-5A274A2DBA79@mac.com>

On Dec 13, 2009, at 10:04 PM, Jeff Johnson wrote:

>
> Well --rebuilddb is now rewritten, and rpmdbRebuild() is now called  
> rpmtsRebuildDB().
>

Ah, I forgot the all important --rebuilddb benchmark:
	$ sudo /usr/bin/time rpm --rebuilddb
	5.50user 10.53system 0:24.90elapsed 64%CPU (0avgtext+0avgdata  
0maxresident)k
	7672inputs+6370160outputs (1major+86278minor)pagefaults 0swaps
	$ rpm -qa | wc -l
	1426

And here's the shell script that will eventually replace --rebuilddb:
	$ sudo /usr/bin/time sh t
	0.04user 0.17system 0:00.47elapsed 44%CPU (0avgtext+0avgdata  
0maxresident)k
	0inputs+0outputs (0major+8574minor)pagefaults 0swaps

I'll figger the db_recover -t CCYYMMDDhhmm.ss command in the next  
version
of the script.

73 de Jeff
Received on Mon Dec 14 04:57:30 2009
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.