Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1572526ybh; Tue, 14 Jul 2020 01:08:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwasW0r9mxLVEQhMMuaCkjrs6FDWNpQW1Jo844YM+fgPAJxV4b1KNRvhesBjZCjOVFCdP5k X-Received: by 2002:a17:906:8595:: with SMTP id v21mr3466464ejx.333.1594714093209; Tue, 14 Jul 2020 01:08:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594714093; cv=none; d=google.com; s=arc-20160816; b=atp6UuIOxaqAcuXZa5LE6u5bq/p+4ZjqJVrCjiABxaP6539Byr/KzV5oyMw7x7siDm GWvvgoe9RqY2mecJ5btGt1/rcRXrIpLoYUaHyUGoZj0S+wP91KSbTVyzqPEWrFwWY+7o 9eQ7dz9BvuPyNU68S5eBUZJGMVXnOl/5B71NFCwc8KLuI93ByGzAKvY99cFgmwfkhfFD feKVodvqnlX8zu0srKy2c9YTEOiXX8nVRhYP9fOfH1jrEH77Sx+1tVlr1kCFEWJPmeRK sdbfXkepsPiHYSr4o5/aSbDq0jtQDdJF47ydAQb5CXZ4cW/72S9Lp+ZdywTleBThyyBS y5zw== 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=VxG136uE7k/7DQKw2dWH82lAeA2t/fDkcPS0g4RMW9A=; b=FgOCA3l6dCMsuowWZQEoLKK6Z2GJ7U43bzPdwdmnxNR42ZxsqIFMPK3HbaeKIxHP2Z dTnHSiafBDGZDbHGfDfXQAWK0qS+UiBHYEdIyhOxXDj4D1U71fXBOMvw1xAi8og23KRc YRE0G3foQcXb+5sZHacz5aK3mpc40FM3LoKuX1aAb96083eZ1OGJB/tnjxQLcItnaVWR jvxYbj32V354yqNUzBQ9Mr7IzRD6j9Si3uo4Je3ILH8X9i8bum4tW3VcidnU7Ij+R3ZM IETNZDFr0YxAZyp0ucwdXffMC7/quDUuRagI7IQZCCX/P3o4ucZIr/q5p0zAxL4byIEd hRQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=El1qSrVl; 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 lc2si10348499ejb.424.2020.07.14.01.07.49; Tue, 14 Jul 2020 01:08:13 -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=El1qSrVl; 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 S1726670AbgGNIHS (ORCPT + 99 others); Tue, 14 Jul 2020 04:07:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726609AbgGNIHP (ORCPT ); Tue, 14 Jul 2020 04:07:15 -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 081CCC08C5DE for ; Tue, 14 Jul 2020 01:07:15 -0700 (PDT) Received: by mail-ed1-x542.google.com with SMTP id a1so10709580edt.10 for ; Tue, 14 Jul 2020 01:07:14 -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=VxG136uE7k/7DQKw2dWH82lAeA2t/fDkcPS0g4RMW9A=; b=El1qSrVlx5j8OzqWY+jAkGIyxjaAfYH+cAXX/jS9K9Nm7LDsD7Ow20X6ZI/9L4i34m i6WsR0CtSO9QTmeXYDIWsjH1tlcEOcfyjR+Yn6OuRbJMAlEjvHkjEtfJJvDtJKZFb57q UXgWM5FxsZRScs6IL4dz92fo4cR62DnQk6wXY= 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=VxG136uE7k/7DQKw2dWH82lAeA2t/fDkcPS0g4RMW9A=; b=OzOnvbYggekxSyK+TihYgwHZVwDKwPLTKTMvq1vltAsq6Dg/jrEHnpFagHFs2wwADu MCN9OUmoYcU7MJNd5ofO6eCuFnCRCh9xGuPOlmfuyS2lcteypV9pLHt7T9A9YfM+sv9N 5ThVXKmJyIVAnIm4qTz982ZJlIU5vt0WYNDes6sJLnKE17m8M7gedOxLEwcp2RkWDdRO EXg9obk/YOCQQPIoybzlopEydK5IEf+6pGIsrP/jzAzDLc2Q6ZnLqLuGLrUt9z+TH5wV X5r3d/57LaplPYl8zgLfhdt+6R1KSI1sChQJ5yT201BYOoVLfDH249PWWbLXcWzYja8U 1NIg== X-Gm-Message-State: AOAM532dke4HHwZGx1pt92Rw9RJXKQURohUkYicyWw6juk/W9mXwMaZ2 Vu9NbU73zxJgVHAW2j9L6ZnO53F3USoBKUlWE4kL0A== X-Received: by 2002:a05:6402:1687:: with SMTP id a7mr3263957edv.358.1594714033497; Tue, 14 Jul 2020 01:07:13 -0700 (PDT) MIME-Version: 1.0 References: <20200705115021.GA1227929@kroah.com> <20200714065110.GA8047@amd> In-Reply-To: <20200714065110.GA8047@amd> From: Miklos Szeredi Date: Tue, 14 Jul 2020 10:07:02 +0200 Message-ID: Subject: Re: [PATCH 0/3] readfile(2): a new syscall to make open/read/close faster To: Pavel Machek Cc: 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 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. I think that's quite important as io_uring becomes mainstream. Thanks, Miklos