Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1611005rwd; Sun, 14 May 2023 23:54:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4cQ/YFjI5CqpHHMG4NL7hKtlP5fA5S+L1OwjG5GVqGBBlFOBsW+Yg2c1uLnZf7Qr31wJnv X-Received: by 2002:a05:6a20:12c8:b0:105:2199:7b93 with SMTP id v8-20020a056a2012c800b0010521997b93mr7719613pzg.50.1684133670896; Sun, 14 May 2023 23:54:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684133670; cv=none; d=google.com; s=arc-20160816; b=K7n0+enE+wZqaU2BuXum0Z/ZMGkNJ5DQxo69pEtWhf+JHn/pz9tMUQLISdY4EgwOgY LwgbcT8Z2XlxyBDr4Tg9W3W4vECM6SbZhS7qPjsiTW51b5rYrDv8BXOCK3MnAjv4HJlR 1SbtUGr1ezo/fG189a5BW34NV6oO5TR6pKo2IwlDv8vCmfi5aKWYhHs6kadY4E3FQcYG 66Aeb59qTaTal7VNOs3Z2IBOPXsw0wTeWgxsPQJpEq0PdmB17QFU4VSNhP233Qo/cqxa LvvtkklZnAKUUbhD87hVNevHBNYHGu3u+sgQdX2k19RtFMkPU03a0V1ztWs7/9oZyWRh f+zA== 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:dkim-signature:date; bh=9g4atnH114wwIREvS7FQpq8AT+DoOchnOh70popS5b4=; b=YWJ/dyVRA7AGQtzE7XLwdwEZvEUElZVDd9wTKZRVOpZGrhuc/GnVKLQN28zcYlvP5l XPnQVGqijmykpYj0/68p+mcsn2dQT8DdEKrEM2HnLOv9ZzHiOuRbRIck3wCzzmc5z27i UGqGNZy5x+jEquYPUDIUUyxRuwHSXdCgoVz7gAEc+JdztiEg9ubwDFwuZTu3eCe/F5Vf qWSLHTxHuk1DipKon9pR3eOChJ4u/Gwiclh0ME00q+6LXJJ1BpEjG/Gdeo+tBgq5bPwk DX/d9tcZLD1iYi62qEeNTfcbIySc+Ezbjlv2ICk2GQ7BgrgZ1AeM4fcvl0JfML9Zy7m7 DACw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ls7qJyNM; 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=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u189-20020a6385c6000000b005139e0d2b5csi16007833pgd.487.2023.05.14.23.54.16; Sun, 14 May 2023 23:54:30 -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=@linux.dev header.s=key1 header.b=ls7qJyNM; 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=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238840AbjEOGSY (ORCPT + 99 others); Mon, 15 May 2023 02:18:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238619AbjEOGSX (ORCPT ); Mon, 15 May 2023 02:18:23 -0400 Received: from out-40.mta0.migadu.com (out-40.mta0.migadu.com [91.218.175.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 583FB1BF9 for ; Sun, 14 May 2023 23:18:20 -0700 (PDT) Date: Mon, 15 May 2023 02:18:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1684131498; h=from:from:reply-to:subject:subject: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=9g4atnH114wwIREvS7FQpq8AT+DoOchnOh70popS5b4=; b=ls7qJyNMnqFIDPENsNB+6BCWOE7+PK2EihntRVfbtXnaMP2H48XTUeJw/pT3TeHklLu2QM oNMGN8jcwYnpeL46T/OXzf4sSOPvZuMY4TzkYy2BLeG3czZwZdLrPejKvonjkBYlvKoUOA EDcEoKkjiz0gJpijRB+sfmNlKdsHcx4= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Eric Biggers 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: References: <20230510064849.GC1851@quark.localdomain> <20230513015752.GC3033@quark.localdomain> <20230514184325.GB9528@sol.localdomain> <20230515061346.GB15871@sol.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230515061346.GB15871@sol.localdomain> X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Sun, May 14, 2023 at 11:13:46PM -0700, Eric Biggers wrote: > 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. https://evilpiepirate.org/git/bcachefs.git/log/?h=bkey_unpack > 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. I don't need to, because I already have this: https://evilpiepirate.org/git/ktest.git/tree/tests/bcachefs/perf.ktest > 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. Excuse me? There already is a C version, and we've been discussing it. Your approach wasn't any faster than the existing C version.