From patchwork Wed Sep 28 17:59:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Larson X-Patchwork-Id: 4419 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 9209023EF5 for ; Wed, 28 Sep 2011 17:59:14 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id 76502A18BD9 for ; Wed, 28 Sep 2011 17:59:14 +0000 (UTC) Received: by fxe23 with SMTP id 23so1294321fxe.11 for ; Wed, 28 Sep 2011 10:59:14 -0700 (PDT) Received: by 10.223.94.134 with SMTP id z6mr14719852fam.8.1317232754208; Wed, 28 Sep 2011 10:59:14 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.3.234 with SMTP id f10cs122824laf; Wed, 28 Sep 2011 10:59:13 -0700 (PDT) Received: by 10.216.132.4 with SMTP id n4mr1552362wei.111.1317232753078; Wed, 28 Sep 2011 10:59:13 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id e43si24463347wed.57.2011.09.28.10.59.12 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 28 Sep 2011 10:59:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1R8yPY-0004lQ-OA for ; Wed, 28 Sep 2011 17:59:12 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id A9077E3378 for ; Wed, 28 Sep 2011 17:59:12 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-dispatcher X-Launchpad-Branch: ~linaro-validation/lava-dispatcher/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 127 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 127: Serialize calls to linaro-media-create. This greatly improves Message-Id: <20110928175912.26885.7083.launchpad@ackee.canonical.com> Date: Wed, 28 Sep 2011 17:59:12 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="14049"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: f7583732ca46c274cf7221a970add960b01515c7 ------------------------------------------------------------ revno: 127 committer: Paul Larson branch nick: lava-dispatcher timestamp: Wed 2011-09-28 12:57:03 -0500 message: Serialize calls to linaro-media-create. This greatly improves performance when multiple jobs are running in parallel. modified: lava_dispatcher/actions/deploy.py --- lp:lava-dispatcher https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk You are subscribed to branch lp:lava-dispatcher. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk/+edit-subscription === modified file 'lava_dispatcher/actions/deploy.py' --- lava_dispatcher/actions/deploy.py 2011-09-23 02:53:30 +0000 +++ lava_dispatcher/actions/deploy.py 2011-09-28 17:57:03 +0000 @@ -145,7 +145,7 @@ rootfs_path = download(rootfs_url, tarball_dir) image_file = os.path.join(tarball_dir, "lava.img") - cmd = ("sudo linaro-media-create --hwpack-force-yes --dev %s " + cmd = ("sudo flock /var/lock/lava-lmc.lck linaro-media-create --hwpack-force-yes --dev %s " "--image_file %s --binary %s --hwpack %s --image_size 3G" % (client.device_type, image_file, rootfs_path, hwpack_path)) logging.info("Executing the linaro-media-create command")