From owner-cvs-all@FreeBSD.ORG Sun Jul 29 19:41:52 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F14816A41B; Sun, 29 Jul 2007 19:41:52 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7512413C459; Sun, 29 Jul 2007 19:41:52 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l6TJfq0D068023; Sun, 29 Jul 2007 19:41:52 GMT (envelope-from kris@repoman.freebsd.org) Received: (from kris@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l6TJfqS9068022; Sun, 29 Jul 2007 19:41:52 GMT (envelope-from kris) Message-Id: <200707291941.l6TJfqS9068022@repoman.freebsd.org> From: Kris Kennaway Date: Sun, 29 Jul 2007 19:41:52 +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 getmachine 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: Sun, 29 Jul 2007 19:41:52 -0000 kris 2007-07-29 19:41:52 UTC FreeBSD ports repository Modified files: Tools/portbuild/scripts getmachine Log: * Revise the machine selection algorithm. Previously it chose the first machine with the lowest number of running jobs. This worked when the clients were all roughly equivalent, but schedules poorly when there are some that are much more powerful (e.g. 8-core machines vs UP machines) * We now compute the ratio of running jobs to maximum jobs and schedule on the machine with lowest occupation fraction. This populates the machines to equal fractions of their capacity. Revision Changes Path 1.3 +17 -8 ports/Tools/portbuild/scripts/getmachine