Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1569460pxy; Thu, 29 Apr 2021 09:39:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwldGAd5N9Ku+0HAayLTx0DsnokO28SkTYWl56Be47y44UZTk4M8AzPw7H+KLoVeIhzDOzU X-Received: by 2002:a63:1d46:: with SMTP id d6mr600567pgm.60.1619714356056; Thu, 29 Apr 2021 09:39:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619714356; cv=none; d=google.com; s=arc-20160816; b=s/nZxQPGvENFl+kNOdrBJVkh8oLxjyLlqp5O2s+BFP3wWn/NeK4uQnRBZcZszkvfPQ hLdObeQ5Z/Ut5OLOxj9vijzaGzNVWfSWieJrfaoT6nAT2lHiMHP+RTPTaY1bKS+cHrch ZYG5HYgFe8QLeauIxhbr7JdZqZ0xW3cmjQzIyGIvR2V5QQq3Pge83DEUNQaqSR5UYWqo Jf/H5lOZj+hF++npiZcxS3z8SzjClORapnyfx5pFiIxhd08zIP91GkyzliSS2a1bZQml Dio7u/WzycrIPQR3MhZVosdJUUgmvEB9eC0Td4Ilcdv+vn2K83NFydORFJholK+UX5Xm 5gHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=1jy1gsfA2QLvOvx7TBvVpUXXLbyGvmt6zTTbfyCza5Q=; b=JhwW5uA7a8HD1Z/0FZDErrVd4WKkArVnGOO/9bOG1tiQzSAgGnzcRBOlZSX8mg+vEF QBeKgnHtsnk48OipzRSqo6xsOnS4H4d74N9S4Nr+WxATqXWS2L3ocLf3j/BBE8dBs1I7 VK/Y+Qm/wq3+SCjp3OHv8EkXX4t1jI7hZuKTLtt8hSQP2vc6DXa87VfIBw5yNlDbTP1d Tj4ADsx4A5gx866kM2tHAQwMyVKC8cQGd5Eoq4t+fUAjqWf5WmZ+tdtvfby9XEEGdYas 6BbyH/OJi/85YrMkYjPZX0Lo2ES/87IX5WUZVo5GwfJQ6Lh2gtSVh7urCCYMDtYxuQdc bVnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=e4nJJe8A; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z12si432992pgu.160.2021.04.29.09.39.02; Thu, 29 Apr 2021 09:39:16 -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=@linux-foundation.org header.s=google header.b=e4nJJe8A; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240748AbhD2Qhc (ORCPT + 99 others); Thu, 29 Apr 2021 12:37:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233099AbhD2Qhb (ORCPT ); Thu, 29 Apr 2021 12:37:31 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AA09C06138B for ; Thu, 29 Apr 2021 09:36:43 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 4so45908764lfp.11 for ; Thu, 29 Apr 2021 09:36:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1jy1gsfA2QLvOvx7TBvVpUXXLbyGvmt6zTTbfyCza5Q=; b=e4nJJe8AlWJAidgWI6OhihjcNqgwz0DPI5Rl5bu5T1BqIhh4NlFmQJRL449TeVMK5y ChHE9s6lfcj3/LCDVQtcCqr9Wmb1XcpRoGlvPNWK/jjagajCseaN2xGpyJacHDtsZaYY 4xMHvg4nD4E30NOL+TVcLYCkKH7UYRgfAT6Sg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1jy1gsfA2QLvOvx7TBvVpUXXLbyGvmt6zTTbfyCza5Q=; b=KhIkUkccQegq+J+MtaK/5utiN23+fB6LZqi8O3a3pz95KFQPhsMe1KzUa1oYWNa5wH 0QTBUNT+WiPUpegJnWhu+0DPaJvU67JDo9LbsKs8vfxadd4JhR1OtV7/00EdRUSqadNQ t1jbmpN4YbGYqpWfqLU/l3M0DUuRSM6sMLH5JujfTzsPOa2+/pHaY1Hvyql4R0rI4hhz 9ObDqpZMIuQhr7wKMt2Try2a2lTnYSPqdC73vnn11x1sEHIqgPO3OIPPCwrMdGqy4MIJ 4L/DjsDolS2YyfmHkIRxuv/72S7vaL6ytVPcqYxvGNtuSjQ9y7gGEtBn9QvahTjOpZKx acWA== X-Gm-Message-State: AOAM532RX6Rsun/pOLnlyVJDv7AN9+II1b8dgalJ2tlrwOgHMifL3sF5 VMQiWRexvyOyj9mcxFKxU2wpZQDaHC1/VJ9h X-Received: by 2002:a05:6512:3f93:: with SMTP id x19mr315041lfa.182.1619714201104; Thu, 29 Apr 2021 09:36:41 -0700 (PDT) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com. [209.85.167.52]) by smtp.gmail.com with ESMTPSA id f11sm25716lfu.109.2021.04.29.09.36.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Apr 2021 09:36:39 -0700 (PDT) Received: by mail-lf1-f52.google.com with SMTP id 124so24787458lff.5 for ; Thu, 29 Apr 2021 09:36:39 -0700 (PDT) X-Received: by 2002:a19:7504:: with SMTP id y4mr273122lfe.41.1619714198332; Thu, 29 Apr 2021 09:36:38 -0700 (PDT) MIME-Version: 1.0 References: <20210429100508.18502-1-arek_koz@o2.pl> In-Reply-To: <20210429100508.18502-1-arek_koz@o2.pl> From: Linus Torvalds Date: Thu, 29 Apr 2021 09:36:22 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] proc: Use seq_read_iter for /proc/*/maps To: "Arkadiusz Kozdra (Arusekk)" Cc: Christoph Hellwig , Linux Kernel Mailing List , linux-fsdevel , Alexey Dobriyan , Al Viro , Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 29, 2021 at 3:04 AM Arkadiusz Kozdra (Arusekk) wrote: > > Since seq_read_iter looks mature enough to be used for /proc//maps, > re-allow applications to perform zero-copy data forwarding from it. I'd really like to hear what the programs are, and what the performance difference is. Because I'm surprised that the advantages of splice would really be noticeable. I don't _dispute_ it, but I really would like this to be actually _documented_, not just "Some executable-inspecting tools". What tools (so that if it causes issues later, we have that knowledge), and what are the performance numbers? Linus