Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HOWTO] Speeding up portage with cdb -- UPDATE
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
digitalair
n00b
n00b


Joined: 21 Oct 2005
Posts: 9

PostPosted: Tue Jan 03, 2006 10:13 pm    Post subject: whoo hoo!! Reply with quote

thanks to all...

running portage 2.1_pre3-r1 with cdb cache...

emerge --metadata ran in just under 4 minutes
emerge --sync ran in just over 3 minutes

(celeron 400 w/ 256Mb RAM)


-digi
Back to top
View user's profile Send private message
gordin
Guru
Guru


Joined: 11 Oct 2002
Posts: 300
Location: Germany/WI

PostPosted: Sun Jan 08, 2006 7:30 pm    Post subject: Reply with quote

I just updated to portage-2.1_pre3-r1... and the speed is incredible... cache-update in about 1min (without cdb)
with portage-2.0.x it took about 40-50min without and about 4min with cdb...
I think I will not test cdb for 2.1.x, because it is fast enough for me without the cdb-module :-)

As stated above, the first cache-update with 2.1_pre3-r1 took quit long (about 10min), so was a little bit dissapointed, first.

(ibook G3 700MHz/640MB RAM)

digitalair wrote:
emerge --metadata ran in just under 4 minutes
emerge --sync ran in just over 3 minutes

How can that be? IMHO "emerge --metadata" is "emerge --sync" without actually syncing. So how can that be faster? Even if there is no data to sync (because tree is up to date) there should be some overhead.
So, I think, at least there is the disk cache... but then all the cdb against normal syncing comparison is not very acurate if you run the commands directly after each other...
Back to top
View user's profile Send private message
bigbob73
Guru
Guru


Joined: 31 Dec 2004
Posts: 332
Location: Under the Lone Star

PostPosted: Sun Jan 08, 2006 11:09 pm    Post subject: Reply with quote

gordin wrote:
I just updated to portage-2.1_pre3-r1... and the speed is incredible... cache-update in about 1min (without cdb)
with portage-2.0.x it took about 40-50min without and about 4min with cdb...
I think I will not test cdb for 2.1.x, because it is fast enough for me without the cdb-module :-)

As stated above, the first cache-update with 2.1_pre3-r1 took quit long (about 10min), so was a little bit dissapointed, first.

(ibook G3 700MHz/640MB RAM)

digitalair wrote:
emerge --metadata ran in just under 4 minutes
emerge --sync ran in just over 3 minutes

How can that be? IMHO "emerge --metadata" is "emerge --sync" without actually syncing. So how can that be faster? Even if there is no data to sync (because tree is up to date) there should be some overhead.
So, I think, at least there is the disk cache... but then all the cdb against normal syncing comparison is not very acurate if you run the commands directly after each other...


if that was the first time you ran emerge --metadata after the upgrade it will take a little longer. Should be faster after that.

Bigbob
_________________
A computers attention span is only as long as it's electrical cord (Murphy)
Back to top
View user's profile Send private message
dkey
n00b
n00b


Joined: 11 May 2005
Posts: 25

PostPosted: Mon Jan 09, 2006 12:31 am    Post subject: Reply with quote

I don't know what you guys do, that portage 2.1 runs faster than portage 2.0 with cdb!?
In my case, I can't confirm that in any way :( did you set any extra settings? or changed something beside the normal install?

greets,
dkey
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2196

PostPosted: Wed Jan 25, 2006 3:06 pm    Post subject: Reply with quote

I'm impressed.... shaved a full minute off of --searchdesc

*bookmarked*
_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sat Jan 28, 2006 1:57 pm    Post subject: Reply with quote

HI,

A big thanks to every one envovled with 2.1 ! This is a leap forward for Gentoo.

my first --metadata took 58s now it takes just 11. Incredible.

I just did a full emerge sync in 1m37.694s and most of that was probably the server speed.

I really valued cdb before so retrospective thanks for that one as well.

The first thing my emerge sync got me was .... portage update. :lol:

Here we go again.

Cheers. 8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Sat Jan 28, 2006 2:47 pm    Post subject: Reply with quote

Gentree wrote:
A big thanks to every one envovled with 2.1 ! This is a leap forward for Gentoo.

I absolutely second that. Really good work in 2.1
_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Back to top
View user's profile Send private message
Phlogiston
Veteran
Veteran


Joined: 27 Jan 2004
Posts: 1925
Location: Europe, Swizerland

PostPosted: Sun Jan 29, 2006 12:12 pm    Post subject: Reply with quote

I'm sorry I know that it is probably a stupid question. But is it possible to use that with pre4? Or isn't it needed any longer? Is it included in portage?

8)
_________________
Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor
Back to top
View user's profile Send private message
Phlogiston
Veteran
Veteran


Joined: 27 Jan 2004
Posts: 1925
Location: Europe, Swizerland

PostPosted: Sun Jan 29, 2006 1:10 pm    Post subject: Reply with quote

ok I found the answer myself:

Code:
 * This series contains a completely rewritten caching framework.
 * If you are using any cache modules (such as the CDB cache
 * module) portage will not work until they have been disabled.

 * The default cache format has changed beginning with this
 * version. Before using emerge, run `emerge --metadata` to
 * restore portage's local cache.

 * Flag ordering has changed for `emerge --pretend --verbose`.
 * Add EMERGE_DEFAULT_OPTS="--alphabetical" to /etc/make.conf
 * to restore the previous ordering.


Phlogiston
_________________
Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor
Back to top
View user's profile Send private message
cwest
n00b
n00b


Joined: 13 Jun 2005
Posts: 72
Location: Oslo, Norway

PostPosted: Thu Feb 16, 2006 12:31 am    Post subject: Reply with quote

Works lightning for me :)
_________________
freelight wrote:
Any society that can be destroyed by the free flow of information probably should be.
Back to top
View user's profile Send private message
Ulmo
n00b
n00b


Joined: 18 Feb 2006
Posts: 6

PostPosted: Sat Feb 18, 2006 5:03 pm    Post subject: CDB Cache with portage 2.1 is much better Reply with quote

Phlogiston wrote:
ok I found the answer myself:

Code:
 * This series contains a completely rewritten caching framework.
 * If you are using any cache modules (such as the CDB cache
 * module) portage will not work until they have been disabled.

 * The default cache format has changed beginning with this
 * version. Before using emerge, run `emerge --metadata` to
 * restore portage's local cache.

 * Flag ordering has changed for `emerge --pretend --verbose`.
 * Add EMERGE_DEFAULT_OPTS="--alphabetical" to /etc/make.conf
 * to restore the previous ordering.


Phlogiston


I disagree. I put ~x86 for portage and a required package, and then I got:

[ebuild R ] sys-apps/portage-2.1_pre4-r1

I installed cdb by moving it into cache subdir as mentioned above but without the updates above since those URLs didn't work, and got:

$ sha1sum /usr/lib/portage/pym/cache/portage_db_cdb.py
ef91f1fa2c2172352684fb9d9169cfed041461cc /usr/lib/portage/pym/cache/portage_db_cdb.py
$ wc /usr/lib/portage/pym/cache/portage_db_cdb.py
190 475 5351 /usr/lib/portage/pym/cache/portage_db_cdb.py
$

# emerge metadata; time emerge metadata
[...]
skipping sync

>>> Updating Portage cache: 100%
* IMPORTANT: 351 config files in /etc need updating.
* IMPORTANT: 11 config files in /usr/lib/X11/xkb need updating.
* IMPORTANT: 7 config files in /usr/share/texmf/dvips/config/ need updating.
* IMPORTANT: 1 config files in /var/bind need updating.
* Type emerge --help config to learn how to update config files.


real 0m15.332s
user 0m12.893s
sys 0m2.428s
#

That's an intel P4 2.80GHz with 1.25GiB RAM.

Without cdb: (comment /etc/portage/modules):
# emerge metadata; time emerge metadata
[...]
skipping sync

>>> Updating Portage cache: 100%
* IMPORTANT: 351 config files in /etc need updating.
* IMPORTANT: 11 config files in /usr/lib/X11/xkb need updating.
* IMPORTANT: 7 config files in /usr/share/texmf/dvips/config/ need updating.
* IMPORTANT: 1 config files in /var/bind need updating.
* Type emerge --help config to learn how to update config files.


real 0m20.473s
user 0m16.577s
sys 0m3.892s
#

So much slower, but only by 25% this run, but usually even bigger of a difference than that. Let's see what happens when the cache is erased:

how do I do that?

Well, anyway, the CDB cache in my experience changes Portage 2.1's speed from not as bad to acceptable in my experience, so my suggestion is that CDB cache be installed even with Portage 2.1, unless there are intrinsic bugs.

Before cdb cache and portage 2.1 (i.e., portage 2.0 without cdb cache), it often took over half an hour with the same setup during an emerge sync; that was unacceptable. cdb cache with portage 2.0 is faster than portage 2.1 without cdb cache. Both portage 2.1 without cdb cache and cdb cache with portage 2.0 are much much faster than portage 2.0 without cdb cache, but portage 2.1 with cdb cache seems the most acceptable and fastest.

Sincerely,
Brad Allen
Back to top
View user's profile Send private message
tobidope
n00b
n00b


Joined: 17 Aug 2003
Posts: 24
Location: Germany

PostPosted: Sat Feb 18, 2006 7:53 pm    Post subject: Reply with quote

Phheeww. People are still using my little cdb hack? Are you serious?
Is there an interest for an updated version? Maybe I should start my rusty old
Gentoo partition on my laptop again. Didn't have the time to do anything linux related
in the past month.

Sincerely,
Tobias Bell
Back to top
View user's profile Send private message
adsmith
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1386
Location: NC, USA

PostPosted: Sat Feb 18, 2006 7:56 pm    Post subject: Reply with quote

Yes, they are. Tons of people use it! Thanks!
In fact, sadly, portage-cdb is still the only reasonable "patch" for portage's very serious data access problem.
Back to top
View user's profile Send private message
Exner
Tux's lil' helper
Tux's lil' helper


Joined: 08 Apr 2003
Posts: 128
Location: Melbourne, Australia

PostPosted: Tue Feb 21, 2006 1:48 pm    Post subject: Reply with quote

@tobidope

I've just read the entire thread (I wish I found it 6 months ago) and it seems the upcoming portage 2.1 has rewritten caching that can be even faster than portage 2.0.* with cdb. There is a port of the cdb module to portage 2.1 anyway and some people say that is faster.

I'm using portage 2.0.* with cdb now, and when portage 2.1 is released I will use it for a while before even thinking of adding cdb to it.
_________________
- Exner (Antony Suter)
Back to top
View user's profile Send private message
broken_chaos
Guru
Guru


Joined: 18 Jan 2006
Posts: 370
Location: Ontario, Canada

PostPosted: Wed Feb 22, 2006 2:33 am    Post subject: Reply with quote

Using portage 2.0.54, cdb module greatly speeds up the cache... Many thanks. :D

From, ahem, pausing around 50-52% for up to ten minutes, using 100% CPU, with the original metadata system, this now has no stalling at any percentage, just a nice smooth update... Using less than 50% CPU. :D (Machine is a 2.0 Ghz P4, with 1 gig of RAM.) Once it's done the first metadata update, emerge metadata takes 23.138 seconds. :D

Once again, thank you ver much. :D
Back to top
View user's profile Send private message
taylorpendley
n00b
n00b


Joined: 23 Jan 2006
Posts: 41

PostPosted: Mon Feb 27, 2006 2:22 am    Post subject: Reply with quote

portage 2.1 with cdb is about 5 times faster for me than regular portage 2.1

an update would be great!!!!
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2196

PostPosted: Mon Feb 27, 2006 7:05 pm    Post subject: Reply with quote

tobidope wrote:
Phheeww. People are still using my little cdb hack? Are you serious?
Is there an interest for an updated version? Maybe I should start my rusty old
Gentoo partition on my laptop again. Didn't have the time to do anything linux related
in the past month.

Sincerely,
Tobias Bell


Yes..
_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Mon Feb 27, 2006 8:25 pm    Post subject: Reply with quote

tobidope wrote:
Phheeww. People are still using my little cdb hack? Are you serious?
Is there an interest for an updated version? Maybe I should start my rusty old
Gentoo partition on my laptop again. Didn't have the time to do anything linux related
in the past month.

Sincerely,
Tobias Bell


That woud be nice. :)
Back to top
View user's profile Send private message
blidside
n00b
n00b


Joined: 30 Jul 2002
Posts: 51
Location: Tampa, FL

PostPosted: Wed Mar 01, 2006 11:37 pm    Post subject: Reply with quote

just realized this thread is from waaay back.
well, it worked wonders on my portage, and did away with that nasty 50-51% stall / cpu peg out.
thinking about updating it?
that'd be swell!

thanks again
Back to top
View user's profile Send private message
badgers
l33t
l33t


Joined: 04 Sep 2003
Posts: 680
Location: Madison, WI

PostPosted: Fri Mar 10, 2006 1:52 am    Post subject: Reply with quote

Hey did I miss something?
Code:
myth_host pym # emerge metadata

====================================
Error: Failed to import module 'portage_db_cdb.database'

  File "/usr/lib/portage/pym/portage.py", line 1290, in load_best_module
    mod = load_mod(best_mod)
  File "/usr/lib/portage/pym/portage.py", line 149, in load_mod
    mod = __import__(modname)
  File "/usr/lib/portage/pym/portage_db_cdb.py", line 17, in ?
    import portage_db_template
No module named portage_db_template
====================================



Code:
myth_host pym # emerge info

====================================
Error: Failed to import module 'portage_db_cdb.database'

  File "/usr/lib/portage/pym/portage.py", line 1290, in load_best_module
    mod = load_mod(best_mod)
  File "/usr/lib/portage/pym/portage.py", line 149, in load_mod
    mod = __import__(modname)
  File "/usr/lib/portage/pym/portage_db_cdb.py", line 17, in ?
    import portage_db_template
No module named portage_db_template
====================================

I had updated to the most current portage just before doing this.

does anyone know what is going on?
thanks
_________________
Abit KD7-S
Athlon XP2500+
166mHz FSB
512 Meg PC3200 Ram running at 166mHz
LiteOn DVD dual Layer burner(hdc)

2.6.17 Suspend2 kernel with no scsi support
Back to top
View user's profile Send private message
badgers
l33t
l33t


Joined: 04 Sep 2003
Posts: 680
Location: Madison, WI

PostPosted: Fri Mar 10, 2006 1:58 am    Post subject: Reply with quote

I have switched back and run emerge info again so it has some usable output.

any ideas are appreciated.
thanks

Code:
myth_host portage # emerge --info

Portage 2.1_pre5-r4 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.13-gentoo-r3 i686)
=================================================================
System uname: 2.6.13-gentoo-r3 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.12.0_pre8
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -ffast-math"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.chem.wisc.edu/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://gentoo.mirrors.tds.net/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac acpi alsa apache2 apm arts avi berkdb bitmap-fonts cdr crypt cups directfb divx4linux dri dv dvd dvdr dvdread eds emboss encode ffmpeg flac flash foomaticdb fortran gd gdbm gif gpm gstreamer imagemagick imlib ipv6 java joystick jpeg libg++ libwww lirc mad mikmod mjpeg mmx mmxext mng motif mp3 mpeg mysql mysqli ncurses nls nptl nptlonly offensive ofx ogg oggvorbis openal opengl oss pam pdflib perl php png python qt quicktime readline sdl spell sse ssl tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode v4l vcd vorbis win32codecs wmf xine xml2 xmms xosd xpm xv xvid zlib ~x86 elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS

_________________
Abit KD7-S
Athlon XP2500+
166mHz FSB
512 Meg PC3200 Ram running at 166mHz
LiteOn DVD dual Layer burner(hdc)

2.6.17 Suspend2 kernel with no scsi support
Back to top
View user's profile Send private message
badgers
l33t
l33t


Joined: 04 Sep 2003
Posts: 680
Location: Madison, WI

PostPosted: Fri Mar 10, 2006 2:09 pm    Post subject: Reply with quote

OK I think I have fixed the error.
The wiki had instructions that addressed the current portage version.

I guess I don't really see much of a speed increase.

thanks for the ideas, and have a good day
_________________
Abit KD7-S
Athlon XP2500+
166mHz FSB
512 Meg PC3200 Ram running at 166mHz
LiteOn DVD dual Layer burner(hdc)

2.6.17 Suspend2 kernel with no scsi support
Back to top
View user's profile Send private message
mysiar
Tux's lil' helper
Tux's lil' helper


Joined: 26 Aug 2004
Posts: 102
Location: Kraków

PostPosted: Tue Mar 14, 2006 6:20 am    Post subject: Reply with quote

Portage 2.1_pre6-r2
settings like here http://gentoo-wiki.com/TIP_speed_up_portage_with_cdb

and problem like this :cry:
Quote:
emerge -S tar

====================================
Error: Failed to import module 'cache.cdb.database'

File "/usr/lib/portage/pym/portage.py", line 1290, in load_best_module
mod = load_mod(best_mod)
File "/usr/lib/portage/pym/portage.py", line 149, in load_mod
mod = __import__(modname)
No module named cdb
====================================



emerge --info
Code:
Portage 2.1_pre6-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15
-gentoo-r5 i686)
=================================================================
System uname: 2.6.15-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.0_pre15
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.1-r2
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share                                 /config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/                                 pref /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/                                 share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/                                 tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /usr/X11R6/bin/startx /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/                                 distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/various /usr/local/overlays/bmg-main /usr/l                                 ocal/overlays/portage-r /usr/local/overlays/mysiar"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts bluetooth cdr cli crypt                                  ctype cups dba dri dvd dvdr eds emboss encode expat f77 fastbuild foomaticdb fo                                 rce-cgi-redirect fortran ftp gcj gd gdbm gif gimpprint gpm gstreamer gtk gtk2 im                                 ap imlib java jpeg kde libg++ libwww mad memlimit mikmod motif mp3 mpeg mysql nc                                 urses nls ogg oggvorbis opengl oss pam pcre pdflib perl png posix python qt quic                                 ktime readline sdl session simplexml soap sockets spell spl ssl tcpd tokenizer t                                 ruetype truetype-fonts type1-fonts vorbis xml xml2 xmms xsl xv zlib elibc_glibc                                  kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS

_________________
piotr
kilka moich ebuldów / my few ebuilds
Back to top
View user's profile Send private message
yoshi314
l33t
l33t


Joined: 30 Dec 2004
Posts: 850
Location: PL

PostPosted: Tue Mar 14, 2006 12:56 pm    Post subject: Reply with quote

i have a question...
i use newest 2.1-pre-whatever from portage and it works fine with cdb

however eix has issues. when i set PORTDIR_CACHE_METHOD='cdb' or 'backport' in /etc/eixrc weird things happen

most of the time it's giving accurate search results, but sometimes it shows packages that were removed from portage, or does not show the newest ones.

e.g. it showed once that i have some package XYZ installed in version 3.21 while available ones were : 2.10 , 2.52 , 3.01 :|
however doing emerge -pv XYZ showed that 3.23 was available as an upgrade :|

so i have to use 'none' setting for portdir cache in eixrc. it works a little bit longer to build the eix cache but it's 100% accurate now.

and yes, i do update-eix after every sync.

anyone can confirm this on their box?
_________________
~amd64
shrink your /usr/portage with squashfs+aufs
Back to top
View user's profile Send private message
mysiar
Tux's lil' helper
Tux's lil' helper


Joined: 26 Aug 2004
Posts: 102
Location: Kraków

PostPosted: Wed Mar 15, 2006 1:17 pm    Post subject: Reply with quote

solution for my problem

module http://dev.gentoo.org/~jstubbs/cdb.py
copied to /usr/lib/portage/pym/cache

and :lol:
without cdb
Code:
time emerge --metadata

real    2m5.760s
user    0m27.730s
sys     0m6.136s


with cdb http://dev.gentoo.org/~jstubbs/cdb.py
Code:
time emerge --metadata

real    0m21.340s
user    0m17.925s
sys     0m1.696s

_________________
piotr
kilka moich ebuldów / my few ebuilds
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
Page 8 of 10

 
Jump to:  
You cannot post new topics in this forum
You cannot 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