From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48BDAC433EF for ; Thu, 9 Jun 2022 19:22:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245256AbiFITWR (ORCPT ); Thu, 9 Jun 2022 15:22:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244349AbiFITWQ (ORCPT ); Thu, 9 Jun 2022 15:22:16 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C63401F1BE7 for ; Thu, 9 Jun 2022 12:22:13 -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=6zNNz9dHtD4cWtle0UDVZNgQLDCyZjFlezWMv9j9PaI=; b=o9kS/GrDF2/SW4FXuiKSgUxBHt 1s7IZBR2J3MemINllh07eodIJGbin54iBJtvX4moUaPYtGgIruqYJYpV0kWQ9hbZeHj0EUKFwS3+l fgkWayYpkUPShznKCDMJtEJea21FeyESpsn0eqzyB0YCQLof6UO81AujWb7ZGrMcgafFd41MWZ101 I+c900d7B05B1b2BEF2JYo0BeP7fKnaqiAAaa3vRQPtOXX1U2r+4ZiyQjhOpjh0C0Mj7JqR5wMLNX BUvWcMK0a8Ayu/E9q90vjzV3UYCNHyZAjHZZCDgvV7kiz2FpmqGspn1gNmkWIxBZjBPKGRssFz8WG b4sOuaLw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzNjN-00Dn8I-Es; Thu, 09 Jun 2022 19:22:09 +0000 Date: Thu, 9 Jun 2022 20:22:09 +0100 From: Matthew Wilcox To: Sedat Dilek Cc: Al Viro , linux-fsdevel@vger.kernel.org, Jens Axboe , Christoph Hellwig Subject: Re: [RFC][PATCHES] iov_iter stuff Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Thu, Jun 09, 2022 at 09:10:04PM +0200, Sedat Dilek wrote: > On Wed, Jun 8, 2022 at 10:39 PM Al Viro wrote: > > > > On Wed, Jun 08, 2022 at 09:28:18PM +0200, Sedat Dilek wrote: > > > > > I have pulled this on top of Linux v5.19-rc1... plus assorted patches > > > to fix issues with LLVM/Clang version 14. > > > No (new) warnings in my build-log. > > > Boots fine on bare metal on my Debian/unstable AMD64 system. > > > > > > Any hints for testing - to see improvements? > > > > Profiling, basically... A somewhat artificial microbenchmark would be > > to remove read_null()/write_null()/read_zero()/write_zero(), along with > > the corresponding .read and .write initializers in drivers/char/mem.c > > and see how dd to/from /dev/zero and friends behaves. On the mainline > > it gives a noticable regression, due to overhead in new_sync_{read,write}(). > > With this series it should get better; pipe reads/writes also should see > > reduction of overhead. > > > > There'd been a thread regarding /dev/random stuff; look for > > "random: convert to using iters" and things nearby... > > Hmm, I did not find it... > > I bookmarked Ingo's reply on Boris x86-usercopy patch. > There is a vague description without (for me at least) concrete instructions. It's not really that. This is more about per-IO overhead, so you'd want to do a lot of 1-byte writes to maximise your chance of seeing a difference.