Mailinglist Archive: opensuse-factory (602 mails)

< Previous Next >
Re: [opensuse-factory] Re: backup-rpmdb.service needed? (was Re: Raspi3 boot times)
  • From: Brüns, Stefan <Stefan.Bruens@xxxxxxxxxxxxxx>
  • Date: Wed, 6 Feb 2019 18:37:02 +0000
  • Message-id: <14371490.XEC1qN8nil@sbruens-linux.lcs.intern>
On Dienstag, 29. Januar 2019 13:08:53 CET Michael Schroeder wrote:
On Tue, Jan 29, 2019 at 01:05:46PM +0100, Jan Engelhardt wrote:
Yeah how did we get to a 100MB-sized Packages file anyway? RPM
databases never seemed so big. Individual records, believing
that is what db48_dump shows, are often in excess of 20 KB.

It's simply the rpm headers. If they seem too big it's probably
because we keep to many changelog entries (but that's just
guessing, somebody should check the header contents).


My Tumbleweed 20190115 went down from ~90 MByte to ~50 MByte changelogs when
updating to 20190205.

$> rpm -q rpm --changelog | head
* So Jan 13 2019 Dirk Mueller <dmueller@xxxxxxxx>
- update macrosin.diff: Set cutoff date to SLE12 GA to remove
changelogs from 2009-2014 from the generated RPMs.

Changelog size determined by
$> rpm -qa --changelog | wc -c

Another waste of of space is probably the %{FILECLASS} attribute, which stores
the output of "file" verbatim for each file.

Some gems:
- "directory" stored for directores (implicit by file mode)

- truetype fonts: e.g.
TrueType Font data, 17 tables, 1st "GDEF", 30 names, Macintosh, Copyright (c)
2010-2013 by tyPoland Lukasz Dziedzic with Reserved Font Name "Carlito".

- JPEGs: e.g.
JPEG image data, JFIF standard 1.01, resolution (DPCM), density 50x50, segment
length 16, baseline, precision 8, 5120x3200, components 3

- Executable/shared libs (note the BuildID):
ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked,
BuildID[sha1]=76ee472fd428c969018f80369163acaf9ed019bc, stripped

- Symlinks pointing into the buildsystem?:
"cannot open `/home/abuild/rpmbuild/BUILDROOT/llvm7-7.0.1-1.1.x86_64/etc/
alternatives/FileCheck.1.gz' (No such file or directory)"

The fileclass attribute alone amounts to 10 MByte (of ~110 MByte):
$> rpm -qa --queryformat '[%{FILECLASS}\n]\n' | wc -c
274963 1327919 10743024

Kind regards,

To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages