Gentoo Archives: gentoo-performance

From: Alec Warner <warnera6@×××××××.edu>
To: gentoo-performance@l.g.o
Subject: Re: [gentoo-performance] More portage questions
Date: Wed, 25 Jan 2006 02:03:41
Message-Id: 43D6DC12.5010103@egr.msu.edu
In Reply to: [gentoo-performance] More portage questions by lnxg33k
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 lnxg33k wrote:
5 > I added the metadata/some-cat to the rsync_exclude list by prefacing
6 > every entry with an '*'. Vastly increased the 2nd phase of sync'ing and
7 > cleared up some storage. I gather that the the cached files end up in
8 *laughs*
9
10 > "/var/cache/edb/dep/usr/portage/". Would purging the rsync_exclude
11 > entries here cause any problems? I'm guessing that `emerge -S` searches
12 > would be faster as there are less entries to check. There's also the
13 > storage issue as well. Thanks
14
15 Maybe the benifit is good for you. Those metadata directories in the
16 tree are important because generating portage metadata is costly in
17 terms of time. Thats WHY we do it.
18
19 When you exclude those directories ( or all of metadata/ ) you are
20 merely moving the cache time from emerge --sync to emerge <blar>.
21 Portage will notice the stale cache and regenerate the metadata on the
22 fly. As noted earlier, this generation is SLOW. Maybe you notice,
23 maybe you do not. It really depends on whether the queries you run
24 against portage hit the areas that lack on-disk metadata.
25
26 For extra fun, try rm -rf /var/cache/edb/dep/usr, then an emerge --regen
27 and tell me it's fast ;)
28
29 As for the emerge -S bit, it won't be any faster. It still iterates
30 over the whole tree, and once again, portage will generate the metadata
31 locally = slower. Use another tool, ( eix,esearch ) they are better for
32 this IMHO. Sorry it doesn't come all built into one tool, we are
33 working on it.
34
35 Alec Warner (antarus)
36 -----BEGIN PGP SIGNATURE-----
37 Version: GnuPG v1.4.2 (GNU/Linux)
38 Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
39
40 iQIVAwUBQ9bcEmzglR5RwbyYAQI3eg//dwNY+bKhHf1F4qeD2tf6dlHcHXZUQbNt
41 TLvI+w141ld58Dnwt5GI7BZQKo/WqFr+cBzuN0bbZJNO22dPNbSCEot+u2q0Q7l+
42 /1pb6qtWb+M2Vm5ruU6jCb/i+IVTji6eMu58GEUx4cdzP0ovUILXjEq8/JFynaT8
43 v3AMMLORxOMSgcnq0iW4ScGaSUdwG3eKiS0wF8WkPvLcS0nI2UgVlyyPEuskx2Gl
44 PW5SPZoLT2HHdNdsgh3wZ7WWkUQbpwVpFS0RiVjeMmHHDJOLRvYn0iPcNsPSeXWu
45 wkCkrKlJyNTMA4HcBFjDo7MmM0wzHrktjOLsOhCULmnXGBXWNrpEEQ9KJxNr49sn
46 JjiZBuxY+K0gAa6QMGF9REksR1Eoi6xJvAZjpd6MEEBft9ZSCKmeT5DXGmyjAsVC
47 eW9LnL3JasaZXmz85UXTb5D6aUycX4mvP73X/iCgd/B1mVBUpa/CyCoQvDn7kGsk
48 ZQZgXcYbb8ikwnwFrnvwetl7Brti1xEEtsIvgYLzQG9OOQCbd1ZE+4sC5HDEgT6o
49 jrWlOqyXj2e8dxHLSGKz3BARLm9xKLzZfl7kq5n66bYc43BEy4srjvscjL8dw9fr
50 W0YiUvsWjWK5GE/i/U1HN10QLuRqkrkHQXGkAo5V7ZtaiqDXf95N0pzL6i+p1ViP
51 l1eWVpQuMuU=
52 =HQCQ
53 -----END PGP SIGNATURE-----
54 --
55 gentoo-performance@g.o mailing list

Replies

Subject Author
Re: [gentoo-performance] More portage questions lnxg33k <lnxg33k@×××××.com>