From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7BB2EC43613 for ; Thu, 20 Jun 2019 09:02:32 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4476E20679 for ; Thu, 20 Jun 2019 09:02:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=bytedance-com.20150623.gappssmtp.com header.i=@bytedance-com.20150623.gappssmtp.com header.b="OD37YE2H" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4476E20679 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bytedance.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:45010 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdsxj-00028l-Fb for qemu-devel@archiver.kernel.org; Thu, 20 Jun 2019 05:02:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38435) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdsqM-0006RW-Vx for qemu-devel@nongnu.org; Thu, 20 Jun 2019 04:54:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hdsqK-0006WL-ND for qemu-devel@nongnu.org; Thu, 20 Jun 2019 04:54:54 -0400 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]:34461) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hdsqE-0006L6-QO for qemu-devel@nongnu.org; Thu, 20 Jun 2019 04:54:48 -0400 Received: by mail-pf1-x443.google.com with SMTP id c85so1294578pfc.1 for ; Thu, 20 Jun 2019 01:54:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=8YwYO4bCCzFTtyvf/RTMvLZ3PGv0Kl4cUOALIRGnxFk=; b=OD37YE2HUxagU6ekUkBJz1cGfDHsx73tIxdq/a+2oZdWw/KrjsL5uD3FRu+m1ma2ky N8Gt8GQA71C9cIms8A/AsSLJqwPRKwnJQtsPOlHe9LQB7xK3sflwBfSM+n8rIfOPGsS6 NLdJUIXNd8TnT22LqOb78BSIIoAvBoHwvFEvNw/2CZkxzmTr1+f50SSQcdnc9F6sGSec 61UqNAt5obivfM0AQYYOTA5aTwx1gpP3Vz/epMieyUOXeczgXJ9wmtgeYZ4iFrKkDZ5v e8Brf4m3s2STfIiMltHGklRqcPyORHl+0U3CDbmxnmpbrE5HcTtDHb4jhHH5I8LH1Zpy C+Pw== 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=8YwYO4bCCzFTtyvf/RTMvLZ3PGv0Kl4cUOALIRGnxFk=; b=Q+uldhgN+k0CYyo1nOIEF6XuwW0ek7Hx1rpNNNQiaItoFYzYOY37yp8MI31sQxMkol 7jDVv18U+FOchMfuO75YNK+3dTzXeQGH3VCMTByVIxRiALlFvdRwh26eR2C8N79ys4Vr F8UFpKoMQFujg7avbU/TmyEs7VH7EHK1MGtz4VLXv9CRcpX/icUHnT9OB8lpYBtu0GMv v61jn0jUjJu5xUGuxt4/DtMn01RHfZjBmzoHtZ+U8/KGb2zLmAs8CqcPbid8ucZ4FGEu 6TgaseOod2rNWOfWndtaqaRI6FM4fMP9nWCex1sNCp7WsPYtCn2zkXgoY+ilrQiPFns2 F8hQ== X-Gm-Message-State: APjAAAVchXvi+NFQKBU3XFLn184rB5u8WUduqFbVW646lZRXEYL1+Fhi Dfx1vH6nsC2/s+h5QMQbADfI1A== X-Google-Smtp-Source: APXvYqyXr0LOPSU7IUlZCt4H/ywFXzQYzcqBmqfh9GDIPaXYqEt57HxEIxsVPh0tT07xU9GaP5fqBg== X-Received: by 2002:a63:dd53:: with SMTP id g19mr11447345pgj.3.1561020878744; Thu, 20 Jun 2019 01:54:38 -0700 (PDT) Received: from always-ThinkPad-T480.bytedance.net ([61.120.150.76]) by smtp.gmail.com with ESMTPSA id c11sm19240635pgg.2.2019.06.20.01.54.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Jun 2019 01:54:38 -0700 (PDT) From: zhenwei pi To: kwolf@redhat.com, mreitz@redhat.com Date: Thu, 20 Jun 2019 16:54:29 +0800 Message-Id: <1561020872-6214-1-git-send-email-pizhenwei@bytedance.com> X-Mailer: git-send-email 2.7.4 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::443 Subject: [Qemu-devel] [PATCH 0/3] Add block size histogram qapi interface X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, qemu-block@nongnu.org, vsementsov@virtuozzo.com, qemu-devel@nongnu.org, pizhenwei@bytedance.com Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Set/Clear block size histograms through new command x-block-size-histogram-set and show new statistics in query-blockstats results. This command has been tested for half year on QEMU-2.12, and we found that 3K+ virtual machines write 25GB/s totally, the block size histogram like following: 0 ~ 8k: 58% ~ 62% 8k ~ 32k: 10% ~ 12% 32k ~ 128k: 2% ~ 3% 128K ~ 512K: 24% ~ 26% 512K ~ : ... And the histogram data help us to optimise backend distributed storage. zhenwei pi (3): block/accounting: rename struct BlockLatencyHistogram block/accounting: introduce block size histogram qapi: add block size histogram interface block/accounting.c | 55 ++++++++++++++++++------ block/qapi.c | 26 ++++++++++- blockdev.c | 56 ++++++++++++++++++++++++ include/block/accounting.h | 12 ++++-- qapi/block-core.json | 105 ++++++++++++++++++++++++++++++++++++++++++++- 5 files changed, 235 insertions(+), 19 deletions(-) -- 2.11.0