Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp947240ybj; Tue, 5 May 2020 10:09:35 -0700 (PDT) X-Google-Smtp-Source: APiQypLKrixekWh+kuJLafyj+E9HiE04gWBAmVLoMKyf8/qnrf9hZtDOzCKZvJJo/ZDdAG+Rcac7 X-Received: by 2002:a05:6402:1684:: with SMTP id a4mr3408132edv.99.1588698575030; Tue, 05 May 2020 10:09:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588698575; cv=none; d=google.com; s=arc-20160816; b=f8MNbbcwePeJNV2vljiOpf6hdg4W15KjJRvvJAmSkMBE6sOZBSKbuXxF7x8AODEIlN eWSS76/nJ+D/hHCiZhr76oOOqMc838aSJGcPlhG2jCHx3xPEtQZ9ie0fAj+DFH3OH0CE CMK7+UOmltHauTj5NJfBN+BR1NGNgE62cYLjpjP0gVJYdLOKuK48B/DkIq/0xkJ/NguT C5rdIrKZHUfzyD4vnGrAZAXBExSG+m/6gaDwknwMx09zgaII1qf+9xJFJ8nvVppsWr6c ydcbFKfrX3eTJyOmOQb/kTLZrBmsGe5M4ZSx6oI07jBOwJFdhcYuZb1j3gud6WPLSrZd ZtEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=vBqzVx+qxfalnXJK7KTGtarAHizzhkjQWkeOeL25v0I=; b=X/VjuEwecZw0tL87elOkHHZP+pvztJggGxnxbcma9uqq6snvg2AKbnVJdDwUsZqIBh I+OKk5B8HhhI8bsl6aScdKMjtTuX5d2olZXUn0pUrkzVUt5wNQHzJb3lv6eYaxTnllKO 0k2kP9e9X8QhOXEH96RtI9KQkNLPOMO7Yr8D49/zGpYlE4Vb0+fwFL5FptArPnqNN9N2 cabxVMI7A2tpUE85MBbGJGPthX22g/QCIdFkLdI2JlUubhmzq97FkIrnbfQ5bnj7csdc 6sMKSGc65egOlfi/q9r/jL8Ijb5gS1U7eFq1ESP3Sbzj8XwZYQF7tzb/h7YNTYep/5hl 4wOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=O5i7do4i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e8si1548093ejd.76.2020.05.05.10.09.10; Tue, 05 May 2020 10:09:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=O5i7do4i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730655AbgEERHd (ORCPT + 99 others); Tue, 5 May 2020 13:07:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729209AbgEERHc (ORCPT ); Tue, 5 May 2020 13:07:32 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A086C061A41 for ; Tue, 5 May 2020 10:07:32 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id o18so1279286pgg.8 for ; Tue, 05 May 2020 10:07:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=vBqzVx+qxfalnXJK7KTGtarAHizzhkjQWkeOeL25v0I=; b=O5i7do4icdhMgjwpo9TCdui1mhr1arbAoT6CXE/FL4FNU3azDor8xRsQqnf1oekzW/ 7Qdnbc7WereNZhHIyoLYjd3kSqw20Zgo4WpUa6FDM3lp00UVK8MuXDFlE01cNDiRoL/O EAJ+Ut2sB0upkwibNjvyQBcsbJtaD+jjUHszOCYm3fAaoq1qP93jucL3eyvdClOkn4r9 aH+4c51iqcLP9pbxn4M3XH4t32uYqryQbnelLqdVh/XN7PZz087P/5s0HNVg2D8n0IWM Us9QoDxYRHRAsocKaYP+GGGf+vkaem3+rBmS0NeZS6uvBlq/NtEMkGqiIrBNdRSUHVrW Rf/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=vBqzVx+qxfalnXJK7KTGtarAHizzhkjQWkeOeL25v0I=; b=DIGI+Bn2LzsmtatwNObpMbBIsT/JFVvKORmtcsJataYhyCqHFeKM7HU64I7gt4nEnE 5u7OnZ41tEvCWR3bC16/hu5z2U3KMVRq/EZCRbRCxHLjdOz+5touTgjKyOxwh3bXM3Pr jmXabYD8E675m7uxvIKxtAntVytCpiCS3dDMq8JtZYKxdeLXX9owrve4+M6aqBGA3LHp ly39r+uH0iBfSBI+CZCUstxXN3XUuirGbUN42T+PG0MLEoffphOTOp3yRQ/IcNu6/wLx EgAyO/8jRkCgGKt+9mUMPJz4jIHGGDQImxycGmcSvjRYwl1ube4bKPT8xE9Eo4ZVNmZ5 CQzw== X-Gm-Message-State: AGi0Pua7a9coJsf84NvNIs7bGM3fBjTHouKnG3d0n38aW3sfFLLmn17n D/PSxaZicdvEVt7WBShqBwH7WA== X-Received: by 2002:a63:778d:: with SMTP id s135mr3848663pgc.238.1588698451129; Tue, 05 May 2020 10:07:31 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id z190sm2471532pfb.1.2020.05.05.10.07.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2020 10:07:30 -0700 (PDT) Date: Tue, 5 May 2020 10:07:29 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Paolo Bonzini cc: Jim Mattson , Emanuele Giuseppe Esposito , Jonathan Adams , kvm list , Christian Borntraeger , David Hildenbrand , Cornelia Huck , Vitaly Kuznetsov , Alexander Viro , Emanuele Giuseppe Esposito , LKML , linux-mips@vger.kernel.org, kvm-ppc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, Linux FS Devel Subject: Re: [PATCH v2 0/5] Statsfs: a new ram-based file sytem for Linux kernel statistics In-Reply-To: <1d12f846-bf89-7b0a-5c71-e61d83b1a36f@redhat.com> Message-ID: References: <20200504110344.17560-1-eesposit@redhat.com> <1d12f846-bf89-7b0a-5c71-e61d83b1a36f@redhat.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 5 May 2020, Paolo Bonzini wrote: > >>> Since this is becoming a generic API (good!!), maybe we can discuss > >>> possible ways to optimize gathering of stats in mass? > >> Sure, the idea of a binary format was considered from the beginning in > >> [1], and it can be done either together with the current filesystem, or > >> as a replacement via different mount options. > > > > ASCII stats are not scalable. A binary format is definitely the way to go. > > I am totally in favor of having a binary format, but it should be > introduced as a separate series on top of this one---and preferably by > someone who has already put some thought into the problem (which > Emanuele and I have not, beyond ensuring that the statsfs concept and > API is flexible enough). > The concern is that once this series is merged then /sys/kernel/stats could be considered an ABI and there would be a reasonable expectation that it will remain stable, in so far as the stats that userspace is interested in are stable and not obsoleted. So is this a suggestion that the binary format becomes complementary to statsfs and provide a means for getting all stats from a single subsystem, or that this series gets converted to such a format before it is merged? > ASCII stats are necessary for quick userspace consumption and for > backwards compatibility with KVM debugfs (which is not an ABI, but it's > damn useful and should not be dropped without providing something as > handy), so this is what this series starts from. >