From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1GnNjd-0006yU-HI for garchives@archives.gentoo.org; Thu, 23 Nov 2006 23:12:01 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id kANNA5ST003330; Thu, 23 Nov 2006 23:10:05 GMT Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id kANNA4Dh002210 for ; Thu, 23 Nov 2006 23:10:05 GMT Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GnKTT-0004Tq-V4 for gentoo-amd64@lists.gentoo.org; Thu, 23 Nov 2006 20:43:08 +0100 Received: from ip68-230-97-209.ph.ph.cox.net ([68.230.97.209]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Nov 2006 20:43:07 +0100 Received: from 1i5t5.duncan by ip68-230-97-209.ph.ph.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Nov 2006 20:43:07 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-amd64@lists.gentoo.org From: Duncan <1i5t5.duncan@cox.net> Subject: [gentoo-amd64] Re: Interrupting portage gracefully Date: Thu, 23 Nov 2006 19:42:38 +0000 (UTC) Message-ID: References: <200611231821.13640.prh@gotadsl.co.uk> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ip68-230-97-209.ph.ph.cox.net User-Agent: pan 0.120 (Plate of Shrimp) Sender: news X-Archives-Salt: 0a1fb371-bab0-42bc-a0b7-a72aeb198e48 X-Archives-Hash: 5ba92990ce9df56e87d13a9d4a616d1c Peter Humphrey posted 200611231821.13640.prh@gotadsl.co.uk, excerpted below, on Thu, 23 Nov 2006 18:21:13 +0000: > Does anyone here know of a signal I can pass to portage to make it stop at > the end of the current package? Quite often I find I'm emerging quite a lot > of packages, and I'd like to shut the machine down for the night and resume > in the morning. (I have been running it all night, but it's getting to be a > bit noisy in the fan department.) I don't believe there's a way to do it other than manually (watching for the right moment and stopping it then), but using the --resume switch will resume it at the same package, and if you use FEATURES=ccache and have it setup correctly, the compile to the point of interruption will have been cached so that package should merge faster, as well. It'll still take awhile as the configure steps repeat, and the linking and other non-compile steps repeat as well, but the actual compilation should be cached, so that part will be faster, on the package it's doing twice. Of course, there are some I'd still not want to interrupt. a gcc compile, or glibc, come to mind, as does kdelibs if you have it merged, and from what I read, openoffice, unless they are just barely started. However, an emerge --pretend or --ask can give you an idea of if and where they are in the list, and you can schedule accordingly. Alternatively, do a pretend, to get a list, and then emerge individual packages. I often do this with --tree, to get an idea of the dependencies, and then do several merges in parallel (such that there aren't any conflicting dependencies, thus the --tree), since portage otherwise doesn't make very efficient use of multiple CPUs for much of the emerge run. The configure step for instance is generally single-job serial, as are most of the other steps other than the actual compile. Even the compile is often forced to -j1 for individual packages due to job ordering issues if -jX were allowed, so the /only/ way I've found to efficiently make use of even TWO-way SMP is to invoke up to five emerges in parallel. The problem will be even worse once I upgrade to dual-core Opteron 285s, thus four-way SMP (I see prices are down to $1200-ish for the pair, now). -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman -- gentoo-amd64@gentoo.org mailing list