Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2194469rwd; Sun, 21 May 2023 15:30:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7JKnfU80pV1ovSRvgQKKeeE/oCM4AtIgmyja+Uh//UDtpqgTSgfSH7UXV29O19FyOd1YHr X-Received: by 2002:a05:6a00:24d1:b0:63b:7a55:ae89 with SMTP id d17-20020a056a0024d100b0063b7a55ae89mr12009973pfv.27.1684708242243; Sun, 21 May 2023 15:30:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684708242; cv=none; d=google.com; s=arc-20160816; b=NLgmlKdA36RjMs7hvm0k3V/MjlG9HcE+DAtbtiGNk48seBmk55lKmuUel1eLFmA6hV fR9zZWlqnS5XxF2KoJpE0S2tZQdslCao46sgIDjaYyhHs+LYnY+5QqudHJiBnvhTyyv7 rtc57IlAiZI0m2h4iYZvR3k+2Y/Q4TsBYRJwcL0KiQUxFjs91nAFmMnr9h/6K/DFvn90 iz0aGKVIC5sp0JC//V/1ejtQQCcw0J/7fyRElmku1puO8pbmG4c8vwYrnnsf5E3Squw5 7UJVHNeDT0C3eM/cdF1dS+77WZM4fQutvTt8upDGI1oeJOdnTNaW/2g3iqNfrImJSl/x +PBA== 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=M7SZ4icPM/G1fu0ULdKEsJem1DjVdc2mchXSlwG+/Tc=; b=B+mHRutOe4lEg8s9YsFNDk0NJXP8ohzOhb5wl9X8B7dUD/YI4GiAK/ZQiAwgcKc/EC TpU7t3cnBh8tg5hvk6M0wQuRyI/ZexHoQIJvwDyWdwChUDIE//ppX+bJurxTFWzyYbYH LT/0y6alH+DVyGPLrHD3IxcscUtPH06bTVFzfmTn5VlloYyQDfisBD4lp8kU7YCKynIt rj7+FYfp7uWXP9gSjiWOpFyd1BLaiFUoe/xJDqtLVFSCCTDZ1OEIsgZMuWVxNsUcmj3Q sHUbptA/c2PvvVqbuLhCMjD/UnLoWnwk4lTbwxkictD/EgaoD4hnIwqMRbueTBl/k1ds QUtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=pNlBxYp8; 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 z11-20020aa79e4b000000b0064d73e10b65si251741pfq.301.2023.05.21.15.30.28; Sun, 21 May 2023 15:30:42 -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=pNlBxYp8; 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 S230403AbjEUWEv (ORCPT + 99 others); Sun, 21 May 2023 18:04:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230466AbjEUWEt (ORCPT ); Sun, 21 May 2023 18:04:49 -0400 Received: from out-40.mta1.migadu.com (out-40.mta1.migadu.com [IPv6:2001:41d0:203:375::28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90F07E0 for ; Sun, 21 May 2023 15:04:48 -0700 (PDT) Date: Sun, 21 May 2023 18:04:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1684706684; 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=M7SZ4icPM/G1fu0ULdKEsJem1DjVdc2mchXSlwG+/Tc=; b=pNlBxYp89TaGuI/Pja+cAFNusJ6CcLCYMLeXkpWHfk8wp2qS4mvN3aemgC6BSn2VE2PhUE 4c7qqnVrgpCoGa7/WcHruX+2OboTSsJTjjG+89QTN7Pdm4pbm7qZXRNQvDq/XquaOAJOms epiuAFYuYMDP+Y5scpiuH3SIv0k3qhk= 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: <20230513015752.GC3033@quark.localdomain> <20230514184325.GB9528@sol.localdomain> <20230515061346.GB15871@sol.localdomain> <20230515071343.GD15871@sol.localdomain> <20230521213334.GA32557@sol.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230521213334.GA32557@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=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 On Sun, May 21, 2023 at 02:33:34PM -0700, Eric Biggers wrote: > 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': Thanks for giving it a shot... > - 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.) a require-git line was missing, fixed that... > - 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.) Not sure about this one - root ownership is supposed to be fine because qemu opens the root image read only, we use qemu's block device in-memory snapshot mode. Was it just not readable by your user? > - 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.) I think 32G is excessive for the tests that actually need to be in this file, dropping that back to 16G. > - 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. Some of the tests in that file do need a fast device, but the tests we're interested in do not - I'll split that up. I just pushed fixes for everything except the root_image issue if you want to give it another go. Cheers, Kent