Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2149109rwd; Fri, 19 May 2023 01:29:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5yudO7Lx7ybIsLWbmjRO4bygO9cZ4OmTREJXLO8yQ6grXRZrUwnwj4c3RM4ezTjyyBF3md X-Received: by 2002:a05:6a21:1799:b0:103:964d:4971 with SMTP id nx25-20020a056a21179900b00103964d4971mr1188555pzb.48.1684484982238; Fri, 19 May 2023 01:29:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684484982; cv=none; d=google.com; s=arc-20160816; b=0THJ0UxDCUg/kpItKnWBCD9CReYBjnCJbGBvcEQaj7wktyTXyQ92Cr5daOeZqy+tCE 23yvWzy+S5OYBApZ/fXn53Qyb4Fs028DLxzyMVSL/BQ0GzMGytWkl87sTT8B6gyud9P7 Kshx7B/0TgGftLcB31wSWK4MSiIXrBknMcIOFUGttznhcp6sE1T0Gbb2zwClvM9/gHEF Dhsuzqn0v0a22HMdycskwVpD3oyUkXOOKUpsAOtC27Ypnc5zPFwpyTuoHLQhJGV2HdI6 rDcDolJwHM/LJyrUhKu+d2LXIZL6lOmiq8Tiiz2inrtnv/Jox9T6KjQN7NCYn6ujwI2l 0gNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BFzUO2iOYxpQ+ci9kXmcQJ5nhyqRwqFMh5f27RJ2EnE=; b=DJqianx+KZ80z4noLILIIFiwbR2c5gsacch8Yjd2YJ0DWvGrCOT5wq9VgplTQ1KtqG M1BeZsdzVQkW+UtHxg3vAZRLK2nwCziZHQZCIw8g76gWqjhFJSjP0TjEy58uyYgNvvSe YztBzQwfM9c1O9qPZCMP0wb64qzo0lqTbPZTg1bne2ZW4tXf/C/2Dn6EH4tW88vFAgry bU0sZhgAZxMZT/Z6Z/S8IK9HkDVdHOYzk9/2dvsZp4XddUz7X98OdiD+KKGQwx3m+uYH y1eCrhL3B3oJU67xj56fSSzarNjg0NIsihgdcwG3gxU3tLUCgUSEIiW4io8GLAFOQzt1 xyHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=hAZn1zDX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m26-20020a63711a000000b0052c9cacb70dsi3392340pgc.592.2023.05.19.01.29.29; Fri, 19 May 2023 01:29:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=hAZn1zDX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230107AbjESISm (ORCPT + 99 others); Fri, 19 May 2023 04:18:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbjESISl (ORCPT ); Fri, 19 May 2023 04:18:41 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AB8EE6; Fri, 19 May 2023 01:18:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=BFzUO2iOYxpQ+ci9kXmcQJ5nhyqRwqFMh5f27RJ2EnE=; b=hAZn1zDXW7SqV0VvUeQLCcPL6v SJ4rnXkGFdB45EfWLQXqLoXg705MMv+K9t6/IsJkyy8ZfPK8c174f10qmVNS18l4pOHI8L0Q2Ff7C xIoqvT5vA6xz+H5LBIEJE9dnvKbXgUbY/awctaAgG5AOxX+IseDCX0fbwXcSAGKuQFwlJ5JogZ8rb lxYq/GlXj3p8vCDDuUnBbr8rI7CV61kwR6MSO+1kFcJlB2fKfS70gPiJt16Hp7W6ykWLSjjW4+pBd Ac7PVxciNnaTn3uSZTYtbojxi7QSObPYDCy7kNqzIjxf2YGxvSmbFBJrpvQfxGK7UKsFZIZ2rPWsh QWBNMBrw==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1pzvJl-00FV3Z-1w; Fri, 19 May 2023 08:18:29 +0000 Date: Fri, 19 May 2023 01:18:29 -0700 From: Christoph Hellwig To: David Howells Cc: Jens Axboe , Al Viro , Christoph Hellwig , Matthew Wilcox , Jan Kara , Jeff Layton , David Hildenbrand , Jason Gunthorpe , Logan Gunthorpe , Hillf Danton , Christian Brauner , Linus Torvalds , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] iov_iter: Add automatic-alloc for ITER_BVEC and use in direct_splice_read() Message-ID: References: <20230519074047.1739879-1-dhowells@redhat.com> <1740264.1684482558@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1740264.1684482558@warthog.procyon.org.uk> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 19, 2023 at 08:49:18AM +0100, David Howells wrote: > direct_splice_read() is then modified to make use of this. This is less > efficient if we know in advance that we want to allocate the full buffer as > we can't so easily use bulk allocation, but it does mean in cases where we > might not want the full buffer (say we hit a hole in DIO), we don't have to > allocate it. Can you eplain the workloads we're trying to optimize for here? To me splice on O_DIRECT is more of a historic accident than an actually good use case..