From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.182 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796414887; b=WtGGOD5ueBxalzQViYZfbrnUu9zekaPwMp66nW2NuNqVbOipzubiUJL3SBELE/O5JTEq XlVHoTEsCsdp8uSDQT/9UNxIfZUxTQUqAFeq6iwD1SGl8gcBw8V3+3shK7DGkrVatT0zZ 3SjxnrOZwbk0vbTa2j9A9iirfReiuKjSAmyQmr1cPLVCygg77+ysi4zTmQQgB44JTNLzh glIgRaoEfRllIPewUzkwspi/BtOK4TdhyH9eYs5yNKdNZObtDgozZrtp1CSPs3SABqDqi XYtQ9AuHh3KBoD4mkrxBFxlViSnvEpe1p0zF9uosyzYhsAiVYUJWb9GGoDlVzxLxpcQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796414887; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=1XH6vGBEC4tQ6t0zOog9SqpwPc4nCoB0LLhIHZUevpk=; b=Wm1sescDgWGKHHjIHbrDGbSqWJALmHdTcXNnMECqC/+TKzPDz6ONWj2TR31ERJZ5f/Pc PnDYIphSYewA/9ZSxJys+sgwpwc9a4uJXV4LP5SNpI+6Ue5/tpAoXMp5NbaZ3ssTUe+zI YqobES5h1Uf7BPAUbyjkIT5wJDD12hgvGjTr2D8vO7PbW+U/CihSENNI5BO2dcHQRncXh BOVG5+whDR3chD43LRMljMuKEDTMF4ekN1Sc/K8AGG3rZJZDjM0zVdFkJhOVGGq77x7yD 9Ygvx0w2QK0NSPQXbbuB4QJhHt+1gEJrGl2U+GOvbP2jZ42j27pFAVXmyNY8Hd2/n4A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=C38xLnSC; arc=none smtp.remote-ip=209.85.210.182 Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 48FF6606A32C for ; Fri, 4 Dec 2026 20:08:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 48FF6606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=C38xLnSC Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-8b2382bf051so772190b3a.3 for ; Fri, 04 Dec 2026 12:08:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796414886; x=1797019686; darn=lists.linux.dev; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=1XH6vGBEC4tQ6t0zOog9SqpwPc4nCoB0LLhIHZUevpk=; b=C38xLnSCyaoMru3xWZOlAq4z/dbd4+L8xdZTSUt4FrhG95MErzpLlt9opDoZLz/GcR 8Ws6TrWXsRLC4KlPFAFzn4mebRW5rpblvRWlcmn3+iJed0YbpreFQ/sSI8/s4+BhrnvJ jNik0P7dRAVIk7ypfKkBrWEawNPtjbNDqMSCADPoHEtv6sN56lwXlvogZjl3vAvQMl2d QojyBjYnDL/TQiZLrdwk3+ry2JCm2Tb6C5xLOF3rB1w+RQdaTJGlsmqQfDMAQjdko0E/ FhxOG3nEAUK2puoBBou3SG3DVKw0Yb12LxvXiQ97eSotGuJhwTy5MwrUReicRW5voJ0h 5htA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796414886; x=1797019686; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=1XH6vGBEC4tQ6t0zOog9SqpwPc4nCoB0LLhIHZUevpk=; b=iyThwaZSLPSW8ZNQpC50tsHiBSi0ylvGAaI+N2qJVwHsrqawKtD0lrj/5mAvAMcSZI L1mnc098EYZKZaqknMFBfN5qSYhcuCMUNpMYMtn7yTCviTdxoOGo66pc1Mq8rK4rueDV OFPHpnwC7FZix7ol94XjkqdLS4583cix9M/cXlwZm9TAeNcC4vdYV4Olf3GoBfz9yp7u gal0Lbv8rlIS9alOYSI2CHrEHeK0yRkB0bz7Q0eHMSQQzqryb1aiAVWQo71ITFwi2g7G pcvrgkM6ul/F+RjLacte4ubtMwmooBGHpqsjKJVqprroUhzLaf/M2NB0DS0P4A8iTS/O 4LRQ== X-Forwarded-Encrypted: i=1; AL+hErE7j8SdXSmywxw39Vw2x2cf8G9RIhmYQrE1D6wxrWKgZDnXIm2ikYsdrEYfVZ8h3JKkKQwLYQ==@lists.linux.dev X-Gm-Message-State: AB4q+uFPWJYjL6klLwZeDByd0k+Rk+z/XIaS5sLFu52ze7nr/1HI3YB3 D0+m7BbVnEy+seV9jwvjiniHzXYHfiNa2DqKI1P58KiFo2LBZainGQuOCHHkolbnwPI= X-Gm-Gg: AZFdTZeyzrKks1ZoLg62RMasafFuqgVIdFJtoG7o4sM5NZTCPNfDo57fQKdiqBXSoxr z/pxxQGXaT+Z4a6qhFBhJaITcOMY5nEPIv9ywaDHAk7ixM+2oKL1CA/sBx4wl1VlQxvseOWfTnY n5NkOrtduyFB3JEq4+WwMsw1YOFGjSM0vgBMTV0hyqhsKuJmPZfkZjAxOjE4gbjUGfjsSevD6zb LdH9CkbQadehPXaTVYABfk4FSpNcwwiiUV8ceJkRqM2FPnveSYHjIMLn46P2Wu7qADzabeUZEDG NpNzTgIBFtj89V+oPteSi5GNOh6xkthBNwOgICmfzoECqrtP2v3VmtYMU+fiL6OZjDCpibx16Qu 7qTXDJXpc0uIhZbH5zcM5cRPvwmcRo7MatrjlhG2spgmOKAUw6sKRPwCOZMxhAL+UfsI8Y2to6G P4EafwVsHbDBdJnsp/Rj1/7G0pf+4bJ8n+V+ahpMpTPI9eJezDd4q0ehSgjbGkk8D0CRb/AXxhK 4gJ2ir1o2X+Auqs3QpumL/V8+7Ysz6dDCRZBoLzdu9De1brcDZieBqvEvlinID9uKfMvsOT8+Bu yat6cw3zJdsuivj7bwUvGtpBtTUfd84PBQJvU+Vq7RLsPmzCx5TNK7WKh0I8HTWKmyWy X-Received: by 2002:a17:90b:580c:b0:3b5:32db:12a with SMTP id 98e67ed59e1d1-3b5e05d62bamr2447456a91.19.1796414886366; Fri, 04 Dec 2026 12:08:06 -0800 (PST) Received: from KASONG-MC4 ([101.32.222.185]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b5c7d65b94sm10909061a91.12.2026.12.04.12.08.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 12:08:05 -0800 (PST) Date: Sat, 5 Dec 2026 04:07:58 +0800 From: Kairui Song To: sashiko-reviews@lists.linux.dev Cc: Kairui Song , damon@lists.linux.dev Subject: Re: [PATCH v8 00/19] mm/mglru: frequency guided promotion (MGLRU-FG) and flag cleanup Message-ID: References: <20261204-mglru-fg-v8-0-64f81c876c15@tencent.com> X-Mailing-List: damon@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Dec 03, 2026 at 10:39:15PM +0800, sashiko-bot@kernel.org wrote: > Sashiko has finished reviewing this 19-patch series: > > - Patches 2-4, 10-13, 15, and 17: no issues found. > - Patch 1 ("mm/memcontrol: allow update of LRU statistic without..."): 3 > potential issues (1 Medium, 2 Low) > - Patch 5 ("mm/mglru: make generation page counters atomic"): 1 > potential issue (1 Low) > - Patch 6 ("mm/mglru: skip the flags cmpxchg when nothing changes"): 1 > potential issue (1 Low) > - Patch 7 ("mm/mglru: frequency guided workingset promotion (MGL..."): 6 > potential issues (2 Medium, 4 Low) > - Patch 8 ("mm/mglru: make folio lru referenced times count a ge..."): 3 > potential issues (2 Medium, 1 Low) > - Patch 9 ("mm/mglru: move add/del LRU size accounting out of lr..."): 1 > potential issue (1 Low) > - Patch 14 ("mm/madvise: adapt for LRU refs based operations for..."): 1 > potential issue (1 Low) > - Patch 16 ("mm/huge_memory: mark folio as accessed more accurate..."): > 2 potential issues (2 Medium) > - Patch 18 ("mm/mglru: folio LRU refs based active/inactive numbe..."): > 1 potential issue (1 Low) > - Patch 19 ("mm/mglru: make folio_inc_lru_refs lruvec lockless"): 1 > potential issue (1 Medium) > > Detailed reviews have been sent as separate replies to patches 1, 5-9, > 14, 16, 18, and 19. Very interestingly, the code didn't change much but Sashiko suddenly got very suspicious on this series. Maybe the model or prompt changed? It took me a while to go through this, only two or three micro optimization suggestions are good to have, other are either really tiny nits (e.g. commit message should include some prepare info etc..) or pre-existing problem that are orthogonal. I think I'll send out some seperata fixes, they are not depend on or being depend on by this series, and a v9 just to slightly adjust a few commit message and include a few micro optimizations.