Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp578114lqh; Fri, 31 May 2024 09:46:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVwzv2F+0j9VNBKa0PVggVuytm6y9id05RZ4nd5Iyc1yps37wYdkXGU0fbdU3yQ5Oc9apEA2upKZhbIwq1Tb0x7cSD8pE71yekj0gbRQA== X-Google-Smtp-Source: AGHT+IGqo3m4IrLKtsahoy2kizePuRZJQQqlq1ZCf/+6VlK9i/SaflSoXi71XrA+3dlF7BcC9W/F X-Received: by 2002:a19:6455:0:b0:52b:796f:8af5 with SMTP id 2adb3069b0e04-52b8958da31mr1630343e87.34.1717173986686; Fri, 31 May 2024 09:46:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717173986; cv=pass; d=google.com; s=arc-20160816; b=qX/NRZJaExdiIOEeglPaE3trpds91rY4WGF52gotfuBqysV84YBi2z3aa6xo0YZlcq +KNfJdpmgtTviBUTdqIpaOaWpfmYB7OswBYe7DPyWXRzEDXnBaT368U4AamZf6a5Jthi AxKx+X//v84m5ng9nkPH0zLPMqgGE8Xi+OVadwy0KsVL8YoqSxDeNCDiUWMfq9NXIBEo e5TTj/sM1c4Ghgo17UTGJFFY7FXmyxyWkb1YiPdzu/gyoONcAbtceqJiY2rNgFXYj6bZ vmTcHx8tEgWRcMT7kuXmjVumCVeDf4yw528hJUoedzXAphIh0zDYC3twwhOV5o3JREJF IYwQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=TH4bnbtSSVEcXN8q4TBBHbQcYVbG9UpE4sBQSCvIGBs=; fh=CeJYBjSGeCeNv7kzYlm7eLu3ZsOBerIGMRanJP/iJXk=; b=HBr2FCfdLYJuCdQAFsQ27Gy1TpnWleo7SWjjkK0G70Shj8Ox2vKfQks8+WKTmt2+7D Bib/PYAd15gjyEVMfy27L47kvb3WIJdn1LQf/V8NOTXhX616ZsdM2Kf9kLy/zdvra3CN iF6K+I5oCZvsK80/ZHoRcEhYlrbviaEkXWe/O9ITHFmpNWryp50YF7vUqiqunZ91Bb4k 1MIhIHuinoyJ2svQpgq0chEzA67M9tkv/V/lb1Tx8yKnEC/pd5KAFDo0QyAeTDlQTUlB Z6kN9HaT8YFL8KCc8IthzefatUaOlVLd6IE4bnPu1X1YXXYRkHSuK5HM0tYtWhlnrIyC 6Yrw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="UCk/4hhx"; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-197179-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197179-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a67ea886b76si108530766b.644.2024.05.31.09.46.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 09:46:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197179-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="UCk/4hhx"; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-197179-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197179-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 33F091F262C4 for ; Fri, 31 May 2024 16:46:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2EB38176AB8; Fri, 31 May 2024 16:45:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="UCk/4hhx" Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 8BEB7155CA1 for ; Fri, 31 May 2024 16:45:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717173948; cv=none; b=Lmx57YdF2OTY8u6f/OW3QuNMuKEiUhQy+UzR0XfFpGE49pU3LFrm7hxygGvedKDe40utns1Y/dTBcBuPryDCQ1bQL/OVw/Gjx6Wef5NbU5U8TWJA685Galn923+uuFjVjkSBNRmzTfMWp88FRT21n5TmLUaOJ8ix6Plfxu2IJtU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717173948; c=relaxed/simple; bh=36m2p7lcItP/+bB0ofDSLrkZ1c8ARR5jCIwAHfSrTs0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=YwybN7SPr4BgSORQeH5ZlwZI1749WmLIXvGrtQh440eGDQNtCy8JENVXOnlDTxUEDFwxvLBmd+V6kMXSel4pkyo7qd4uXN2F4efYPPY8Ru7xVldpFVCnMSUZh7s/2gGk/Yi6rrU9sxBWx+CB7Rc3YPAHHHyPiPBJdBQygd9Qpo0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=UCk/4hhx; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-420107286ecso2115e9.0 for ; Fri, 31 May 2024 09:45:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1717173944; x=1717778744; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=TH4bnbtSSVEcXN8q4TBBHbQcYVbG9UpE4sBQSCvIGBs=; b=UCk/4hhxC9TTHJFm/SwPJSMMnlMhcDoNO2QA35JXbrLd6qvfLJGdG6clHM4wqdFN+T X9kHvucJTzr2PLtYEqwtJjZzGfy3QbJPaN2Tn4j+uFo5PenwKGSmJ4VgKbhykJo08BU/ jbL/s1PqK5Xg6l+ZMFoJuzLbhaXh1sCZOHt4lHMlJ72lxFKovBtyGYHDND0RLXWCpjnJ g7uxM7rcbbUFqkj1PrjED5cXUkMl18o97jggrgC40XtawhccskTMcTsSfWkUsX+kObQc smI5WnvINM4M08+Q9/i0MnRBaBSHhUJsdHvq+0455OyIgScHxvcUnShXtXOWGp3QcHLj UKWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717173944; x=1717778744; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TH4bnbtSSVEcXN8q4TBBHbQcYVbG9UpE4sBQSCvIGBs=; b=VBPJfyTXmvPsSGnmvdnoDwwrC7b1ILYk/AT5kLblZTdPI5BQ099JRVeTtYVGtspgcX vi0zc3mhmSI22Esyp97DIzy1UezlCoXqnbwOIxUO/q+lXaZrCgiI5SUTFRmSj0M3ximJ cZk7e6lUYb4PKdDYlUJBjKGah0imP1Yc6piNwfvqleF/RaHPE++tAloH28Vy6BDQ5ldF gNcC+NQ+/j9e7/lvq5ElYGxAqocVZz/5e4YjO1K/GOdDCF7URbfxoCtlaMhrdnauBI/6 itX0cuN3GJ6nSvFPOy0hSROVYbDdd9fC6JCPIkQQh34NkFtIn/pWG07sloJIsEj0c3S6 58cA== X-Forwarded-Encrypted: i=1; AJvYcCXLq0bTi/B/qNAkynUWICQfoS1E8bSDrUJTlQKP4en2H5LOHTd4v0myIuvOSl5A15YcRipTkIpOM1JYEUINLOC4i6d/Xt8yM7X5Hoel X-Gm-Message-State: AOJu0YwA2k7YLNeN1OE5yLtgSn5CzUrq3GuYqYFOzs9YpNdN6zVvmM9Y tdXAKZ3l4/8s1uxUqpSCJSSwO7FrQobBUMN4zIWQgRO6f05MGjr8Geu6Qb/UhFyf9ZtSig+htB5 0x1iImXCVEg6c71FS9p8EeIV9dECKgzBfjW8X X-Received: by 2002:a05:600c:6546:b0:41f:9dd0:7168 with SMTP id 5b1f17b1804b1-4212c091f55mr2200815e9.2.1717173943952; Fri, 31 May 2024 09:45:43 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240529180510.2295118-1-jthoughton@google.com> <20240529180510.2295118-3-jthoughton@google.com> In-Reply-To: From: Yu Zhao Date: Fri, 31 May 2024 10:45:04 -0600 Message-ID: Subject: Re: [PATCH v4 2/7] mm: multi-gen LRU: Have secondary MMUs participate in aging To: Oliver Upton Cc: James Houghton , Sean Christopherson , Andrew Morton , Paolo Bonzini , Albert Ou , Ankit Agrawal , Anup Patel , Atish Patra , Axel Rasmussen , Bibo Mao , Catalin Marinas , David Matlack , David Rientjes , Huacai Chen , James Morse , Jonathan Corbet , Marc Zyngier , Michael Ellerman , Nicholas Piggin , Palmer Dabbelt , Paul Walmsley , Raghavendra Rao Ananta , Ryan Roberts , Shaoqin Huang , Shuah Khan , Suzuki K Poulose , Tianrui Zhao , Will Deacon , Zenghui Yu , kvm-riscv@lists.infradead.org, kvm@vger.kernel.org, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mips@vger.kernel.org, linux-mm@kvack.org, linux-riscv@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, loongarch@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, May 31, 2024 at 1:03=E2=80=AFAM Oliver Upton wrote: > > On Fri, May 31, 2024 at 12:05:48AM -0600, Yu Zhao wrote: Let me add back what I said earlier: I'm not convinced, but it doesn't mean your point of view is invalid. If you fully understand the implications of your design choice and document them, I will not object. > > All optimizations in v2 were measured step by step. Even that bitmap, > > which might be considered overengineered, brought a readily > > measuarable 4% improvement in memcached throughput on Altra Max > > swapping to Optane: > > That's great, but taking an iterative approach to the problem allows > the reviewers and maintainers to come to their own conclusions about > each optimization independently. Squashing all of that together and > posting the result doesn't allow for this. That's your methodology, which I respect: as I said I won't stand in your w= ay. But mine is backed by data, please do respect that as well, by doing what I asked: document your justifications. > Even if we were to take the series as-is, the door is wide open to > subsequent improvements. > > > What I don't think is acceptable is simplifying those optimizations > > out without documenting your justifications (I would even call it a > > design change, rather than simplification, from v3 to v4). > > No, sorry, there's nothing wrong with James' approach here. Sorry, are you saying "without documenting your justifications" is nothing wrong? If so, please elaborate. > The discussion that led to the design of v4 happened on list; you were > on CC. The general consensus on the KVM side was that the bitmap was > complicated and lacked independent justification. There was ample > opportunity to voice your concerns before he spent the time on v4. Please re-read my previous emails -- I never object to the removal of the bitmap or James' approach. And please stop making assumptions -- I did voice my concerns with James privately. > You seriously cannot fault a contributor for respinning their work based > on the provided feedback. Are you saying I faulted James for taking others' feedback? If so, where? And I'll make sure I don't give such an impression in the future. Also what do you think about the technical flaws and inaccurate understandings I pointed out? You seem to have a strong opinion on your iterate approach, but I hope you didn't choose to overlook the real meat of this discussion.