From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 904A01F8901 for ; Wed, 26 Mar 2025 20:46:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743021970; cv=none; b=s6lGOLvxUNC1JZQeOmZdzsLBzQ3FYJNBmxqrnYKSxrhavdNf3VmbUuHw7vcS+ZR6lbfYSnfpN9H1gXL10+nRb/ZAdZeRnA9ot4PwFJ3Mo05VEnmS2IQHVur3r53MkDs4OT9ZxgIfpmBaoHtH/dKPGjEWT6aOjm9Y0kUUc22dw7Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743021970; c=relaxed/simple; bh=0fffkpb2/dTnrDBMgXFpfQbnuIh9s/gxDQH3AhTGbzs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EZ7ck9PUjMijquHZnFLyuFZR5w6CTe13TmtrWVq0hDPXkGuO/T+/tI9Z12n7IJ/OtN74N3/TRjLXecf8mDXrWafPUG9yPHCVeMnzQGBrnTx8kYwOqtb9pOUqCMNSj4G63G3zuvqZPwbPtivy/dvxXj879P6Cbewt7NXJFGUK4LM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fromorbit.com; spf=pass smtp.mailfrom=fromorbit.com; dkim=pass (2048-bit key) header.d=fromorbit-com.20230601.gappssmtp.com header.i=@fromorbit-com.20230601.gappssmtp.com header.b=NgWlZ/+8; arc=none smtp.client-ip=209.85.216.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fromorbit.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fromorbit.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fromorbit-com.20230601.gappssmtp.com header.i=@fromorbit-com.20230601.gappssmtp.com header.b="NgWlZ/+8" Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-2ff784dc055so359610a91.1 for ; Wed, 26 Mar 2025 13:46:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fromorbit-com.20230601.gappssmtp.com; s=20230601; t=1743021968; x=1743626768; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=l0DxjNG0t0sEawU75w2W9OviEBnYSuXggXRVCOAy4Bs=; b=NgWlZ/+82sL4aGEzJML4+KrqN9COuLeIGR4rcrWVVAM7ytwjvVv2ptAc7moSi8P1IY 1n0uGkoMT9tAH4zgSt81QlG4iBBW29xfWjfr4+W19MxhuX9JAlceCXtu1sxijMUFC9Jb vn99TUqvxW/wXWWHKBQIiulYUJYBTV1CfrPewlN2i8p383FDdZplRYopFgGtqKD699b3 2hThlA1aE0OOpEpMnWs8tqLNQaiB64sTvVA/rBy9qE4HZxf6i08gged3pRCUefLQLN7Y 2neksZtsHIlRwJhBInsNsjRXjC+WLEL4ShRwQIAb41GOI7YTiOwnEl2Ffy8Gdp1rZFNn vH/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743021968; x=1743626768; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=l0DxjNG0t0sEawU75w2W9OviEBnYSuXggXRVCOAy4Bs=; b=mrtCItm4lDEH0E1wh9DaewX/LtpR49vx73TAXldeQx4vTSJrmgKNCWEf9IWgQeArh+ J0haNCMrmMB69Z8NbWZHnP4ISNAAfD578isTZunJ9nJQuup31bydNuP3g5XIpt1+I8Su 3V6hBl5ThzWbTAaR/RJXH3ADRTDUbBKOFYK4Oubn5hrwrI2Mm3iab+cqEDk2XP9a7Nys CQJvJ9myI/L7AU0S9R1/BLpPAKCkJ05nzOODXF7yiWDtjca3cNv3yvWOGkckCj0td6IP 7w1KLzbb7L2KFOsEZkflmOMmw6faFt2gUptsXRS4GzUg4yuStBkROgMMxgm44xV/SUO0 d/ww== X-Forwarded-Encrypted: i=1; AJvYcCV/+SayMtbZYpFwXCyGC+yTBzrXBBnBh0+lERw66hxHqe1qs9JAIPT0Uj5uEY3NwzeEQ7ReMS71@vger.kernel.org X-Gm-Message-State: AOJu0Yweq6b39tK9MFC48y0wLHdwNAzVxs9vRgNs6uFoI4xeZEr1Pe/o yz5j2FJ2IThiXGOpMWw1id+qkA54jrW5jS7KmqRyW4WFyEReODgmWuy/CiqwTcQ= X-Gm-Gg: ASbGncth+jOu3f2ISO7RUf1pS6Nm0CK6joJoljedq9TtDQ+PNHwZHuubFyjU9EtIes1 C9bd2LpT5cHS+JmmLSJxzXdC/ynp+cyAzRygySisWbEL8yy09uwXTLD60I5JV4ElY0K3GAbEZxk Elvqv+UQT/tbDFCTxsfB3yElj5JLZw7ur7phJcvq2+JwUXFuc4W81/sGqN0MA4c3CUnTOqTV+33 Kz0HXMplhFvUjzkZD+C7OCLbw1QA4db9P9jBwX55N/YOKdp+fEVTuMK80BybjkpIxiphMw6euHu jJft94wSIOABdrybs5cSZeN3tNaz3ZpdcEXPUvHD5ZEmYDNRrcN1nVkKpm+BN8s9JVD6YU+iot5 hFBVh50JEuhgO8s9b5Q== X-Google-Smtp-Source: AGHT+IHYC9faJMfvw3S3nDn2V7wFInikoEkVJnJUgRfyAHRL+/TjLMdCvBBuENH2adHdN+PgG4A1eA== X-Received: by 2002:a17:90b:2c84:b0:2ff:6e72:b8e2 with SMTP id 98e67ed59e1d1-303a8e76448mr1592314a91.31.1743021967688; Wed, 26 Mar 2025 13:46:07 -0700 (PDT) Received: from dread.disaster.area (pa49-181-60-96.pa.nsw.optusnet.com.au. [49.181.60.96]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3039e60f81fsm752510a91.48.2025.03.26.13.46.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Mar 2025 13:46:07 -0700 (PDT) Received: from dave by dread.disaster.area with local (Exim 4.98) (envelope-from ) id 1txXdT-00000000gYk-3LF2; Thu, 27 Mar 2025 07:46:03 +1100 Date: Thu, 27 Mar 2025 07:46:03 +1100 From: Dave Chinner To: Luis Chamberlain Cc: lsf-pc@lists.linux-foundation.org, patches@lists.linux.dev, fstests@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, oliver.sang@intel.com, hannes@cmpxchg.org, willy@infradead.org, jack@suse.cz, apopple@nvidia.com, brauner@kernel.org, hare@suse.de, oe-lkp@lists.linux.dev, lkp@intel.com, john.g.garry@oracle.com, p.raghav@samsung.com, da.gomez@samsung.com, dave@stgolabs.net, riel@surriel.com, krisman@suse.de, boris@bur.io, jackmanb@google.com, gost.dev@samsung.com Subject: Re: [LSF/MM/BPF Topic] synthetic mm testing like page migration Message-ID: References: Precedence: bulk X-Mailing-List: fstests@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Mar 26, 2025 at 11:59:48AM -0700, Luis Chamberlain wrote: > I'd like to propose this as a a BoF for MM. > > We can find issues if we test them, but some bugs are hard to reproduce, > specially some mm bugs. How far are we willing to add knobs to help with > synthetic tests which which may not apply to numa for instance? An > example is the recent patch I just posted to force testing page > migration [0]. We can only run that test if we have a numa system, and a > lot of testing today runs on guests without numa. Would we be willing > to add a fake numa node to help with synthetic tests like page > migration? Boot your test VMs with fake-numa=4, and now you have a 4 node system being tested even though it's not a real, physical numa machine. I've been doing this for the best part of 15 years now with a couple of my larger test VMs explicitly to test NUMA interactions. I also have a large 64p VM with explicit qemu NUMA configuration that mirrors the underlying hardware NUMA layout. This allows NUMA aware perf testing from inside that VM that responds the same as a real physical machine would. $ $ lscpu .... CPU(s): 64 On-line CPU(s) list: 0-63 Thread(s) per core: 1 Core(s) per socket: 16 Socket(s): 4 ..... NUMA: NUMA node(s): 4 NUMA node0 CPU(s): 0-15 NUMA node1 CPU(s): 16-31 NUMA node2 CPU(s): 32-47 NUMA node3 CPU(s): 48-63 This is also the VM I'm doing most of my performance testing and check-parallel development on, so I see the NUMA scalability issues that occur when trying to make use of the underlying hardware NUMA capability... > Then what else could we add to help stress test page migration and > compaction further? We already have generic/750 and that has found some > snazzy issues so far. But what else can we do to help random guests > all over running fstests start covering complex mm tests better? Use check-parallel on buffered loop devices - it'll generate a heap of page cache pressure from all the IO, and run a heap more tests at the same time as the compaction is running from g/740. This often overlaps with g/650 which does background CPU hotplug, and it definitely overlaps with other tests running drop_caches, mount, unmount, etc, too. One of the eventual goals of check-parallel is to have all these things environmental variables like memory load, compaction, cpu hotplug, etc to be changing in the background whilst the tests running so that we can exercise all the filesystem functionality under changing MM and environmental conditions without having to code that into individual tests.... -Dave. -- Dave Chinner david@fromorbit.com