RPM Community Forums

Mailing List Message of <rpm-devel>

Re: size of db_* files in lib/rpm

From: Peter Kalbus <peter.kalbus@gmx.de>
Date: Mon 28 Jan 2008 - 08:07:41 CET
Message-Id: <D7356407-26C2-4603-BE8A-452115232D9A@gmx.de>

Am 28.01.2008 um 00:37 schrieb Jeff Johnson:

>
> On Jan 27, 2008, at 6:12 PM, Peter Kalbus wrote:
>
>> one of the last steps towards the qnx port, is to get a *.tgz  
>> binary package prepared.
>>
>> PLIST file is created and .tgz filled.
>>
>> but i wonder the size of the file: about 7.5 mbyte
>>
>> looking a little inside, i detected, that a lot is coming from db_*  
>> files from lib/rpm
>>
>
> Yes.
>
>> suprising is, that all are nearly the same size as if they have a  
>> common big part and same small add ons
>>
>> are my ideas right?
>
> Yes, the executables are partially statically linked,
> leading to multiple copies of -ldb, one for each utility.
>
>>
>> can it be changed to save space?
>>
>
> You can do whatever you wish.
>
>> we' will use the system for an embedded system. we're know fighting  
>> for every byte, but 7.5 mbyte is at least critical.
>>
>
> On embedded, you can likely eliminate all the db_* utilities.
>
> Of course when something breaks, you will be flying blind.
>
> db_stat is useful for diagnosing locking problems.
> db_verify is useful if you need to check that the rpmdb is intact.
> db_dump/db_load are necessary to convert with possible format changes.
>

okay, that makes sence.
are these utility the same for berkeley db and sqlite databases  
(including both abstractions) or only neded for berkeley db versions?

-piet


> The other db_utilities are less useful.
>
> There is also tools/db*tool.c that uses one copy of
> the library and uses argv[0] for selecting the db utility.
>
> 73 de Jeff
> ______________________________________________________________________
> RPM Package Manager                                    http://rpm5.org
> Developer Communication List                        rpm-devel@rpm5.org
Received on Mon Jan 28 08:07:44 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.