Talk:TIP speed up portage with cdb

From Gentoo Linux Wiki

Jump to: navigation, search

This sounds really nice! Are there any drawbacks? What about including this in portage?

I've seen no drawbacks, and I use it myself. I'm honestly not sure why this isn't in portage, perhaps because it adds another dependency. MighMoS 14:53, 27 Jul 2005 (GMT)


Well, what about a use-flag for portage? cdb? :) --Kottlett 22:18, 27 Jul 2005 (GMT)

Contents

[edit] not included because...

carpaski says its not included because when cdb fails, it gives a nasty segmentation fault with no indication of what happened. While python gives a backtrace.

[edit] Petlab's humble opinion

I use this on my ~amd64,~x86(p2,athlonxp) machines, with no problems, ever. IMO, this is a great tip. I've been using this for like 6 months, or something, and I sync and -uDN world almost daily on at least one machine. My humble opinion is - works for me, and if I need to do a backtrace from using portage, I have much bigger problems than cdb ;) Petlab

[edit] why not to fix the cdb?

Ok, devs says the cdb sucks -- "we do not include it". But why they wont fix it? Is it so hard to make the library to use exceptions and clean the code up? Its not big... --lzap

[edit] Bug still there in portage-2.0.54

The 51% bug is still in the 2.0.54 (latest stable version today), this may not be so noticeble on a fast DualCore CPU, but on a bit older hardware as my UltraSparc IIi 333Mhz it takes bit more than 22min to emerge metadata, with cdb enabled it's cut down to 9.5min.

At the moment I'm using this "hack" on x86, ppc and sparc and haven't had any problems, even if there been portage and python upgrades while using this. IMHO there is a bit to much conservativity among the developers and I think using python for portage was a bad choice from the begining.

2008-08-08: Using the 2.1.4.4 portage and a Quad core AMD, there is a big difference between using cdb or not, still problem with a slowdown without at the 51% stage.

[edit] sqlite3 support maintained

the devs perhaps doesnt like cdb because they already have something simliar to cdb..

try this:

emerge pysqlite
$EDITOR /etc/portage/modules

paste this: (portage 2.1 stable)

portdbapi.auxdbmodule = cache.sqlite.database
eclass_cache.dbmodule = cache.sqlite.database

and emerge --metadata

works greatly and is as fast as cdb or the new caching method in 2.1

[edit] Tell eix to use it -- portage <2.1 only?

Tell eix to use it -- that part concerns only portage <2.1 (!), doesn't it? --Zuo 16:16, 13 August 2006 (UTC)

Personal tools