From patchwork Wed Sep 7 06:07:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amos Kong X-Patchwork-Id: 1127142 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p8766ZfA016262 for ; Wed, 7 Sep 2011 06:06:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755683Ab1IGGGY (ORCPT ); Wed, 7 Sep 2011 02:06:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58448 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755498Ab1IGGGV (ORCPT ); Wed, 7 Sep 2011 02:06:21 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p8766J5w026555 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 7 Sep 2011 02:06:19 -0400 Received: from [127.0.0.1] (dhcp-8-167.nay.redhat.com [10.66.8.167]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p8766GGR007235; Wed, 7 Sep 2011 02:06:18 -0400 Subject: [PATCH] KVM-test: Add two scripts to disable services for perf tests To: autotest@test.kernel.org, lmr@redhat.com, kvm@vger.kernel.org From: Amos Kong Date: Wed, 07 Sep 2011 14:07:49 +0800 Message-ID: <20110907060749.22304.40137.stgit@t> User-Agent: StGit/0.15 MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Wed, 07 Sep 2011 06:06:35 +0000 (UTC) System services on guest and host take uncertain resource, it effects the perf results. We can use the below two scripts to disable some services of host and guest. stop_serivices_perf.sh is used to stop the running serivices. off_service_perf.sh is used to off services when host starts up. We can use them to prepare environment for performance testcases. Signed-off-by: Amos Kong --- client/tests/kvm/scripts/off_services_perf.sh | 27 ++++++++++++++++++++++++ client/tests/kvm/scripts/stop_services_perf.sh | 27 ++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 0 deletions(-) create mode 100755 client/tests/kvm/scripts/off_services_perf.sh create mode 100755 client/tests/kvm/scripts/stop_services_perf.sh -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/client/tests/kvm/scripts/off_services_perf.sh b/client/tests/kvm/scripts/off_services_perf.sh new file mode 100755 index 0000000..6ddf168 --- /dev/null +++ b/client/tests/kvm/scripts/off_services_perf.sh @@ -0,0 +1,27 @@ +#!/bin/bash +chkconfig auditd off +chkconfig autofs off +chkconfig avahi-daemon off +chkconfig crond off +chkconfig cups off +chkconfig ip6tables off +chkconfig sendmail off +chkconfig smartd off +chkconfig xfs off +chkconfig acpid off +chkconfig atd off +chkconfig haldaemon off +chkconfig mdmonitor off +chkconfig netfs off +chkconfig rhnsd off +chkconfig rpcgssd off +chkconfig rpcidmapd off +chkconfig abrtd off +chkconfig kdump off +chkconfig koan off +chkconfig libvirt-guests off +chkconfig ntpdate off +chkconfig portreserve off +chkconfig postfix off +chkconfig rhsmcertd off +chkconfig tuned off diff --git a/client/tests/kvm/scripts/stop_services_perf.sh b/client/tests/kvm/scripts/stop_services_perf.sh new file mode 100755 index 0000000..84150b0 --- /dev/null +++ b/client/tests/kvm/scripts/stop_services_perf.sh @@ -0,0 +1,27 @@ +#!/bin/bash +service auditd stop +service avahi-daemon stop +service anacron stop +service qpidd stop +service smartd stop +service crond stop +service haldaemon stop +service opensmd stop +service openibd stop +service yum-updatesd stop +service collectd stop +service bluetooth stop +service cups stop +service cpuspeed stop +service hidd stop +service isdn stop +service kudzu stop +service lvm2-monitor stop +service mcstrans stop +service mdmonitor stop +service messagebus stop +service restorecond stop +service rhnsd stop +service rpcgssd stop +service setroubleshoot stop +service smartd stop