Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4125460pxu; Wed, 9 Dec 2020 08:59:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpDEjf6QqWLEqg3bb+1O7TilsYw2jZRsaDYIxkG9LBaV7lcWz/iiLns32PA9d59UB+3Die X-Received: by 2002:a17:906:edd2:: with SMTP id sb18mr2992732ejb.114.1607533197406; Wed, 09 Dec 2020 08:59:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607533197; cv=none; d=google.com; s=arc-20160816; b=sgvRsIdame9lmdSELTkZHIJI0/aF3s8yTYJRc4GDvwW07+KolrYU8Sssz3+8ptT600 STQ4sj+qWzMVfHSf2PkGm4T87euJn6FDmRybbwHyIH1Z8N8j2i4GXgxZ+U84VSHnAdj3 pKvxPn0OtPrdFQMvXYxtx5b6l+sp0XGNTcPba9n3ZeM9Yb+/g1ruhJTZ6tYXg2CfrM1U tGnLRgS3tqAYVZaR8P0J7Q+wd6ZmshVrRyW4fCTIXPBXc0EL+O6IeGz6ZtqX7IXz3ELY KTJcMUfkZlVFkRZeXKaHjMAwaZ+uA9a7X49xfJ470AbGy61s1LoVsCGAk0urSjnGlf1i +wYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=pFrCVN6Gn+ZyEFuOYf0G1cqZKi+SMHYMwyy/Z9Ayq2A=; b=GUe2IRIHNIrg8UatlrGjFyRsb+XVVDQJmi0xZfMrRYaZPt1gj5KH4R3r/zRO7msL6t 93Zs/WAmbqY28y1Q18UhrV80/6qNhpjxJTfs5oZGvjjzkrou6qqog7+VRr/SqGAi6xFv yy+RmC0Mxqsc2dPeIEQYiABhrOgwUDO6ZNqFYOR8iwwSh475LolrPhpWe/x2Mho6JKL3 f0SASgNpWM9r6fEzcLPyqVN7bK/NDLYYFDqKBCzpc8Z0sN50t/oy0ertoSOPuTKLKmkV +s+UxoYBcRoM50g3RezLFKDX1vXnAjlHzUoY3VGIIKWqsg0CaV7hALledX7ozseL3yHc jMfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=mZRI3Yhm; 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 c7si1041728eje.347.2020.12.09.08.59.34; Wed, 09 Dec 2020 08:59:57 -0800 (PST) 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=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=mZRI3Yhm; 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 S1728587AbgLIQye (ORCPT + 99 others); Wed, 9 Dec 2020 11:54:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729730AbgLIQyc (ORCPT ); Wed, 9 Dec 2020 11:54:32 -0500 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C04DC061794 for ; Wed, 9 Dec 2020 08:53:52 -0800 (PST) Received: by mail-il1-x143.google.com with SMTP id u12so2145730ilv.3 for ; Wed, 09 Dec 2020 08:53:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=pFrCVN6Gn+ZyEFuOYf0G1cqZKi+SMHYMwyy/Z9Ayq2A=; b=mZRI3YhmR5R/0CaDyOv1WOHWk21Oa2uAoEJRpiBgsKRS0Zq3ZP8tqXNE+iPO/vaIJk cdzM5Vqe1Rek8FTcSpl1QA8bG4SF5tsBZaRhkwd5p+HHSSQdQn1hz40UZJjEQAtWWQxh D4oVNrgDtlELXrT1dpfLc5G5JLX/LpNpdlnKg+K2jt3p1wHM69QXKoC3qOVhVj0atwe8 LhOXGAddX6vUSoVOzPE1bcTaxJzAJwoQdvbNgqBWwFIH3TANWny1QJkqpftz4LKhBHOS bl5NHaV+I+kXTjwuVwR1b845uYTbfWleV4nVveGywUaRoEqpvaXUOZEf4roZ+SbWYPPF 9ydQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=pFrCVN6Gn+ZyEFuOYf0G1cqZKi+SMHYMwyy/Z9Ayq2A=; b=oBSyABhYJgUrU3Mcvb+X69mz6ayb5qOlriVOsml001XbLgPheenDusVQzkoKHQq7rQ 3w+OWZyojdhBQZI5Nx94wPIHPQjxUTCmK6qU21+hxPzTy62/EBR1FIry4UAV+AVTC75A zrIAELlT4rHG5a1RnKvrXUmytusgK7Uqwbd8bSOSAA67Emt1X2GsO3Qax8CkWsOc35LI i8UsC1sInAzcSeH6+SIE00jl2oEDE2BOkxnoFyD2NfLwkUeBDqLsoAq7Qjaef6p6tyUF J42RHSibupQ397AeLApVuLsQfoWVeP0y1UVkOquRNllYLQlFZdsgNIQo0brB/3qKd3DY 9P/w== X-Gm-Message-State: AOAM531x5+HEVWoXBzTM49PkxlQkKC8ga2Zac2dfEZOPY5rzcQ42N1X9 pjoqDv4yL3XWs9Zs0zORJ4EALA== X-Received: by 2002:a92:d44f:: with SMTP id r15mr4160637ilm.237.1607532831277; Wed, 09 Dec 2020 08:53:51 -0800 (PST) Received: from [192.168.1.30] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id e25sm943626iom.40.2020.12.09.08.53.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Dec 2020 08:53:50 -0800 (PST) Subject: Re: [RFC 0/2] nocopy bvec for direct IO To: Pavel Begunkov Cc: Alexander Viro , linux-fsdevel@vger.kernel.org, io-uring@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig , Matthew Wilcox , Ming Lei , Johannes Weiner References: From: Jens Axboe Message-ID: Date: Wed, 9 Dec 2020 09:53:49 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/8/20 7:19 PM, Pavel Begunkov wrote: > The idea is to avoid copying, merging, etc. bvec from iterator to bio > in direct I/O and use the one we've already got. Hook it up for io_uring. > Had an eye on it for a long, and it also was brought up by Matthew > just recently. Let me know if I forgot or misplaced some tags. > > A benchmark got me 430KIOPS vs 540KIOPS, or +25% on bare metal. And perf > shows that bio_iov_iter_get_pages() was taking ~20%. The test is pretty > silly, but still imposing. I'll redo it closer to reality for next > iteration, anyway need to double check some cases. > > If same applied to iomap, common chunck can be moved from block_dev > into bio_iov_iter_get_pages(), but if there any benefit for filesystems, > they should explicitly opt in with ITER_BVEC_FLAG_FIXED. Ran this on a real device, and I get a 10% bump in performance with it. That's pretty amazing! So please do pursue this one and pull it to completion. -- Jens Axboe