Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1091417rwl; Fri, 31 Mar 2023 06:40:15 -0700 (PDT) X-Google-Smtp-Source: AKy350Z4CTaL3QJiGzlGYm/IGpwVbduLXK6+KCBZvATOmMOLWu6RLtCpgRBesMTMMDdbPKcOoBx/ X-Received: by 2002:a17:906:7382:b0:93b:dddf:4be2 with SMTP id f2-20020a170906738200b0093bdddf4be2mr4589242ejl.3.1680270015635; Fri, 31 Mar 2023 06:40:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680270015; cv=none; d=google.com; s=arc-20160816; b=u/kWvS5l9xTA2YcjKlzyT5HNk3nKpZXv/UgdGv3/jot4aUUzTisJ4IJeHLPdBC1R7R 1JNUQG+Xf46jzfvN7hSpZ4Dt+Bw1aBY0DdIR9DcB7PWdduQgoxUQuItHio6pSxomrOB1 ZPKsNspUN53nvqlr47wps49labCOUo6suEMDYCEEtAEuv0z9/CsUXJ7sayI43w325ACI jpHAVIFpFa62fWCt2N00ybfsa4vxeDEtJFUm3sdPXO+wUiRp2kz1DGSH6QNmi+McYe67 pIy4CMowsHPYodsxsrmpY/SFCbOKxTTsF8/e/kjdDjK5DqWp5mj/TC5K7oS0Sg2XsIXL KDHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature:dkim-signature; bh=WBTTw4FmgIAb/cjVvDNfUQ4cZmC0+48pwsVLVqEzmQk=; b=CC0wVDsBYVe1aVPWWk1921SHOWNKnAmapfUb++uaAmazCe21T6cuuVFR91CJ1mUL5q oQ1gvFin2xZ+Vif1eY2ZIJg5j5iUe+8t77MttwNiCTYU+IqTM9wkE91JPt2d5QLAVxJU gfm6/xy68OArK03KuBIjsQT3irf5x0tP20Bm+G0bViBNo+3kqS91Vv9RJTND6PlFrhO1 70zYNeN9QCwQCfg3qPffHJXf/hv6brsELgGfZvhHZIM632sTN2iPjnUXMhMrQqHoZTrH BBgWQ8n5M3dbfMgoOV8rtJAQtnSDjbhVwfztnQZnOGw1+msBxsEbbb0uGUY7WlOxu9HP uBlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=djiMXrm6; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=2iMsWtPS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q8-20020a170906360800b0093fcc6295ffsi1905265ejb.771.2023.03.31.06.39.50; Fri, 31 Mar 2023 06:40:15 -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=@suse.de header.s=susede2_rsa header.b=djiMXrm6; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=2iMsWtPS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232790AbjCaNfP (ORCPT + 99 others); Fri, 31 Mar 2023 09:35:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232783AbjCaNfO (ORCPT ); Fri, 31 Mar 2023 09:35:14 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B9DB1EA23; Fri, 31 Mar 2023 06:35:13 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id DE3371F38C; Fri, 31 Mar 2023 13:35:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1680269711; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WBTTw4FmgIAb/cjVvDNfUQ4cZmC0+48pwsVLVqEzmQk=; b=djiMXrm6ONVzenkSncn2vz9NCUmPQaX1n+i5uNfcskIAo6tG8LAhsZ4/Rf61Xj1zteHzrn jvQqtgaUCqDHzxuMFsKtrhvtPcR+Jd+Ct3VEH+QgYS5TilNm0Dmw0pUmEPxbIlN4ptfG1K Nt91p8d6XJnNPu55RAyXhApzol+1b8w= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1680269711; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WBTTw4FmgIAb/cjVvDNfUQ4cZmC0+48pwsVLVqEzmQk=; b=2iMsWtPSnK7zOBkPNEfgmRjP5tgL4KjAwhwhOmsj8P4JsKOfCB6aGVuoExsrJ+eqgbtL1X JMO1s2xo8wye3lBg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 6DD6C133B6; Fri, 31 Mar 2023 13:35:11 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id OHjiDY/hJmQ7TQAAMHmgww (envelope-from ); Fri, 31 Mar 2023 13:35:11 +0000 From: Gabriel Krisman Bertazi To: Pavel Begunkov Cc: io-uring@vger.kernel.org, Jens Axboe , linux-kernel@vger.kernel.org Subject: Re: [RFC 00/11] optimise registered buffer/file updates References: Date: Fri, 31 Mar 2023 10:35:09 -0300 In-Reply-To: (Pavel Begunkov's message of "Thu, 30 Mar 2023 15:53:18 +0100") Message-ID: <87h6u111te.fsf@suse.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Pavel, Pavel Begunkov writes: > Updating registered files and buffers is a very slow operation, which > makes it not feasible for workloads with medium update frequencies. > Rework the underlying rsrc infra for greater performance and lesser > memory footprint. > > The improvement is ~11x for a benchmark updating files in a loop > (1040K -> 11468K updates / sec). Nice. That's a really impressive improvement. I've been adding io_uring test cases for automated performance regression testing with mmtests (open source). I'd love to take a look at this test case and adapt it to mmtests, so we can pick it up and run it frequently. is it something you can share? -- Gabriel Krisman Bertazi