Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp527096rdb; Thu, 8 Feb 2024 12:53:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IFoyzQo7eKk2GfmOmZ+DBl2So/RY2TYRYbGq4Hozh4Tb0ACPlZzx52vvvgpX3N42mYAzvKY X-Received: by 2002:a0d:cb8e:0:b0:604:a566:2555 with SMTP id n136-20020a0dcb8e000000b00604a5662555mr602233ywd.6.1707425590402; Thu, 08 Feb 2024 12:53:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707425590; cv=pass; d=google.com; s=arc-20160816; b=kVHGJ0daSRxuxL3fvNvz/R+trpQS8YP473VwBBuRiJE6X9BdchuLf/U9RAEp4h25z8 1+8+kW3M8EJmyibhFTBESNU+rKMCTsPTiXvIFi1+ipCYSdqOp4hoIS+iuHM2R+sbXIYM 9RcWIVKy8XWbEAz0Wx3orAGHW9z3GpvpwwDvk5G/Sc0LiZzFPL5HiHNyzv7MAiX7zafc TSIWv6Lf99pCNcPIRY9LQEPBP64vh6ED+MHeopGgknsAwo3czeEXQc4sElVivL9PwnUo NETJeieIqwpUDj8sdRDGHbOhu2WDb3Uk9b5szAy0sEuJVL4qKQFl4OFXN/PcCgN1ajjy 1WxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=vkCfd4QOxhtb5N7pJ+Gkq2BgN6VvZHFvtasZHhzlxkk=; fh=KmBw/Gi1+RDpM7W6KzwHw8kolHjFuvS9JRSBUMC4jx0=; b=CBOrua3btNmyD7hXxPvUsnDz3Tcgd0Awq2yC5W5orrIvPzpo4LXgcvrxAF8dQoTN8G NNFmFXuZ6KoZPXTOZ7lExGnBt1+dnWWN8cMymeTkGKFm5gp7fyBDrJ4rs/469vG8OT6k AQNFvmXl38DOJVJOp0xtGzHebNDJP2Nohnej9V2FLb16aiBPr0Ma9kvXP/TiQpBb5Kiw u/77BOB8qx/FCWM34dDkk5hUho9AXKXWjE+mX4d3rVFbfzW92NVYYJ5+sJo8MGqXLp6v L774Cmm4vCeSz6OBy9yuX+dxDiK1kWH4DI7Ot9m4Cx+Qv7YyBgNLR52Tz0SunI7i52bE W9RA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=Muo4DSdJ; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-58686-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58686-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCUBSm88tL9GfY0ISaslOl6X6wiCJ+6tCN/MWEo70gnJcYEmCIEaaM8GVYqx2WcFFMB9Z6SqlSC6d47ntEq2GanQCJCsTSYPXs3/e/WOoA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y18-20020a05622a121200b0042c4cb72c48si320522qtx.98.2024.02.08.12.53.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 12:53:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58686-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=Muo4DSdJ; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-58686-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58686-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 10B7A1C22752 for ; Thu, 8 Feb 2024 20:53:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B8659524DA; Thu, 8 Feb 2024 20:49:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="Muo4DSdJ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D5588524C9 for ; Thu, 8 Feb 2024 20:49:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707425360; cv=none; b=twi3KLH0X9EMwYC6bCZ15pwefLCsJoJiRtnvssTZTB4LVkiDEEmF1rQjWL9jv4qsntZk4HmBOphFXxkBqgqM5AJh+FmacDqNuNmLj6qoqnhR+NPm9gnutdsbCw46YiuUuiSqMz4bqNKGVePBl+dRDiuPOW3e1SoLfSlAIBIjyPE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707425360; c=relaxed/simple; bh=XNy5bct25iKIwk3cOLUSYqT7AZnVWs8QzMt8bjh+KG8=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=MAG+gJ7oFtgKQHNIU9zkK4LMFdfzj7cGrbM3NT8FTWBek5I2I+6VH208pp+w0dyH8eK7VsvKZOkB1uPilbSC/gR6IOLhpaC1weyussSSWIKKZMvGH4jEsEbsimCkZVx2sdY8L5YBH7/6zAjvR2mKeYd64EhgBFoGNyGv5fVtac4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=Muo4DSdJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF510C433C7; Thu, 8 Feb 2024 20:49:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1707425360; bh=XNy5bct25iKIwk3cOLUSYqT7AZnVWs8QzMt8bjh+KG8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Muo4DSdJIQCwPOwHQuDdpeACnq24SRB85OZb8qYTGEKdx6qw/yyW4J0JEpxCAFWyV J2ol6++kg3HPomXzL0+19loBiZlk08NG952wSGGsbEsx7A4rCAd3b0ptmSNfgvYZVf btKyfOuyd6gEe2SDFMoxl5FxSkD0pUbE6oNsJu+s= Date: Thu, 8 Feb 2024 12:49:19 -0800 From: Andrew Morton To: Byungchul Park Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, kernel_team@skhynix.com, ying.huang@intel.com, namit@vmware.com, vernhao@tencent.com, mgorman@techsingularity.net, hughd@google.com, willy@infradead.org, david@redhat.com, peterz@infradead.org, luto@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, rjgolo@gmail.com Subject: Re: [RESEND PATCH v7 6/8] mm: Add APIs to free a folio directly to the buddy bypassing pcp Message-Id: <20240208124919.a0e1707fefc29c2f4213e509@linux-foundation.org> In-Reply-To: <20240208062608.44351-7-byungchul@sk.com> References: <20240208062608.44351-1-byungchul@sk.com> <20240208062608.44351-7-byungchul@sk.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit On Thu, 8 Feb 2024 15:26:06 +0900 Byungchul Park wrote: > This is a preparation for migrc mechanism that frees folios at a better The term "migrc" appears in various places but I don't think we're told what is actually means? > time later, rather than the moment migrating folios. The folios freed by > migrc are too old to keep in pcp. How do we define "too old" and what causes you to believe this is the case?