[Rpm-metadata] metadata list and discussion over tapas tonight
Joe Shaw
joe at ximian.com
Tue Aug 5 17:27:25 UTC 2003
On Tue, 2003-08-05 at 12:58, seth vidal wrote:
> I did a test of just a complete filelist from severn into a single file.
> 20M uncompressed with gzip -9 it's 1.5MB. Let's say the xml syntax
> information increases this by 500K - it's still 2MB.
> Not a lot to xfer or store.
Not on the Duke backbone, but it's pretty painful on high latency
connections. It's less of an issue for Red Carpet since we download
most of that data in the background, but it's probably not an efficient
transfer.
> > But I'm still not totally convinced it's the right way.
> > To me extracting the File info which may be needed for resolution
> > and putting then in the geberal packages description file is
> > the simpler way for 99.99% of the cases.
>
> geberal? I'm not sure I understand what you mean? Internally resolve the
> file dep w/i the repository and dump the file lists?
I think he meant "general". But yes, resolve the file deps internally
within the repository and list those provides/requires in the list of
provides/requires in the metadata file. We added this recently into Red
Carpet and it works nicely (certainly much better than the whitelisting
we were doing previously), although it does mean a larger repository
overhead. But I'd rather push the burden onto the server at file
generation time than onto every single client at dependency resolution
time.
> I'd be comfortable with that - if someone wants the whole description
> the various clients can grab the rpm header via the byte ranges and get
> the whole description - though I will admit doing some judicial
> file-size judgments would be useful here.
The descriptions are pretty small and would compress well. In our XML
metadata format, which contains the name, EVR, arch, summary,
description, dependency data (although not file lists), package sizes,
URLs, and a few other minor things that Peter mentioned earlier, all of
Red Hat 8.0 comes out to be about 335k compressed, which isn't bad.
With file lists it goes up to somewhere around 2 megs.
I would prefer to see as much information efficiently transferred up
front as possible, largely because that's the way Red Carpet was
designed, but also because as a GUI application, there is a major
negative impact on usability if the user has to wait for anything to be
downloaded, especially on slow or unreliable connections. In an ideal
world (and this is how we've implemented it in RC), once you have the
metadata, the user never has to wait until it's time to actually
download the packages and run the transaction.
Joe
More information about the Rpm-metadata
mailing list