Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

RFC: improve dpkg-scanpackages performance with cached md5..

 
   Soft32 Home -> Linux2 Arch -> PacKaGe RSS
Next:  I am on vacation and will return July 4th  
Author Message
Michael Burian

External


Since: Jun 18, 2007
Posts: 1



(Msg. 1) Posted: Sun Jun 17, 2007 7:10 pm
Post subject: RFC: improve dpkg-scanpackages performance with cached md5sums
Archived from groups: linux>debian>maint>dpkg (more info?)

Problem:

Creating Packages.gz with dpkg-scanpackages takes lot's of time for
large repositories.

The main reasons why it is so slow is that all checksums of all
packages, even those that did not change from the previous run, are
recalculated every time.

Solution:

I've extended dpkg-scanpackages to accept a "--md5cache" | "-5" command
line option that enables caching and reusing of md5sums.

When not used one ends up with stock dpkg-scanpackages behavior where
all checksum are recalculated every time. Else md5sums of scanned
packages are cached on the first run and reused on successive runs.

With cached md5sums, the time to create Packages.gz for my private
repository (~600MB) dropped from over 1 minute to about 7 seconds on a
PII/400Mhz.

Would it make sense to include such a feature into official
dpkg-scanpackages?


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org
Back to top
Login to vote
Goswin von Brederlow

External


Since: Nov 20, 2006
Posts: 176



(Msg. 2) Posted: Mon Jun 18, 2007 5:40 am
Post subject: Re: RFC: improve dpkg-scanpackages performance with cached md5sums [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Michael Burian <michael.burian DeleteThis @sbg.at> writes:

> Problem:
>
> Creating Packages.gz with dpkg-scanpackages takes lot's of time for
> large repositories.
>
> The main reasons why it is so slow is that all checksums of all
> packages, even those that did not change from the previous run, are
> recalculated every time.
>
> Solution:
>
> I've extended dpkg-scanpackages to accept a "--md5cache" | "-5"
> command line option that enables caching and reusing of md5sums.
>
> When not used one ends up with stock dpkg-scanpackages behavior where
> all checksum are recalculated every time. Else md5sums of scanned
> packages are cached on the first run and reused on successive runs.
>
> With cached md5sums, the time to create Packages.gz for my private
> repository (~600MB) dropped from over 1 minute to about 7 seconds on a
> PII/400Mhz.
>
> Would it make sense to include such a feature into official
> dpkg-scanpackages?

Solution: use apt-ftparchive.

apt-ftparchive does exactly what you need and works for multiple
distributions and suites. It is that the official repositories use.

MfG
Goswin


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST DeleteThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster DeleteThis @lists.debian.org
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Bug#402860: hdparm: 'cached reads' performance twice as fa.. - Package: hdparm Version: 6.9-1 Severity: normal Hi, This is the output of hdparm -tT /dev/sda: Timing cached reads...

Bug#400336: dpkg-dev: [dpkg-source] Improve "unrepresentab.. - Package: dpkg-dev Version: 1.13.24 Severity: normal During the build process there may appear message: dpkg-source:...

How to improve video performance? - Hi, I have a not too recent computer (850MHz AMD Duron with a 64KB Cache & 256 RAM) which I use to watch movies in...

Bug#401402: Please enhance dpkg to also list files in /var.. - Package: dpkg Version: 1.13.24 Severity: wishlist I still find dpkg useful and would like to humbly suggest adding an...

Bug#416437: dpkg-dev: dpkg-buildpackage asks for key passp.. - Package: dpkg-dev Version: 1.13.25 Severity: minor When you try --help switch you will get something like this: $..

Bug#418170: apt-cacher: would be nice to remove old cached.. - Package: apt-cacher Version: 1.5.3 Severity: wishlist Running apt-cacher for amd64 and i386 unstable is currently..
       Soft32 Home -> Linux2 Arch -> PacKaGe All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
 Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]