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=-10.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 E61C9C433DF for ; Tue, 11 Aug 2020 15:48:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C269A2083B for ; Tue, 11 Aug 2020 15:48:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=cloud.ionos.com header.i=@cloud.ionos.com header.b="iCSzMwKR" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728872AbgHKPsu (ORCPT ); Tue, 11 Aug 2020 11:48:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728862AbgHKPsu (ORCPT ); Tue, 11 Aug 2020 11:48:50 -0400 Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38447C06174A for ; Tue, 11 Aug 2020 08:48:50 -0700 (PDT) Received: by mail-ed1-x543.google.com with SMTP id m20so9441180eds.2 for ; Tue, 11 Aug 2020 08:48:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloud.ionos.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=yoEe1Ej3jGb2+oD8j8Te2ep7E+5cYfUwOpnUUVRTv2I=; b=iCSzMwKRzHNiY6pMdRfITXYABxdBP9XPLRxovedSocAHBAIkzqVU8iDCkat54q3qqS 4Tz27siRVcQC7EBo8vUlfg3mZTPqQlGhrUHxg5kXZA1L2EjK9STh6niL6aP9aZHFXEME fspNMGUxTh9TMG0SUNuBTZki/IzSRep0mp8Hhb2P/Ig5UWOdHZXbnShNHiMgKjfsbs2F cH1BdCYWhltQ5QHkKbacRqYYn9BvszJVMKoWyzJCpCJSEForj37O1ZVXgHYXFs4+P5Mu 1vGjPgDxX2ZZz46F1ZXEGZj6vi/SI8cdxWgXSdqnXv/O8RAQxAroH6HDNI5/+0lWZyYO A6HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=yoEe1Ej3jGb2+oD8j8Te2ep7E+5cYfUwOpnUUVRTv2I=; b=d29lAbDlnWExBCZe8J2YzLkOF/bA/ytyq5hK5bckD54Hc8O01KStAtEk3Pe/WCWrfH V4CrTvvSxnkklnkrs/4NvJySEr0+Hc8P/p1Ap6ipgIJpNIYTyoXWiOj9AtsaIklJnfKD 34Xm0K5/IN8ur1Ex7gmElgUulteZJp1/uR0uAgrHqljBeZmSSRNgIteUXsuG0XX1o+S4 C1Yeg79ewSB0s3o2W9P2timqjgknM/o+xqIw7qVndu1bE5lZZRQ8begTlTsKBps7pOVs u0KokRgBXOmhElqB8QqFMs65WbJYVoyK3L5+ws5tmwNl3ypogi7trljdk+jNBgAssv6i jAYw== X-Gm-Message-State: AOAM530Bfw5oXpaUC0VfzBdDgKIvp0lZpbGJ3MO8W5zQSOLZBoSctD9S Z6lbEpTSIRUW6uIJTaUVPCJToEPUpFA= X-Google-Smtp-Source: ABdhPJxAy6Q++TTWmNguGZZcC39vZ4wMZ0y8biNBwtbfYsvnrF8rQIJVTZyJHnEiKM5/oAqMJVOiYQ== X-Received: by 2002:a05:6402:22c8:: with SMTP id dm8mr27703852edb.41.1597160928359; Tue, 11 Aug 2020 08:48:48 -0700 (PDT) Received: from ?IPv6:2001:16b8:488f:d900:6040:e108:8964:94c3? ([2001:16b8:488f:d900:6040:e108:8964:94c3]) by smtp.gmail.com with ESMTPSA id g11sm12595514edt.88.2020.08.11.08.48.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Aug 2020 08:48:47 -0700 (PDT) Subject: Re: [PATCH RFC V2 2/4] block: add a statistic table for io sector To: Aleksei Marov , axboe@kernel.dk Cc: linux-block@vger.kernel.org References: <20200713211321.21123-1-guoqing.jiang@cloud.ionos.com> <20200713211321.21123-3-guoqing.jiang@cloud.ionos.com> From: Guoqing Jiang Message-ID: <46ed3e8f-6845-4e0a-a9b7-46562641e8d3@cloud.ionos.com> Date: Tue, 11 Aug 2020 17:48:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On 8/11/20 5:04 PM, Aleksei Marov wrote: > Is it possible to collect the very same stats (distribution of sizes and > distribution of lat) without having static maps in kernel but with eBPF tracing? > Like using https://github.com/iovisor/bcc/tree/master/tools/ > * biolatency for lat distribution > * bitesize for size distribution > Please, have a look at these and similar tools (biolatpcts, biosnoop). Check the > examples they have > https://github.com/iovisor/bcc/blob/master/tools/bitesize_example.txt > https://github.com/iovisor/bcc/blob/master/tools/biolatency_example.txt > Let me know what is the difference comparing to your stats. The difference is about the cost, please see the link. https://marc.info/?l=linux-block&m=159458634517068&w=2 Thanks, Guoqing