Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1691828ybh; Tue, 14 Jul 2020 04:58:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiTyPXs2CMQ1c1bO2lcbJnOWm/lU+KzkNRhm1ovwThLN2VWZx9xy4VSNukSYlJ0HCQVmUi X-Received: by 2002:a17:906:d116:: with SMTP id b22mr4004008ejz.250.1594727929325; Tue, 14 Jul 2020 04:58:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594727929; cv=none; d=google.com; s=arc-20160816; b=NWNoJ3jI/Cm0JEx9B9ZJ7WK45ImiX2Ey4n+JfynsJjJgIUvMxCZf84GNrPljnRrdnB jS/XkrYHHbf98eST1yzv9LKdRn5n51/Ekl1R6CAv/134tv/8dhaQhmQM8Yq048GYo9vI QMU/PR7f4ybGDwpLS18TxbaxjM8xnxqNvCfDFw08Gvz/F+Q3OmIWZ2wKbddFaQjKffN6 CGO09yV6x0nZKZ4Hh0XxTMZKO3AbDBMeI/yJPN1e8p9fcXPKnh06EogsDpAPSvTZfof2 tD88wVudTpAWMOrWTVKcNHAWVaDmEv5AZosUAEQzJJm3hm4NjfAWKNFyle2KMtFJQMtZ 07qA== 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=+sjMIjM2/JFepdRAXpOHb7ghC5LhQeVZQ0Kayo5azeY=; b=LaPh5JqAxS1ZONgMvbKKWaHc571Mz03WlV0H+CozF6mDjjQZelQfSIGmaMKUTB1phI Z6o2xGp+tC7vXF0yNvbcdw3rbeNuF65nTTal7INNaETu1Qv1Hh+vfoqUwrgne8UjO2BW CLk6z8od/VAQmZxd2sNn8MV0xL2ax18sM++wqbJumRRsmXcfJR6RKGHNNla10Q1Vj0HP Nk4WVQag22MNGwDKo5V44acKNUphV6dO12WVMuXxamafDTP+n1Hq0MM8X9YYOYcvekBl HRb/QqvYGksOejQYRirDgiKqqgemjtpOaAM45SpRLcHUKv0p1Gcxds3EMPLsIXWxo/O8 yceA== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=BWruN3AF; 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 c12si3143002edx.210.2020.07.14.04.58.25; Tue, 14 Jul 2020 04:58:49 -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=BWruN3AF; 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 S1727046AbgGNL4F (ORCPT + 99 others); Tue, 14 Jul 2020 07:56:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726889AbgGNL4D (ORCPT ); Tue, 14 Jul 2020 07:56:03 -0400 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BF16C061794 for ; Tue, 14 Jul 2020 04:56:03 -0700 (PDT) Received: by mail-ed1-x542.google.com with SMTP id a8so16764455edy.1 for ; Tue, 14 Jul 2020 04:56:02 -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=+sjMIjM2/JFepdRAXpOHb7ghC5LhQeVZQ0Kayo5azeY=; b=BWruN3AFlA46ZLoJRaXr2SIqdS24ok0rzjPKi9syKMhMKh0JxzioNs8EdhKj+fmaW8 LtFlAX3lpklg05W9WQ2EZYCE821vzWc7x2++w2jVILwn2boWbSBMsrC6/5ApTmFgISg3 lazdTrnPmPdLzow7yla7Nzl2D4pVlMvE8cJJk= 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=+sjMIjM2/JFepdRAXpOHb7ghC5LhQeVZQ0Kayo5azeY=; b=tD9el2SetmXU88awBYcL46bhV7ULgQ5VPGdCUxhUJLnAj5ZXkUNCpoyKAbJ9EtJXSL XA7ytEid3XD32ndo7yrt1Re9Sl8x80emv8E8I77cYFJT6VFdhZoPAPrG/8hyVdv2I3iO jQKbf1Zbo+rnfQG6bwz13715A8i/XCb4AmAv4aRsQn9nUd9YDLaarkHbF9JxrTaSIHiZ eENWIXqbLmkMO/atxrBn+Ue++WOeLxhjM7aaA3C5hCPNmRVxHRFZzV1tgakaMdcywdmT KHw15sB/3RUepVlHG6r+dJZwhETTB5AULV+Bjga82NUhUiG57TOTX/VIH8moE3p5KVR3 gjUQ== X-Gm-Message-State: AOAM533+1hjz29aeDfQhtnKoypAWuR1mhBbB53n7cFpm72v6dnNOtI8T KOGrvJC2zARLT7CfRdzYScho8xLS6k9p5TAhsaSFdA== X-Received: by 2002:a05:6402:1d0b:: with SMTP id dg11mr3988736edb.212.1594727761659; Tue, 14 Jul 2020 04:56:01 -0700 (PDT) MIME-Version: 1.0 References: <20200705115021.GA1227929@kroah.com> <20200714065110.GA8047@amd> <4e92b851-ce9a-e2f6-3f9a-a4d47219d320@gmail.com> In-Reply-To: <4e92b851-ce9a-e2f6-3f9a-a4d47219d320@gmail.com> From: Miklos Szeredi Date: Tue, 14 Jul 2020 13:55:50 +0200 Message-ID: Subject: Re: [PATCH 0/3] readfile(2): a new syscall to make open/read/close faster To: Pavel Begunkov Cc: Pavel Machek , Greg KH , Jan Ziak <0xe2.0x9a.0x9b@gmail.com>, Linux API , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-man , Michael Kerrisk , shuah@kernel.org, Al Viro , io-uring@vger.kernel.org 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 Tue, Jul 14, 2020 at 1:36 PM Pavel Begunkov wrote: > > On 14/07/2020 11:07, Miklos Szeredi wrote: > > On Tue, Jul 14, 2020 at 8:51 AM Pavel Machek wrote: > >> > >> Hi! > >> > >>>> At first, I thought that the proposed system call is capable of > >>>> reading *multiple* small files using a single system call - which > >>>> would help increase HDD/SSD queue utilization and increase IOPS (I/O > >>>> operations per second) - but that isn't the case and the proposed > >>>> system call can read just a single file. > >>> > >>> If you want to do this for multple files, use io_ring, that's what it > >>> was designed for. I think Jens was going to be adding support for the > >>> open/read/close pattern to it as well, after some other more pressing > >>> features/fixes were finished. > >> > >> What about... just using io_uring for single file, too? I'm pretty > >> sure it can be wrapped in a library that is simple to use, avoiding > >> need for new syscall. > > > > Just wondering: is there a plan to add strace support to io_uring? > > And I don't just mean the syscalls associated with io_uring, but > > tracing the ring itself. > > What kind of support do you mean? io_uring is asynchronous in nature > with all intrinsic tracing/debugging/etc. problems of such APIs. > And there are a lot of handy trace points, are those not enough? > > Though, this can be an interesting project to rethink how async > APIs are worked with. Yeah, it's an interesting problem. The uring has the same events, as far as I understand, that are recorded in a multithreaded strace output (syscall entry, syscall exit); nothing more is needed. I do think this needs to be integrated into strace(1), otherwise the usefulness of that tool (which I think is *very* high) would go down drastically as io_uring usage goes up. Thanks, Miklos