From owner-cvs-all@FreeBSD.ORG Tue Oct 11 03:52:38 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C44D16A41F; Tue, 11 Oct 2005 03:52:38 +0000 (GMT) (envelope-from kris@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0ED1043D45; Tue, 11 Oct 2005 03:52:38 +0000 (GMT) (envelope-from kris@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j9B3qbHf080572; Tue, 11 Oct 2005 03:52:37 GMT (envelope-from kris@repoman.freebsd.org) Received: (from kris@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j9B3qbgX080571; Tue, 11 Oct 2005 03:52:37 GMT (envelope-from kris) Message-Id: <200510110352.j9B3qbgX080571@repoman.freebsd.org> From: Kris Kennaway Date: Tue, 11 Oct 2005 03:52:37 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/Tools/portbuild/scripts claim-chroot X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 03:52:38 -0000 kris 2005-10-11 03:52:37 UTC FreeBSD ports repository Modified files: Tools/portbuild/scripts claim-chroot Log: Add support for use_md_swap. When this variable is set in a portbuild.conf, builds will each be done in a separate swap-backed md. This dramatically improves build performance since * Every transaction is not written to disk, so disk bandwidth is not a bottleneck * Multiple builds do not contend with each other for the same set of filesystem locks and other per-device resources The size of the md devices is controlled by the md_size variable. '2g' seems to be a good size. Currently we mdconfig -u each device after each port build, since otherwise dirty blocks accumulate and the md eventually uses a full amount of backing store (2g in the above example). This is a problem if there is unsufficient swap backing to accomodate them all. XXX This should be made configurable to avoid the performance penalty on systems that do have enough swap backing Revision Changes Path 1.3 +18 -4 ports/Tools/portbuild/scripts/claim-chroot