Thread (28 messages) 28 messages, 4 authors, 2021-03-20

Re: [PATCH 05/10] mm/migrate: demote pages during reclaim

From: Dave Hansen <hidden>
Date: 2021-03-09 23:06:53
Also in: lkml

On 3/8/21 4:10 PM, Yang Shi wrote:
quoted
+static struct page *alloc_demote_page(struct page *page, unsigned long node)
+{
+       struct migration_target_control mtc = {
+               /*
+                * Fail the allocation quickly and quietly.  When this
+                * happens, 'page; will likely just be discarded instead
+                * of migrated.
+                */
+               .gfp_mask = GFP_HIGHUSER_MOVABLE | __GFP_NORETRY | __GFP_NOWARN,
+               .nid = node
I recall I pointed out __GFP_THISNODE should be needed to guarantee
the allocation doesn't fallback. But it seems it is not solved yet or
it is guaranteed by the other way?
Sorry about missing that before.  This mask definitely needs
__GFP_THISNODE.  I've added it for the next version.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help