Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3476359ybt; Sat, 4 Jul 2020 19:17:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZOQDZKThK2HbIvhuHR2H9NtraTMGV9n0+fVy39rGsH6YdDTMN9Ldmqdv4AjcYl3dXi5gJ X-Received: by 2002:a50:a45d:: with SMTP id v29mr48052957edb.284.1593915427548; Sat, 04 Jul 2020 19:17:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593915427; cv=none; d=google.com; s=arc-20160816; b=N6vFbHdOIAi3yTqaleAbC9lAitj16UCb/quOREDVF7g9oCtM3PnVU8oAC45x9rnb7V wDR5TYJCinyR0CEzVtNctK8SbvW2gO7psKvEE+DFBMJ8Mqe35etgN9MSsPr5bw2NRQRH hPA2DY5N5pmcAmDXuRcFQgDk4hFlH0thKp733IhmrkMzHdgC1d79gJnzJ/OTp//74peK Iqu9vn1/MB5gvxyAbS4tntqFip8QFUsSBoRkgHGRgFUJkEX+EIOkT79u3+SEFCogUx61 Zy6U9cJDdOpVkymXmbDTE86UL7emG2EkK1WqpHjdh8iVeAyFzU20qcLbW0DPrR2b0ha+ 3how== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=bYbmHapE90Zxz8viJR7qML2XsV4Actl5krCuXzYUaCQ=; b=vqvbP+oV1BA3L2yt598TG++CJWTrz00VcpTob5n/5Q4TYqJjfYNd6r8YR66yjK94dG C6iNgCR5irLzZ3LV6RN6upTciI74uQ1K7qPELNi2cK/9+t+eQqbA/xYUy38N003x8jrf vnSxo+kBWlO9BT5ptvplwtQDrFlH1Hkoytgh9GcikAmhL7/c/LD2qpslDESaf7P8CLUG KzgnXJYY9qirPdKXJWt5cKf3cu3lgD5yGi4WcvzIMHDc04AM9gcPGwwhzgj7WGJL7Uv5 aYhFLcH/91HXcoiMYT4qMYOMGSAEt5axw0sJ254kUE1NmCHNMu1NgVkzXGshTnaNj0Os ROqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=N7vgR0BF; 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 j8si10728010edy.211.2020.07.04.19.16.44; Sat, 04 Jul 2020 19:17:07 -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=fail header.i=@infradead.org header.s=casper.20170209 header.b=N7vgR0BF; 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 S1728170AbgGECQk (ORCPT + 99 others); Sat, 4 Jul 2020 22:16:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728004AbgGECQj (ORCPT ); Sat, 4 Jul 2020 22:16:39 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A5B0C061794; Sat, 4 Jul 2020 19:16:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=bYbmHapE90Zxz8viJR7qML2XsV4Actl5krCuXzYUaCQ=; b=N7vgR0BFXo1XdlYqfhTORPCjqU hSk0D+3g0pGs6jM7MkdgUQ+es7ylNY+YzUY8aVWAcLtPmQn9HvD5AEaubwWruP9o8/V8gCIyYPS+J 7jdzGdU8flszs+oPKiy+nVWJ3rJ6dDQ+XJfeQTj/ZMBQ1jW/V1oj421bxJQ2ApWJw6YtxFjZk9SKi XNdKu2zRTt0XyWqpci1vQhNYmp/5kHnW8HRk+lDrgZnUhoRITQIBVxxRXY0NAicbT+0p1xzl17JL7 NOwoAWQ8JYKk1mJHttHmEdQMezk2aoZPU8S+ZEsHWcSxuvc7r0qpSCCYPllaeY5IjhyydD93THwFW ZDNkoPSg==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jruCl-0000IH-Gi; Sun, 05 Jul 2020 02:16:31 +0000 Date: Sun, 5 Jul 2020 03:16:31 +0100 From: Matthew Wilcox To: Jan Ziak <0xe2.0x9a.0x9b@gmail.com> Cc: gregkh@linuxfoundation.org, linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-man@vger.kernel.org, mtk.manpages@gmail.com, shuah@kernel.org, viro@zeniv.linux.org.uk Subject: Re: [PATCH 0/3] readfile(2): a new syscall to make open/read/close faster Message-ID: <20200705021631.GR25523@casper.infradead.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 05, 2020 at 04:06:22AM +0200, Jan Ziak wrote: > Hello > > 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. > > Without the ability to read multiple small files using a single system > call, it is impossible to increase IOPS (unless an application is > using multiple reader threads or somehow instructs the kernel to > prefetch multiple files into memory). What API would you use for this? ssize_t readfiles(int dfd, char **files, void **bufs, size_t *lens); I pretty much hate this interface, so I hope you have something better in mind.