From: Karl Trygve Kalleberg <karltk@gentoo.org>
To: Todd Berman <tberman@gentoo.org>
Cc: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Idea for the portage maintainers - personal experiences with a .zip-db
Date: Tue, 13 Apr 2004 17:39:17 +0200 [thread overview]
Message-ID: <20040413153917.GD29957@gentoo.org> (raw)
In-Reply-To: <1081789396.2075.6.camel@localhost.localdomain>
[-- Attachment #1: Type: text/plain, Size: 2244 bytes --]
On Mon, Apr 12, 2004 at 01:03:18PM -0400, Todd Berman wrote:
>
> With compression I could understand, but without I don't think any speed
> difference would be noticeable. However, even with compression the
> operation should be fairly fast. zip is not like a tar.gz or tar.bz2,
> ie, you can read a file out of it and search through it fairly fast, and
> you don't have to uncompress the entire archive to get a single file.
About 1.5 years ago I hacked portage to store the /usr/portage (portdir)
in one .zip-file. At the time, du -h reported ~116MB for the portdir
tree. Zip, compressed with -9, resulted in a 16MB file.
I did two prinicpal tests
1) emerge --emptytree -up world with /var/cache/edb/dep
and
2) emerge --emptytree -up world without /var/cache/edb/dep
I also did a few emerges of selected packages.
All testing was done on a 100MHz K5 with 96MBs of RAM. There was no
noticeable speed drop in case (1) compared to a non-zipped version, most
probably thanks to the cache.
Case (2) was of course noticeably slower. In some cases, the >100MB
space gain my very well be worth it, on firewalls or older systems
(where we want to use a distcc).
Actual emerges were not a problem either. Uncompressing the relevant
ebuild file and its auxiliary files (the contents in files/) is too
quick to be measurable, even on this very slow test box, since
.zip-files are indexed.
I didn't get so far as to implement an alternative sync mechanism;
obviously rsync isn't ideal for this sort of stuff, perhaps xdeltas
would be better?
I did have a scheme in mind however, based on regular incremental
backups, that would insure only downloading the ebuilds that have
changed since last time (and the new ones), called a changeset.
Each changeset would be compressed in a .zip-file and served statically
over http, thus allowing one server to serve thousands instead of tens
of users at any one time (rsync requires a lot of server cpu power
compared to static file serving over http).
However, as this work was geared against gentoo-embedded, which is not a
bit dormant, and I haven't had any time to keep it current against
portage, it never fell into use:)
Kind regards,
Karl T
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-04-13 15:39 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-11 11:55 [gentoo-dev] Idea for the portage maintainers Tom St Denis
2004-04-12 10:45 ` Alexander Gretencord
2004-04-12 12:03 ` Tom St Denis
2004-04-12 12:23 ` Georgi Georgiev
2004-04-12 12:36 ` Tom St Denis
2004-04-12 14:18 ` N. Owen Gunden
2004-04-12 15:12 ` Troy Dack
2004-04-12 15:15 ` Jason Stubbs
2004-04-12 16:22 ` Andrew Gaffney
2004-04-12 16:23 ` Todd Berman
2004-04-12 16:59 ` Andrew Gaffney
2004-04-12 17:03 ` Todd Berman
2004-04-12 17:17 ` Andrew Gaffney
2004-04-12 17:39 ` Todd Berman
2004-04-13 1:04 ` Jason Stubbs
2004-04-13 3:35 ` Todd Berman
2004-04-13 15:39 ` Karl Trygve Kalleberg [this message]
2004-04-12 17:09 ` Tom St Denis
2004-04-12 17:19 ` Norberto Bensa
2004-04-12 17:21 ` Tom St Denis
2004-04-13 12:18 ` Chris Bainbridge
2004-04-13 16:12 ` Chris Bainbridge
2004-04-12 11:57 ` Senor Rodgman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040413153917.GD29957@gentoo.org \
--to=karltk@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
--cc=tberman@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox