Date: Thu, 16 Sep 2004 12:13:30 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: John Cholewa <freebsd-questions@jc-news.com> Cc: freebsd-questions@freebsd.org Subject: Re: portupgrade running slower than before? Message-ID: <20040916111330.GB52325@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <41489069.2050501@jc-news.com> References: <41489069.2050501@jc-news.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--cvVnyQ+4j833TQvp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 15, 2004 at 02:56:41PM -0400, John Cholewa wrote: > I started "portupgrade -ra" on my home mail server (FreeBSD=20 > 5.2.1-RELEASE) two or three hours ago. It says "[Updating the pkgdb=20 > <format:bdb1_btree> in /var/db/pkg ... - 246 packages found (-0 +1) .=20 > done]", and the output hasn't changed since. For much of this time,=20 > ruby18 has been using 90% of my system's resources. It's obviously=20 > doing *something*, but I can't see any ironclad progress in terms of=20 > packages being updated. Actually, this could be another symptom of the bdb1_btree bug that has been affecting portsdb for so many people recently. First, try killing that portupgrade process and restarting it. If it runs to completion successfully then you're happy. If it hangs again, or crashes then you'll need to take some ameliorative action. The first thing to try is deleting the pkgdb.db file and rebuilding it from scratch. That file basically contains a quick-reference summary of the contents of /var/db/pkg, so you won't lose any information by deleting the file. However it can occasionally become corrupted, in which case it may show the symptoms you've been seeing: # rm /var/db/pkg/pkgdb.db # pkgdb -Fvu If that still doesn't work, then I think that setting: # setenv PKG_BDBDRIVER bdb1_hash in your environment should help. After you do that, again run: # pkgdb -Fvu and it should rebuild the whole /var/db/pkg/pkgdb.db file into the bdb1_hash format. And, I hope, work rather better than you've seen so far. Alternatively to that last step, you could install the databases/ruby-bdb port together with whichever one of the databases/db{2,3,4,41,41-nocrypto,42,42-nocrypto} ports takes your fancy. Check the ruby-bdb port Makefile for all the WITH_BDBn options available. Then you can put the following into /usr/local/etc/pkgtools.conf: ENV['PORTS_DBDRIVER'] =3D 'bdb_btree' ENV['PKG_DBDRIVER'] =3D 'bdb_btree' or set them in your environment each time you use portupgrade(1), portsdb(1), pkgdb(1) or other members of that family of tools. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --cvVnyQ+4j833TQvp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBSXVaiD657aJF7eIRApP3AJ44rU2Cpp7FGrZDvId/t/YyHdIOYQCgiKlU jziAjWJtDXnZTL3wOqcq6jU= =rJdb -----END PGP SIGNATURE----- --cvVnyQ+4j833TQvp--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040916111330.GB52325>