[Yum-devel] speeding up searchNevra in rpmsack
skvidal at linux.duke.edu
Thu Oct 12 05:42:13 UTC 2006
On Thu, 2006-10-12 at 01:35 -0400, Jay Soffian wrote:
> On Oct 12, 2006, at 12:16 AM, seth vidal wrote:
> > import rpm
> > for num in range(1, 1000):
> > ts = rpm.TransactionSet()
> > print num
> > mi = ts.dbMatch(0, 20)
> > h = mi.next()
> > ts.closeDB()
> > del ts
> File descriptor leakage?
> error: cannot open Pubkeys index using db3 - Too many open files (24)
> error: cannot open Packages index using db3 - Too many open files (24)
> error: cannot open Packages database in /var/lib/rpm
> Traceback (most recent call last):
> File "crasher", line 6, in ?
> TypeError: rpmdb open failed
> Works fine if you disable verification (and is a lot faster to boot).
> RHEL4, though I can reproduce with rpm-4.4.6.
> Do you need verification on when doing searchNevra?
whether it's needed on or not isn't the point. It is on and it should
work, I'd think. However it's a useful datapoint that disabling
signature verification lets it work.
More information about the Yum-devel