From owner-freebsd-questions@FreeBSD.ORG Wed Mar 2 02:08:45 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E1CE316A4CE for ; Wed, 2 Mar 2005 02:08:44 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E13043D1D for ; Wed, 2 Mar 2005 02:08:43 +0000 (GMT) (envelope-from khaled.abu@gmail.com) Received: by wproxy.gmail.com with SMTP id 70so19840wra for ; Tue, 01 Mar 2005 18:08:43 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=tRIw5FkgFAAsuI60E9sjxZJKnbI5FjxPA1ct7or5LQw8YnFRw/7WfTSYn63EVLJJWTxHKdwRH5T3q30lHFWsv9hO5ywD/25yPAl+HKgOqVDmfvfzdOqN9iIpuy+H3FONlLqS4FSYCkDSzioyIvXaPmzyyLuNNeovdJl4MA+W8EU= Received: by 10.54.51.73 with SMTP id y73mr8358wry; Tue, 01 Mar 2005 18:08:42 -0800 (PST) Received: by 10.54.23.34 with HTTP; Tue, 1 Mar 2005 18:08:42 -0800 (PST) Message-ID: Date: Wed, 2 Mar 2005 04:08:42 +0200 From: abu khaled To: Richard Bradley In-Reply-To: <200503020151.45702.rtb27@cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <200503020151.45702.rtb27@cam.ac.uk> cc: freebsd-questions@freebsd.org Subject: Re: Updating the ports index is slow, but system load is nil X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: abu khaled List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2005 02:08:45 -0000 try to fetch the ports index before running portupgrade. cd /usr/ports make fetchindex portupgrade On Wed, 2 Mar 2005 01:51:45 +0000, Richard Bradley wrote: > Hi, > > Sometimes (not always) when I do a 'portupgrade', it takes _ages_ to "update > the ports index", without actually placing any noticeable load on the system. > > In ports/UPDATING, it says (of make index) "This may take an undesirably long > time.". That would be fine, *if it were doing any work*. > > I try to speed it up by "renice"ing all the processes I can pin down as > belonging to the portupgrade (is there a recursive renice for child > processes?), but it makes no difference. > > Here's a grab of "top", after I've been staring at > "Updating the ports index ... Generating INDEX.tmp - please wait.." > for about 10 minutes.... > > PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND > 65942 rich 101 0 37396K 27732K select 0:01 4.18% 2.39% kdeinit > 62156 rich 96 0 52072K 40144K select 0:04 1.69% 1.56% kontact > 557 root 96 0 102M 48316K select 15:39 0.88% 0.88% Xorg > 67154 root 8 -5 7304K 7180K wait 0:00 2.96% 0.54% make > 67520 root 8 -5 928K 800K wait 0:00 3.00% 0.15% make > > notice that > a) there's almost no load on the system > b) I managed to catch some of the make's and renice them > c) It didn't help > These two makes soon disappeared from the top of the list, leaving only > background processes. > > It doesn't have any open network connections, so I'm not waiting for a remote > machine; it doesn't have any system load so I'm not waiting for processing; > the hard disk is (largely) idle, so I'm not waiting for i/o, but I am still > waiting! > > How can I make it stop messing around and get on with it? > > Thanks, > > Rich > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >