From: "Lameter, Christopher" <cl@os.amperecomputing.com>
To: "Huang, Ying" <ying.huang@intel.com>
Cc: Michal Hocko <mhocko@suse.com>,
Andrew Morton <akpm@linux-foundation.org>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org,
Mel Gorman <mgorman@techsingularity.net>,
Vlastimil Babka <vbabka@suse.cz>
Subject: Re: [PATCH] mm: fix draining remote pageset
Date: Wed, 16 Aug 2023 13:23:00 -0700 (PDT) [thread overview]
Message-ID: <1f21c7bd-4bba-e72a-c998-0e11fda8a5b1@os.amperecomputing.com> (raw)
In-Reply-To: <87jztv79co.fsf@yhuang6-desk2.ccr.corp.intel.com>
On Wed, 16 Aug 2023, Huang, Ying wrote:
> Michal Hocko <mhocko@suse.com> writes:
>>>> Why is that a problem?
>>>
>>> The pages of the remote zone may be kept in the local per-CPU pageset
>>> for long time as long as there's no page allocation/freeing on the
>>> logical CPU. In addition to the logical CPU goes idle, this is also
>>> possible if the logical CPU is busy in the user space.
>>
>> But why is this a problem? Is the scale of the problem sufficient to
>> trigger out of memory situations or be otherwise harmful?
>
> This may trigger premature page reclaiming. The pages in the PCP of the
> remote zone would have been freed to satisfy the page allocation for the
> remote zone to avoid page reclaiming. It's highly possible that the
> local CPU just allocate/free from/to the remote zone temporarily. So,
> we should free PCP pages of the remote zone if there is no page
> allocation/freeing from/to the remote zone for 3 seconds.
>
> This will not trigger OOM, because all PCP will be drained if allocation
> failed after direct reclaiming.
I think this is a minor issue but its cleaner behavior.
vmstat refresh's should continue as long as there are
pages queued in remote pcps.
next prev parent reply other threads:[~2023-08-16 20:24 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-11 9:08 [PATCH] mm: fix draining remote pageset Huang Ying
2023-08-11 9:35 ` Michal Hocko
2023-08-14 1:59 ` Huang, Ying
2023-08-16 6:49 ` Michal Hocko
2023-08-16 7:08 ` Huang, Ying
2023-08-16 20:23 ` Lameter, Christopher [this message]
2023-08-21 7:55 ` Michal Hocko
2023-08-21 8:30 ` Huang, Ying
2023-08-21 9:27 ` Michal Hocko
2023-08-21 22:31 ` Huang, Ying
2023-08-22 8:09 ` Michal Hocko
2023-08-25 17:06 ` Lameter, Christopher
2023-08-29 6:08 ` Huang, Ying
2023-08-29 18:05 ` Lameter, Christopher
2023-09-05 16:52 ` Vlastimil Babka
2023-09-06 4:17 ` Huang, Ying
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1f21c7bd-4bba-e72a-c998-0e11fda8a5b1@os.amperecomputing.com \
--to=cl@os.amperecomputing.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mgorman@techsingularity.net \
--cc=mhocko@suse.com \
--cc=vbabka@suse.cz \
--cc=ying.huang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox