Received: from eggs.gnu.org ([2001:4830:134:3::10]:37860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPrVg-0000Uu-83 for qemu-devel@nongnu.org; Wed, 20 Jul 2016 09:26:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPrVb-0003XH-SQ for qemu-devel@nongnu.org; Wed, 20 Jul 2016 09:25:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60310) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPrVb-0003XB-KM for qemu-devel@nongnu.org; Wed, 20 Jul 2016 09:25:55 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 42B537F776 for ; Wed, 20 Jul 2016 13:25:55 +0000 (UTC) From: "Daniel P. Berrange" Date: Wed, 20 Jul 2016 14:23:07 +0100 Message-Id: <1469020993-29426-1-git-send-email-berrange@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/6] A migration performance testing framework List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Juan Quintela , Amit Shah , "Dr. David Alan Gilbert" , Stefan Hajnoczi , "Daniel P. Berrange" This is a followup to: v1: https://lists.gnu.org/archive/html/qemu-devel/2016-05/msg00701.html This series of patches provides a framework for testing migration performance characteristics. The motivating factor for this is planning that is underway in OpenStack wrt making use of QEMU migration features such as compression, auto-converge and post-copy. The primary aim for OpenStack is to have Nova autonomously manage migration features & tunables to maximise chances that migration will complete. The problem faced is figuring out just which QEMU migration features are "best" suited to our needs. This means we want data on how well they are able to ensure completion of a migration, against the host resources used and the impact on the guest workload performance. The test framework produced here takes a pathelogical guest workload (every CPU just burning 100% of time xor'ing every byte of guest memory with random data). This is quite a pessimistic test because most guest workloads are not giong to be this heavy on memory writes, and their data won't be uniformly random and so will be able to compress better than this test does. Changed in v2: - Rebased to git master - Added missing S-o-B Daniel P. Berrange (6): scripts: add __init__.py file to scripts/qmp/ scripts: add a 'debug' parameter to QEMUMonitorProtocol scripts: refactor the VM class in iotests for reuse scripts: set timeout when waiting for qemu monitor connection scripts: ensure monitor socket has SO_REUSEADDR set tests: introduce a framework for testing migration performance configure | 2 + scripts/qemu.py | 202 +++++++++++ scripts/qmp/__init__.py | 0 scripts/qmp/qmp.py | 15 +- scripts/qtest.py | 34 ++ tests/Makefile.include | 12 + tests/migration/.gitignore | 2 + tests/migration/guestperf-batch.py | 26 ++ tests/migration/guestperf-plot.py | 26 ++ tests/migration/guestperf.py | 27 ++ tests/migration/guestperf/__init__.py | 0 tests/migration/guestperf/comparison.py | 124 +++++++ tests/migration/guestperf/engine.py | 439 ++++++++++++++++++++++ tests/migration/guestperf/hardware.py | 62 ++++ tests/migration/guestperf/plot.py | 623 ++++++++++++++++++++++++++++++++ tests/migration/guestperf/progress.py | 117 ++++++ tests/migration/guestperf/report.py | 98 +++++ tests/migration/guestperf/scenario.py | 95 +++++ tests/migration/guestperf/shell.py | 255 +++++++++++++ tests/migration/guestperf/timings.py | 55 +++ tests/migration/stress.c | 367 +++++++++++++++++++ tests/qemu-iotests/iotests.py | 135 +------ 22 files changed, 2583 insertions(+), 133 deletions(-) create mode 100644 scripts/qemu.py create mode 100644 scripts/qmp/__init__.py create mode 100644 tests/migration/.gitignore create mode 100755 tests/migration/guestperf-batch.py create mode 100755 tests/migration/guestperf-plot.py create mode 100755 tests/migration/guestperf.py create mode 100644 tests/migration/guestperf/__init__.py create mode 100644 tests/migration/guestperf/comparison.py create mode 100644 tests/migration/guestperf/engine.py create mode 100644 tests/migration/guestperf/hardware.py create mode 100644 tests/migration/guestperf/plot.py create mode 100644 tests/migration/guestperf/progress.py create mode 100644 tests/migration/guestperf/report.py create mode 100644 tests/migration/guestperf/scenario.py create mode 100644 tests/migration/guestperf/shell.py create mode 100644 tests/migration/guestperf/timings.py create mode 100644 tests/migration/stress.c -- 2.5.5