linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Michal Hocko <mhocko@suse.com>
To: Lucas Stach <l.stach@pengutronix.de>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Joonsoo Kim <iamjoonsoo.kim@lge.com>,
	Vlastimil Babka <vbabka@suse.cz>,
	Mel Gorman <mgorman@techsingularity.net>,
	linux-mm@kvack.org, kernel@pengutronix.de,
	patchwork-lst@pengutronix.de
Subject: Re: [PATCH] mm: alloc_contig: re-allow CMA to compact FS pages
Date: Fri, 13 Jan 2017 13:19:05 +0100	[thread overview]
Message-ID: <20170113121905.GJ25212@dhcp22.suse.cz> (raw)
In-Reply-To: <20170113115155.24335-1-l.stach@pengutronix.de>

On Fri 13-01-17 12:51:55, Lucas Stach wrote:
> Commit 73e64c51afc5 (mm, compaction: allow compaction for GFP_NOFS requests)
> changed compation to skip FS pages if not explicitly allowed to touch them,
> but missed to update the CMA compact_control.
> 
> This leads to a very high isolation failure rate, crippling performance of
> CMA even on a lightly loaded system. Re-allow CMA to compact FS pages by
> setting the correct GFP flags, restoring CMA behavior and performance to
> the kernel 4.9 level.
> 
> Fixes: 73e64c51afc5 (mm, compaction: allow compaction for GFP_NOFS requests)
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>

Acked-by: Michal Hocko <mhocko@suse.com>

Thanks for catching that.

> ---
>  mm/page_alloc.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/mm/page_alloc.c b/mm/page_alloc.c
> index 8d5d82c8a85a..eced9fee582b 100644
> --- a/mm/page_alloc.c
> +++ b/mm/page_alloc.c
> @@ -7255,6 +7255,7 @@ int alloc_contig_range(unsigned long start, unsigned long end,
>  		.zone = page_zone(pfn_to_page(start)),
>  		.mode = MIGRATE_SYNC,
>  		.ignore_skip_hint = true,
> +		.gfp_mask = GFP_KERNEL,
>  	};
>  	INIT_LIST_HEAD(&cc.migratepages);
>  
> -- 
> 2.11.0
> 

-- 
Michal Hocko
SUSE Labs

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2017-01-13 12:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-13 11:51 Lucas Stach
2017-01-13 12:19 ` Michal Hocko [this message]
2017-01-13 13:24 ` Vlastimil Babka
2017-01-13 13:35   ` Lucas Stach
2017-01-13 13:47     ` Michal Hocko

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=20170113121905.GJ25212@dhcp22.suse.cz \
    --to=mhocko@suse.com \
    --cc=akpm@linux-foundation.org \
    --cc=iamjoonsoo.kim@lge.com \
    --cc=kernel@pengutronix.de \
    --cc=l.stach@pengutronix.de \
    --cc=linux-mm@kvack.org \
    --cc=mgorman@techsingularity.net \
    --cc=patchwork-lst@pengutronix.de \
    --cc=vbabka@suse.cz \
    /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