Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3049460rdb; Tue, 26 Dec 2023 14:12:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IE802aLOk96luU/EDcKlyzDBmS88aMCeiFwozaiviP1xG+bbSOVA0SZPuYSZ8iLFDUttF4K X-Received: by 2002:a05:6871:7406:b0:203:38e3:f890 with SMTP id nw6-20020a056871740600b0020338e3f890mr9200883oac.1.1703628752027; Tue, 26 Dec 2023 14:12:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703628751; cv=none; d=google.com; s=arc-20160816; b=C82MW5bSWNzo1vxHfVZO9ss7cpUp3Z7OjW6kDnzTfR+9uxY+cRxIFckn0TOceLkT/l ryThvmwW+Nyir29c+Bj4be4swetDGWPksL0CdtIUCQHiR912qzj6X8O36gv5fT6uMllz CK25XEY3u1fsGWxekvPEh2aiZPkvtMwO7erkd1kXkx2Hqe0yH6WW4JueEqdJ07kWdAaD QHuZgwW/gBipaB0G+moLplGAImGuLPApMRAGO7NrHUT4y0zbJwPKtG8n01yP72Qr69T0 b39d8MITH0cFwej1F1MOZFQVCNff5ydRfBY/VXc1D5PoCZj2HUOiN1N3gG/1dymZebgC iTOQ== ARC-Message-Signature: i=1; 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=qGyOmo1LInXd6cBCtzQtdu/T4kUyPwlVjT3/bkZ4u7M=; fh=we6i4VHXUpBxSl+BIJkCbTbSexYzDqcKrA0Wc6p4ZrQ=; b=S1Og7XfHJLKMs+qYm1FpH22vTPQ/aN/x13URRQXEgfWB5NW4E6ICPlq/Y7JlZ+2i1w 0xlyY18SOE+nmj9HOmxHVYr32shpSKnq0isj3AI8iM+NRySC6MqK17GcISLGd6UAHbKA 8ViYo0oN5fVJbbsqtItoaAjVNVe++Prihi/14vR5bOxmKj0G8016uNWdMrCzcoQhVKMA 81pgFVQ/7I4FECbhzi+yCtgmnE6ICgFKUcg72+5f2E5EZPqypA3prm3n+4VWDFEfoFdi 4UNrlQ/UTx/qFaSSc/j3CM532+mEIoDjYBpDrzfUntRj4Yl/poiTO94/CZDRsRUBjwVe asAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=SeJUzYJM; spf=pass (google.com: domain of linux-kernel+bounces-11704-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11704-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id cw5-20020a056a00450500b006d96368c41esi6154179pfb.192.2023.12.26.14.12.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 14:12:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11704-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=SeJUzYJM; spf=pass (google.com: domain of linux-kernel+bounces-11704-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11704-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A1967282AF7 for ; Tue, 26 Dec 2023 22:12:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 363E9524B; Tue, 26 Dec 2023 22:12:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="SeJUzYJM" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com [209.85.128.171]) (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 1B6E25224 for ; Tue, 26 Dec 2023 22:12:23 +0000 (UTC) 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-yw1-f171.google.com with SMTP id 00721157ae682-5e75005bd0cso42291027b3.1 for ; Tue, 26 Dec 2023 14:12:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1703628743; x=1704233543; 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=qGyOmo1LInXd6cBCtzQtdu/T4kUyPwlVjT3/bkZ4u7M=; b=SeJUzYJMRArX6+hBdnCGHkYSxtyYwsaC/RVLeaxWNxKTeOoAeaw3J+eKEFrtFcUJtm /sUAjRun033uFtRVUZDPhAzO9zkbV71w6xvDxmmqJczRG1vWVmAFm6/hACUlcJRabpSQ keh0SdMmMUIAW/weAQLUYYCBmQf7pIlDyMa9/A6XgejTH/6WhKq+/hA0cgvq3+tX/ksg SJw2L8WFUqn7+BtsPHish94k9ayRUSlFCRwysd6g9Vwe++slLpM8mD8cKbO7Up+orP8l 2Gt4j+cfrIGwOQf1pZR3uuPo+1BtVWi1r83ayEMo5fbJ2186jsrhBnIK12YetDmrEnqG uvNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703628743; x=1704233543; 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=qGyOmo1LInXd6cBCtzQtdu/T4kUyPwlVjT3/bkZ4u7M=; b=hNLH9H+y7VfndHpH7SQPBp6UwBgnT18WifheQYO2fhynSYws8UacrhEPuUEFcY/9D2 rGTnXAT5FQU347YO3ERPw8G1S6W7UkSpT4EZz/ZZ3r1ADZ0EgYG+bdcRa8Hgovtg0tc4 BcktZ1ZWKpZWyk0NzPL521LpWLYT1OhpSw05FxtzBLPcU52ZXMlk1ZX+rKZtP8o3++GX 9EuuQg1JUTxMvW1W0y+flz+eXciKZsNLxGijhMAa1EBMlj+mtesea5sPVfxmyCdt5Q6h 7kxeSxH23xknarcU0hyoQwC6tdT8N3PcwWhu9UfTiGQToTJ19T4VKF385OPaKmIF2Hlz IGZQ== X-Gm-Message-State: AOJu0YyykVm/RgGNOHGc0bapV94jsFpDwoBKPprp1xtL8ddFHJdP48TZ PmIi1bykCpLMzo60W1Jd/Vg91gyF7NwLpJNblZxzXb/vZSxY X-Received: by 2002:a05:690c:243:b0:5ed:9207:341d with SMTP id ba3-20020a05690c024300b005ed9207341dmr924990ywb.8.1703628742827; Tue, 26 Dec 2023 14:12:22 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231222102255.56993-1-ryncsn@gmail.com> <20231222102255.56993-4-ryncsn@gmail.com> In-Reply-To: From: Suren Baghdasaryan Date: Tue, 26 Dec 2023 14:12:09 -0800 Message-ID: Subject: Re: [PATCH 3/3] mm, lru_gen: try to prefetch next page when canning LRU To: Matthew Wilcox Cc: Yu Zhao , Kairui Song , linux-mm@kvack.org, Andrew Morton , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Dec 25, 2023 at 7:42=E2=80=AFAM Matthew Wilcox wrote: > > On Sun, Dec 24, 2023 at 11:41:31PM -0700, Yu Zhao wrote: > > On Fri, Dec 22, 2023 at 3:24=E2=80=AFAM Kairui Song = wrote: > > > > > > From: Kairui Song > > > > > > Prefetch for inactive/active LRU have been long exiting, apply the sa= me > > > optimization for MGLRU. > > > > I seriously doubt that prefetch helps in this case. > > > > Willy, any thoughts on this? Thanks. > > It _might_ ... highly depends on microarchitecture. My experience is > that it offers more benefit on AMD than on Intel, but that experience > is several generations out of date and it may just not be applicable to > modern AMD. > > It's probably more effective on ARM Cortex A cores than on ARM Cortex X > cores ... maybe we can get someone from Android (Suren?) to do some > testing? Android is quite noisy and I'm afraid a small improvement like this would not be distinguishable from noise unless it's much more pronounced. I'll take a stab but don't hold your breath.