From owner-freebsd-questions@FreeBSD.ORG Tue Feb 6 17:54:21 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AD0FD16A408 for ; Tue, 6 Feb 2007 17:54:20 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout1.cac.washington.edu (mxout1.cac.washington.edu [140.142.32.134]) by mx1.freebsd.org (Postfix) with ESMTP id 8B87D13C48E for ; Tue, 6 Feb 2007 17:54:20 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from hymn05.u.washington.edu (hymn05.u.washington.edu [140.142.12.184]) by mxout1.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l16HsJ42011484 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 6 Feb 2007 09:54:20 -0800 Received: from localhost (localhost [127.0.0.1]) by hymn05.u.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l16HsJx2012983 for ; Tue, 6 Feb 2007 09:54:19 -0800 X-Auth-Received: from [192.55.52.1] by hymn05.u.washington.edu via HTTP; Tue, 06 Feb 2007 09:54:19 PST Date: Tue, 6 Feb 2007 09:54:19 -0800 (PST) From: youshi10@u.washington.edu To: freebsd-questions@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-PMX-Version: 5.3.0.289146, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.2.6.93933 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='NO_REAL_NAME 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Subject: Re: Portupgrade out of swap - corrupt pkg info... (fwd) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Feb 2007 17:54:21 -0000 ---------- Forwarded message ---------- Date: Tue, 6 Feb 2007 09:53:30 -0800 (PST) From: youshi10@u.washington.edu To: Harrison Peter CSA BIRKENHEAD Subject: Re: Portupgrade out of swap - corrupt pkg info... On Tue, 6 Feb 2007, Harrison Peter CSA BIRKENHEAD wrote: > I updated the ports on my laptop last night ran: > > portsnap fetch update > > followed by: > > portupgrade -arR > > This ran normally until it hit vim-gtk2. It built fine but whilst it was > registering the installation became unresponsive. > > Hard rebooted, and found that in /var/log/messages it referred to being out > of swap (I don't have the exact message to hand). > > pkg_info did not show vim as installed, so when portupgrade finished a cd'd > to /usr/ports/editors/vim and ran make install clean. This installed without > error. If you ran make install clean then it should have installed the pkg info. > However, now when I run pkg_info it reports that the pkg info for vim-gtk2 > is corrupt. Hmmm... > Could anyone help with 2 questions: > > ~ How do I fix the package database entry for vim? pkg_install should do the trick, but you already cleaned out the package build directory ><. make install for vim-gtk2 should do the trick now. > ~ What might have caused my machine to run out of swap? It was running X and > twm with 1 xterm open. For hardware it has 256MB RAM and a 470MB swap > partition. I've not had this problem before. Ouch.. you should actually have more swap than that (2*(Physical RAM amount) = 512MB swap would be a better idea in the future). As for running out of swap, what are your make options for ruby? Having the ruby doc (or whatever it was) option selected ate up a lot of memory on machines a few months back; having this option deselected and rebuilding ruby fixes the memory bloat. make config in the lang/ruby* ports directory will yield the desired result here. -Garrett