Message ID | 20180903092644.25812-1-xiaoguangrong@tencent.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <kvm-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 933285A4 for <patchwork-kvm@patchwork.kernel.org>; Mon, 3 Sep 2018 09:26:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C9A2294F8 for <patchwork-kvm@patchwork.kernel.org>; Mon, 3 Sep 2018 09:26:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7E83D2956E; Mon, 3 Sep 2018 09:26:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A1FC9294F8 for <patchwork-kvm@patchwork.kernel.org>; Mon, 3 Sep 2018 09:26:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726022AbeICNqJ (ORCPT <rfc822;patchwork-kvm@patchwork.kernel.org>); Mon, 3 Sep 2018 09:46:09 -0400 Received: from mail-pf1-f175.google.com ([209.85.210.175]:38545 "EHLO mail-pf1-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725927AbeICNqJ (ORCPT <rfc822;kvm@vger.kernel.org>); Mon, 3 Sep 2018 09:46:09 -0400 Received: by mail-pf1-f175.google.com with SMTP id x17-v6so8455523pfh.5 for <kvm@vger.kernel.org>; Mon, 03 Sep 2018 02:26:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Ej6ZuAtMP6Tn7q2eykjCojIQTBqtL4v9VHtA7AvK1nk=; b=TlgbKIjbaw0HqQT1EiDyNM1jNqRddv8nLc9D41YidvhB3NM79yTGNZ7dZ813sfRnP8 8DPcz3e99/VzvB0GTrxO6EJAkFikhZsyXVraftcErPfxg+QTHMMWSpz91XPkCOdyppDq /d3xTua9nOeU3JGFKxmUXjg1aMX6hW9syRMQIXXuicxEaH5mZCEj+tWvPij/pE/zUU5W SccLWT7OhQ6ylL45nGIKj+ZZyH7e/Sj2n3wyJHGYOI4+5RUtgWOMSRELUirxs6ptJqCy 8UtVIO8qKmgv/6anAWOorTX/TamRONmBVFtTOsNozKxQgPkC0+gJ0zgLrf4DaeU32PAx nNfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Ej6ZuAtMP6Tn7q2eykjCojIQTBqtL4v9VHtA7AvK1nk=; b=okKnG7QNkJ28ozYVPN3fPKEXUzxXB+/m6Ggx5IafLnH+XldBTlJ41iYLjibGxp9wcc 0qH/okX20Of4X7M6iI5v/GMCxjpasecyTD1RhG66hJrsy+rbUwERI9CvCPbqgjWhFnfU cWRiIo0ivJoX65qDJI7XkcYHC0py59gmbfu67SZ7ltpIwU3FQ/GLW5C+sTlAfeViU9ON m3aRqScF6m6TUKlo0/8YIao9JwCdIpB9t79yBC358F7oNkbZedrtb2uT+d/e0LVUX1IQ w8LO9NWfQWafvJTuX856zpu4iG2X3ZGX5PNmj2BNp6g0FcqXvtR55mSq8Zw5Q4FF73vZ YWNg== X-Gm-Message-State: APzg51CYNFSPTYq0lh3QrLCK7hu0cUQDBgbxaycADwoVXwrf9ZAwQ+WB sJZh9LHELEi5y3bDtcQIiJVQLD1j X-Google-Smtp-Source: ANB0VdZySiq+N4fEZheGYO2he++uDnD6PvXTZcFLPMl32T8EPfjLpMO+bZ5GlH58MKV9lD+FFsUGHA== X-Received: by 2002:a63:4606:: with SMTP id t6-v6mr25105342pga.271.1535966812503; Mon, 03 Sep 2018 02:26:52 -0700 (PDT) Received: from localhost.localdomain ([203.205.141.40]) by smtp.gmail.com with ESMTPSA id 3-v6sm33543102pfq.10.2018.09.03.02.26.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Sep 2018 02:26:52 -0700 (PDT) From: guangrong.xiao@gmail.com X-Google-Original-From: xiaoguangrong@tencent.com To: pbonzini@redhat.com, mst@redhat.com, mtosatti@redhat.com Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org, dgilbert@redhat.com, peterx@redhat.com, wei.w.wang@intel.com, jiang.biao2@zte.com.cn, eblake@redhat.com, quintela@redhat.com, Xiao Guangrong <xiaoguangrong@tencent.com> Subject: [PATCH v5 0/4] migration: compression optimization Date: Mon, 3 Sep 2018 17:26:40 +0800 Message-Id: <20180903092644.25812-1-xiaoguangrong@tencent.com> X-Mailer: git-send-email 2.14.4 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: <kvm.vger.kernel.org> X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
migration: compression optimization
|
expand
|
From: Xiao Guangrong <xiaoguangrong@tencent.com> Changelog in v5: use the way in the older version to handle flush_compressed_data in the iteration, i.e, introduce dirty_sync_count and flush compressed data if the count is changed. That's because we should post the data after QEMU_VM_SECTION_PART has been posted out. Peter, I have dropped your Reviewed-by on this patch, please review. :) Xiao Guangrong (4): migration: do not flush_compressed_data at the end of each iteration migration: fix calculating xbzrle_counters.cache_miss_rate migration: show the statistics of compression migration: handle the error condition properly hmp.c | 13 ++++++++ migration/migration.c | 12 +++++++ migration/ram.c | 91 +++++++++++++++++++++++++++++++++++++++++++-------- migration/ram.h | 1 + qapi/migration.json | 26 ++++++++++++++- 5 files changed, 128 insertions(+), 15 deletions(-)