Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2167923rwd; Sun, 21 May 2023 14:52:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5iXtogCdtrD7afTEQtqZAuhot3NB91/c9ZkRIZDopX2ZJpG4DEC9zUVZZ36Lb+udaW+1ZW X-Received: by 2002:a17:903:245:b0:1ae:35ba:8c8f with SMTP id j5-20020a170903024500b001ae35ba8c8fmr10682668plh.13.1684705945400; Sun, 21 May 2023 14:52:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684705945; cv=none; d=google.com; s=arc-20160816; b=Nwd9v2gyz6WJYJ8dvvThTVP07pHUqrh6T9Uhcrn+UXEvdOw/iEAviH/eFup31unLUf j3Clmo1t0v4KbQPJxL/Dmz0Soc6hkvLUgRHrRC86JQSK8Im46fzxAAi9z3c7+7xwewoC 45xsX7J8oBr0bsauMll5T5/wHh/z6Xo0WwSDu7x36lpNSi109VVKjRuxnBz3abFpt2Lb pYQDRpCbG91dyoSYrWJFImWvVFGaC3S/OvBk+Xa10YflwyKSiwXpQPeNVBBjPEJ9cz3p YPCFXCdnArf/xJuQSSMX7PI8DdHTzGqmWBUrGbviCTMhXKjeyfawWisROiDWaBkn4Oyi 6pfg== 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=w41u6rYy58c8T3DEerKtCbhdtBUh4GbCLVj3XyoaOT0=; b=OsMRob7dofJ3HP0DVUFji9JPVBvr7wMIGUkXNUu+KBJ47Z4qe0BOud7JAXxK2iiy4Y KQteSwUunfPJjto9JhoxsBsG2SsWubhPAGruaeiWzCCQpbu5l1Wr88OdI2UdJA8XfPDH E8syCaRx3FBR1nWnvpBGCJePM+AMocd/uN++izpfPgMv9j1aFU53xuXJc6Wy73SOEs8A 6RBcJxgrUsI7T4Fe8p9S9Pq1qXfC2ZT5hPIkNY9COU54XXYki4xKTHva4k6RI9Zenr/9 Oy6xVNUpoAUBt9PQBqMmEZ75arVjFr8Q5gjU9IuebTl2g6aCXvxA686sqp52ZzV9VAru nqxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KO5gheQt; 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 u6-20020a63b546000000b0053ba0d27874si422515pgo.410.2023.05.21.14.52.10; Sun, 21 May 2023 14:52:25 -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=KO5gheQt; 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 S230282AbjEUVdi (ORCPT + 99 others); Sun, 21 May 2023 17:33:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229571AbjEUVdh (ORCPT ); Sun, 21 May 2023 17:33:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13B9ACA; Sun, 21 May 2023 14:33:37 -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 A5A1A6133B; Sun, 21 May 2023 21:33:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFC70C433D2; Sun, 21 May 2023 21:33:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684704816; bh=ImWTr7+FEz7G2UQwBZSuCeiA4GdQb8LvzHpdtatDkNE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KO5gheQtibjJybbzamwH89UnyFKfq7zeKADXvoSFgiCqxbSPU6/lkOYsX+fiKkeTi LgQfBghYJA+ploSYPsr6NOcf0MR+cw1jXNJZsr3nNRwX3c7yieSMjWAAMjTWpKFsCL cye65LB4fT0Hb2hF917VKqPVQKeNc70onO3Grmqrr34lYdMNZEQyCrOonOutj2/Udz c2twa3EUXfs2ciG+vcf4YLg+2vVVCtTE1ECWCwAd3RUmmI6d1zk3PGeGsWwcCMnYy3 /aufTNKVNvXXa9OnRvLUrcPbkeHudYZ3pU0aK6Cd7sGro/2Kv1MEk/BHm9VUfz4FJB fx8o2Zgd3TmAw== Date: Sun, 21 May 2023 14:33:34 -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: <20230521213334.GA32557@sol.localdomain> References: <20230510064849.GC1851@quark.localdomain> <20230513015752.GC3033@quark.localdomain> <20230514184325.GB9528@sol.localdomain> <20230515061346.GB15871@sol.localdomain> <20230515071343.GD15871@sol.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 03:26:43AM -0400, Kent Overstreet wrote: > On Mon, May 15, 2023 at 12:13:43AM -0700, Eric Biggers wrote: > > Sure, given that this is an optimization problem with a very small scope > > (decoding 6 fields from a bitstream), I was hoping for something easier and > > faster to iterate on than setting up a full kernel + bcachefs test environment > > and reverse engineering 500 lines of shell script. But sure, I can look into > > that when I have a chance. > > If you were actually wanting to help, that repository is the tool I use > for kernel development and testing - it's got documentation. > > It builds a kernel, boots a VM and runs a test in about 15 seconds, no > need for lifting that code out to userspace. > FYI, I had a go with your test framework today, but I ran into too many problems to really bother with it. In case you want to improve it, these are the problems I ran into (so far). The command I was trying to run, after having run './root_image create' as root as the README says to do, was 'build-test-kernel run -I ~/src/ktest/tests/bcachefs/perf.ktest': - Error due to ~/src/ktest/tests/bcachefs/bcachefs-tools not existing. Worked around by cloning the bcachefs-tools repo to this location. (Note, it's not a git submodule, so updating the git submodules didn't help.) - Error due to "Root image not found". Worked around by recursively chown'ing /var/lib/ktest from root to my user. (Note, the README says to run 'root_image create' as root, which results in root ownership.) - Error due to "cannot set up guest memory 'pc.ram': Cannot allocate memory". Worked around by editing tests/bcachefs/perf.ktest to change config-mem from 32G to 16G. (I have 32G memory total on this computer.) - Error due to "failed to open /dev/vfio/10: No such file or directory". Enabling CONFIG_VFIO and CONFIG_VFIO_PCI in my host kernel didn't help. It seems the test is hardcoded to expect PCI passthrough to be set up with a specific device. I'd have expected it to just set up a standard virtual disk.