Message ID | 20180807091209.13531-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 5AD9414E5 for <patchwork-kvm@patchwork.kernel.org>; Tue, 7 Aug 2018 09:12:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 489E329C01 for <patchwork-kvm@patchwork.kernel.org>; Tue, 7 Aug 2018 09:12:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3D02829C07; Tue, 7 Aug 2018 09:12:37 +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 90D8B29C01 for <patchwork-kvm@patchwork.kernel.org>; Tue, 7 Aug 2018 09:12:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728064AbeHGLZ5 (ORCPT <rfc822;patchwork-kvm@patchwork.kernel.org>); Tue, 7 Aug 2018 07:25:57 -0400 Received: from mail-pf1-f179.google.com ([209.85.210.179]:44643 "EHLO mail-pf1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726414AbeHGLZ5 (ORCPT <rfc822;kvm@vger.kernel.org>); Tue, 7 Aug 2018 07:25:57 -0400 Received: by mail-pf1-f179.google.com with SMTP id k21-v6so8262231pff.11 for <kvm@vger.kernel.org>; Tue, 07 Aug 2018 02:12:35 -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=BrqzJZWb8/hX4IbhOubAryrfW1AwYJC1UWXowWqx73w=; b=JQVaWj+VDGupxKg4kwdgRzrqSGJ2LbV7gO/kCJ9xRQNMX7WM6KOkq1zmqTkafU9wYv ySdBan0u4kmsdCuczmv2M3A1xTYxRxXZrtnF7duhNUF1S9PCzFav0mqEdnBzHYG7yGx9 i87BUMEo4tWJdvwGqgR/WIZ1NeXkXoS8a+c2LRD+7AhbNT1ZMqRtm5eQBYRHt6MXVerc BrGI85VSeTLzayaITZAYHEFRt9DA8JvIBrXeipWktRZX8kWSY91UAdRetTPCj18EKLdG M9aBl31+xl4/kw+9c+HoadfB1SVlMMlTDruTixhROlKaLuFxjwm3aIA9mVHIsCxg9mgQ C/HA== 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=BrqzJZWb8/hX4IbhOubAryrfW1AwYJC1UWXowWqx73w=; b=Bt2SupQ1fwj5P+SNnt54WdeMU8oJBeBXxhfYFT8VOEEJ5wd2bAYzXomoDiQO9o+wPy KmQy67Gdu4Dob9BuEmZjaM4xR1WHSxMgqjxgHJhufcw8tsBWqrKY+6+IKpO2Se9cx8IL DASOhT4OfUib5S5uhDxMDSC3i14OuHhQ9zKX32mDuwaamYtIFcwNINwpOS9WYivWlK9G hvWHiiGRkwY9jnFGn4KdWz060LzgAlc2MyugHiLTgowB7novrYZf+VDKHatHHUHwcQ3Y PtnDFncnvoehB6Ahiwa/7sTS+igWAQ0M5PxudxfHZmeCv4mtNNklkEq9PjQsAQZmCkpl WxSg== X-Gm-Message-State: AOUpUlGMUqEJ8WkFEDUU1flGm4BkSw8yqeEKeuh8oxhprpoN0E2Uqh3F RuKG8nWlEA+Jqgfb1rB/TsI= X-Google-Smtp-Source: AAOMgpfnf3FxrdeZo2gwmx+CLHBHYV4Be29xGpcLWmFPOI3GO191m5RTsYZ5Ne19iNC8ngrYohitUA== X-Received: by 2002:a65:4344:: with SMTP id k4-v6mr4083439pgq.409.1533633154780; Tue, 07 Aug 2018 02:12:34 -0700 (PDT) Received: from localhost.localdomain ([203.205.141.37]) by smtp.gmail.com with ESMTPSA id z4-v6sm2159645pfl.11.2018.08.07.02.12.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Aug 2018 02:12:34 -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, Xiao Guangrong <xiaoguangrong@tencent.com> Subject: [PATCH v3 00/10] migration: compression optimization Date: Tue, 7 Aug 2018 17:11:59 +0800 Message-Id: <20180807091209.13531-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 v3: Thanks to Peter's comments, the changes in this version are: 1) make compress-wait-thread be true on default to keep current behavior 2) save the compressed-size instead of reduced size and fix calculating compression ratio 3) fix calculating xbzrle_counters.cache_miss_rate and compression_counters.busy_rate Xiao Guangrong (10): migration: do not wait for free thread migration: fix counting normal page for compression migration: introduce save_zero_page_to_file migration: drop the return value of do_compress_ram_page migration: move handle of zero page to the thread migration: hold the lock only if it is really needed migration: do not flush_compressed_data at the end of each iteration migration: handle the error condition properly migration: fix calculating xbzrle_counters.cache_miss_rate migration: show the statistics of compression hmp.c | 21 ++++ include/qemu/queue.h | 1 + migration/migration.c | 33 ++++++ migration/migration.h | 1 + migration/ram.c | 283 +++++++++++++++++++++++++++++++++++++------------- migration/ram.h | 1 + qapi/migration.json | 49 +++++++-- 7 files changed, 308 insertions(+), 81 deletions(-)