Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1610285rwd; Sun, 14 May 2023 23:53:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ46Xt/HkMQRUwcFGUYL16a7DZiPds6nVzM3vzPYzfgtckkowbVMI8teW6jhE6TYQWeX3Uzw X-Received: by 2002:a17:902:e74f:b0:1ad:b5b4:e424 with SMTP id p15-20020a170902e74f00b001adb5b4e424mr19098398plf.38.1684133614904; Sun, 14 May 2023 23:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684133614; cv=none; d=google.com; s=arc-20160816; b=u80J63mAu1Mv3+G/LuT3mgjtPMD2BYWG4BnOzp/GJolencyJcEcvfbWiVHNWVD7Ptv HHyI4HvlDetWi4kiA5wk3GZKHxXC8p8xrfRcB2bY4Pq1sz9O00jRlyXrzOfMsofyYrDB 11qb5l7gFhOP1LSeSHLgkL3+egxlCKrx8JKPtcD3hrV5GT70N3ZB7nMZv2bPWiPP4SBz 5BD1RVD/1OjK6OSIMHxg6QfxiBadkqXZeolLdOexJ6wEb2dbHHqM/Q1aF/ahfyRkLWIU 76qv2cvfzlF6mjxP6lx82fAGGLy58HGhNZYAzwc2MIuWwHdyxm6r0PXdpWt5oCtCF3I7 o5zw== 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=zMvH1NloqvMolwVZ/4Zq8q4qKuulQgtp2ZCl9Vzjp54=; b=a/wrjhqbtkMOHcDXPX+XLJodeJ+icMblcm4bNPKkuSRIfyn8CG9mywNyYk4x+bAUfM LHSReJur1QZYBsyYldARLyk1cQgEO0IkDKNGvw8HZA9VOQC7raRJe3kpkMMg9wi2rn9q V63Av+m1TP6Jx3wEBTslkRkJfIm5O/kBwZ7tCb4YiQhQsErgvGRAeqVplf7CG61MdaE9 IEfwQpVKJvg0dQOeoDgyJvrq7WsYOAD+wZg8+19DHBWboZ5lVxKLIHG1T84+/oASxXNk A23vYod3gQO3tlDlaC+PMN5/N4p+CK79f9skSxT7Zd2YZBy6j/a9cvDS732X3y9DtVYY AY/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R3Y89wxd; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h12-20020a170902f54c00b001a98e569e33si15742114plf.588.2023.05.14.23.53.20; Sun, 14 May 2023 23:53:34 -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=@kernel.org header.s=k20201202 header.b=R3Y89wxd; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237700AbjEOGNv (ORCPT + 99 others); Mon, 15 May 2023 02:13:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231493AbjEOGNu (ORCPT ); Mon, 15 May 2023 02:13:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22B8CE1; Sun, 14 May 2023 23:13:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AA5C361F38; Mon, 15 May 2023 06:13:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5F42C433EF; Mon, 15 May 2023 06:13:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684131228; bh=Y45E+N01pMi2CMlWB0B+OganKrfzdE6yeEf0dWAO4yU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R3Y89wxdF1A1pzNHqxrT7L4mihy9RdQllcqFtvj2Ja+ux0lx5o9lynlUAuoHXNvA3 wx9hwEOsJFlXM3ec3IRUpAat/xUwFv8w7TJPO2FPZI0xYfXnIwG2mjgpArZIx+Cf4u sZ3ZuILtK0r7DXqsvUsNH2lSLDipgk5anqaV/yljSxXaVSySMpLeL+BQC44hBnoqmD pcH/qj625BS6iurlQoDR/YMyW5D+3qi9RpSjSBs3R/Xw6jh7zN3PDw5h6zzwhz8b4p VEQ1t7MDdFQT8RxLIOHY2kRuoOX9DfhQjxUnT9yxY74Ovoc9/tWJC0BCHf1vKDW3Ts 2/xioqiq8OsAg== Date: Sun, 14 May 2023 23:13:46 -0700 From: Eric Biggers To: Kent Overstreet Cc: Lorenzo Stoakes , Christoph Hellwig , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-bcachefs@vger.kernel.org, Kent Overstreet , Andrew Morton , Uladzislau Rezki , linux-mm@kvack.org Subject: Re: [PATCH 07/32] mm: Bring back vmalloc_exec Message-ID: <20230515061346.GB15871@sol.localdomain> References: <20230509165657.1735798-8-kent.overstreet@linux.dev> <20230510064849.GC1851@quark.localdomain> <20230513015752.GC3033@quark.localdomain> <20230514184325.GB9528@sol.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Mon, May 15, 2023 at 01:38:51AM -0400, Kent Overstreet wrote: > On Sun, May 14, 2023 at 11:43:25AM -0700, Eric Biggers wrote: > > I think it would also help if the generated assembly had the handling of the > > fields interleaved. To achieve that, it might be necessary to interleave the C > > code. > > No, that has negligable effect on performance - as expected, for an out > of order processor. < 1% improvement. > > It doesn't look like this approach is going to work here. Sadly. I'd be glad to take a look at the code you actually tried. It would be helpful if you actually provided it, instead of just this "I tried it, I'm giving up now" sort of thing. I was also hoping you'd take the time to split this out into a userspace micro-benchmark program that we could quickly try different approaches on. BTW, even if people are okay with dynamic code generation (which seems unlikely?), you'll still need a C version for architectures that you haven't implemented the dynamic code generation for. - Eric