Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp282039pxa; Wed, 12 Aug 2020 01:38:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKsD3Q6rytUSW84KnmP1kF44GlVerwvlU3rmFVmWaFfwcN5Pi3a8fJ9V9jE9y76H7jMdiQ X-Received: by 2002:a17:906:b213:: with SMTP id p19mr15352520ejz.39.1597221501675; Wed, 12 Aug 2020 01:38:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597221501; cv=none; d=google.com; s=arc-20160816; b=KRKzxM+avj9kickQVyusPTE30xRq6Wl2RepRil4KvTaY/5DUgJyYGKDGbkQ0Cy3aBI tUP2HM82T1PcsI5VjQNDVvjy7fEJpgugzY8OvlKh+dGRNnvd4Slsk3Y+JPMDV2InKQ8K p7pJlllaVWjw3YWYmlk+xmxQ1LWY8tFNVLx13mznGNtRNYe4NS/9IJKKHwkIjRTP5FvB EHR/4grq88JakbSemr9GULKyyThVZvzJR6w1WwvfakATcqM3G5yHyM+PZ5slXeMaBy+j SRrli7wFMbvWrvC6tgKzpQvdoXp/cQUyssvnQFBnv42mrlmjXFm6U19AvedTBmOHO8Kc moOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=e5lKpdbRMPYHAYu1ae51I164qapzjNwIVzhn7ZJhmbg=; b=iXNkHMDi0bvbSkxEvKJ9skEtxNqUiUz0fXDWFH/5KadH4EDRDuIepnrIv/UmObg1pw sHmUInpL+4WzswZUe9zvwactLzzP9P5Wn6+1QqdPZ+BbwIMSWaNsIQ94vvXgs5mUUywC vJ6dDJhkZQfFMr90H68u4XhgifruhJmxHFgHFDaOwJh/TxGjjzmKbkvB7Q/Me3ZDjAlb 7JHX2bbDChsFZJPaQ6GAGL3/CgeWVSA4JQ75PU9/QlR8F/FgdTpGVxKHigXFzqUjYdo0 cNkpcmePx0IMPaVBGI+qL4nR/JFixMm+rSekURDjAYb8P5WUkY7rR1ztocipz+1dgJxO tGfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b="AcC/qQQC"; 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 r9si841525edw.591.2020.08.12.01.37.58; Wed, 12 Aug 2020 01:38:21 -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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b="AcC/qQQC"; 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 S1727014AbgHLIhV (ORCPT + 99 others); Wed, 12 Aug 2020 04:37:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726976AbgHLIhV (ORCPT ); Wed, 12 Aug 2020 04:37:21 -0400 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 844B0C061787 for ; Wed, 12 Aug 2020 01:37:20 -0700 (PDT) Received: by mail-ej1-x644.google.com with SMTP id t10so1329285ejs.8 for ; Wed, 12 Aug 2020 01:37:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=e5lKpdbRMPYHAYu1ae51I164qapzjNwIVzhn7ZJhmbg=; b=AcC/qQQCnxrUQDrRulzph4bIrPpKQ4hbVAqb0dQpE0YjsJg0S4AcKPqmLXQnYuZ8gQ 9rMS2fX/xoMespxJ1EdabWK4zL1o2n2eaJ+IDZKcNAadf3DO9VvJI4IyDPUvT+oct/lD KK1tAvYAp2gilfvh3FiKoGKiqOV2rTwVpP3Es= 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=e5lKpdbRMPYHAYu1ae51I164qapzjNwIVzhn7ZJhmbg=; b=UJYI1tQ6+KyS2LRhF7sxySAaVmz8mBEhp3eGqBL9ipINz5jk9hwmarVFAyvlwjprV7 RTNdZNn1MfrhsEuH+UhOdPZx/5xUA8ZYBUqwfCMnvS2QkmrrMUwmC0RvH8twJ4i4bVsx m9FaTGFUSw4DDRlglbpyK+M/quRUWJfW0xWNKztB9oDtyVZK1cOejJIHM1tIj6x0b40j bEk5TJPy6qE2RiEE2Zde6Yb9kQ4KULeJ364BPswfdHSUS5TdNDFQs1UZp9jFXVDjbwLl KbCsr43XMA9t6x9AXNF0hS+hVDHE/W+Zs/2SBj7JGUT7v8i+vMgDfA5xiftV+lJqegiv +cIw== X-Gm-Message-State: AOAM532N8NSDOHyK56uJYuny6Bv8som2mjVeFTou4xND/gj/4GP8BbgA kYkQEoo4VIcg5qrNbMWI0utRGp93xURTXNE+Qc9Je+HFOgo= X-Received: by 2002:a17:906:b2d7:: with SMTP id cf23mr29546689ejb.113.1597221439198; Wed, 12 Aug 2020 01:37:19 -0700 (PDT) MIME-Version: 1.0 References: <1842689.1596468469@warthog.procyon.org.uk> <1845353.1596469795@warthog.procyon.org.uk> <20200811135419.GA1263716@miu.piliscsaba.redhat.com> <52483.1597190733@warthog.procyon.org.uk> <98802.1597220949@warthog.procyon.org.uk> In-Reply-To: <98802.1597220949@warthog.procyon.org.uk> From: Miklos Szeredi Date: Wed, 12 Aug 2020 10:37:08 +0200 Message-ID: Subject: Re: file metadata via fs API (was: [GIT PULL] Filesystem Information) To: David Howells Cc: Linus Torvalds , linux-fsdevel , Al Viro , Karel Zak , Jeff Layton , Miklos Szeredi , Nicolas Dichtel , Christian Brauner , Lennart Poettering , Linux API , Ian Kent , LSM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 12, 2020 at 10:29 AM David Howells wrote: > > Miklos Szeredi wrote: > > > Worried about performance? Io-uring will allow you to do all those > > five syscalls (or many more) with just one I/O submission. > > io_uring isn't going to help here. We're talking about synchronous reads. > AIUI, you're adding a couple more syscalls to the list and running stuff in a > side thread to save the effort of going in and out of the kernel five times. > But you still have to pay the set up/tear down costs on the fds and do the > pathwalks. io_uring doesn't magically make that cost disappear. > > io_uring also requires resources such as a kernel accessible ring buffer to > make it work. > > You're proposing making everything else more messy just to avoid a dedicated > syscall. Could you please set out your reasoning for that? a) A dedicated syscall with a complex binary API is a non-trivial maintenance burden. b) The awarded performance boost is not warranted for the use cases it is designed for. Thanks, Miklos