Received: by 2002:a05:7412:8d08:b0:f9:2d0a:d759 with SMTP id bj8csp191478rdb; Sun, 17 Dec 2023 07:40:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IFljzOKuYuHOmnUZLmBITnAMofQC4CoM+j3wMYW3lJxb/VqlSavAgN56Rt489PyTWAIGm/V X-Received: by 2002:a05:6870:1d06:b0:1fa:db5f:419c with SMTP id pa6-20020a0568701d0600b001fadb5f419cmr22763790oab.59.1702827641130; Sun, 17 Dec 2023 07:40:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702827641; cv=none; d=google.com; s=arc-20160816; b=Ln98FKJ6Cc8pMEY6KvJZbLBzy7jaWx/hko5HqyX2LikekqRa+UGkMsVfNZqMEevI89 kvanwc+7HHkJDTZgHdn65yq3JLPHG2g8Xgm0gBFbkjN6A056LuGbrlP8chKk1djoCZnH b9m+B4YEQeKfrpEsNyf8yfOVfKY7Ro5o8lfnwMn9QqGIrvr2Co2PLxRDfX8T1Dfs3d4H V+/1kj8PtmG0hD1tHRJKebE3pTqfU/80oH/n73IQLFGZ17qvHvrS7uE3nLNuzKVdax/V 0jCP3J6aBYXAhSYIKDhP8fNJ6ZY9T6NzB5Owo42y48zgJKLDlEzM5nqyLGlSOMu3xIvy KXjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=IUv0ylGmTtF0hsJHYBG0CgaUWyi6w1dHRyjxXG/JmjU=; fh=yO6ISsRVO6loEmO/MwKz0VIQ9PnW7Nxjgld4nNHx5r0=; b=iMK90Si30xv4iPNrguFHF36dRO+BSGTkvo2N/cfNBIs8FgCMPahsHbVdQER3LDIltU sjXsNaBkq1GOqNhdJddPsgwg0lqW22N0zHUIhNDT495sKHzLtSsJUL7L4ce08oX6uydE yPixK4Mk6BCMkTBYuOEHm7CKJamiPrd64XK6c/4EgMYLOkFsDhAS9vVJA5s1CUAcdba4 +D5W4rXz5vZ4eA0fBhRerm3HEaPlEtQqvzKAI3cvdEAc8reGghNSkASylMlTHFHxo4xe s9cd3zzyACeSYBFqjNmTL4y96J0h7EDbOJHe4FoYNHy36UofnYECHVWvGYbTCQBpZwUf Ha+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=bGt3EkY2; spf=pass (google.com: domain of linux-kernel+bounces-2669-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2669-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y15-20020a17090aa40f00b0028681d132c8si17783203pjp.24.2023.12.17.07.40.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 07:40:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2669-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=bGt3EkY2; spf=pass (google.com: domain of linux-kernel+bounces-2669-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2669-linux.lists.archive=gmail.com@vger.kernel.org" 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 11EDD282825 for ; Sun, 17 Dec 2023 15:40:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D35D44C98; Sun, 17 Dec 2023 15:40:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="bGt3EkY2" X-Original-To: linux-kernel@vger.kernel.org Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1DB2017F8 for ; Sun, 17 Dec 2023 15:40:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=IUv0ylGmTtF0hsJHYBG0CgaUWyi6w1dHRyjxXG/JmjU=; b=bGt3EkY21K7PCJ0qioJQMVTPdY XGRZyU8xH3uPW5B8rpGYx8XO8YR/LLta5HrF1XQH3iHQ/YAUTpXyS0c84DRzEdKeU13LmNe8+Z+3B AOVxG2ZmK4Vh2pE8ylEkro2kZPnLUg5YeSUBpjXrLhJnb8xLukHc3AfiRLUlzPMpM2CzMoTzi6FHp qBulM4qKk03kboznq/NKsyLTOPEp2RkBUxy5UxUmz+j99mrhAh8jW6P8BsM9GzDjrp/aZ0/Ya9VIt Goesq8G7es8xB2oMXIuNFw8CgtDtVgli8k9cgrsmpXvZYXlg/OSzlRPgdeRv4YdfXWDSTVLO/uCdt Ew3gYSGw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1rEtFb-00Bqgq-7e; Sun, 17 Dec 2023 15:40:19 +0000 Date: Sun, 17 Dec 2023 15:40:19 +0000 From: Matthew Wilcox To: Linus Torvalds Cc: Yu Zhao , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Jesse Barnes , Suren Baghdasaryan , Guru Anbalagane , David Rientjes Subject: Re: [GIT PULL] hotfixes for 6.7-rc6 Message-ID: References: <20231215071604.946a433bbc05a6409faf5a33@linux-foundation.org> <20231215122251.bad09400b337dfb1965f6976@linux-foundation.org> Precedence: bulk X-Mailing-List: linux-kernel@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 Sat, Dec 16, 2023 at 04:16:45PM -0800, Linus Torvalds wrote: > On Fri, 15 Dec 2023 at 20:57, Yu Zhao wrote: > > > > There has been a short-term plan, i.e., moving some of folio->flags to > > the lower bits of folio->lru so that we can drop the Kconfig > > constraint. I have discussed this with Willy but never acted on it. My > > priority has been to surface more of our ideas that can potentially > > save users money on memory to the community. I'm CC'ing our team > > leads. Please feel free to let us know your preference on the > > priority. > > This is definitely a "eventually" thing on my wishlist, so I was more > just wanting to hear that there is a plan, and somebody working on > it.. "eventually" we should get rid of LRUs altogether. They're no good for a modern CPU. https://lore.kernel.org/linux-mm/ZTc7SHQ4RbPkD3eZ@casper.infradead.org/ I don't have much more in the way of thoughts on what this might look like beyond that email. I'm inclined towards something incredibly simple like taking each 4MB chunk of memory in turn; freeing inactive pages and marking active pages as inactive.