From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED550CDB465 for ; Mon, 16 Oct 2023 22:40:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233777AbjJPWkE (ORCPT ); Mon, 16 Oct 2023 18:40:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232577AbjJPWkC (ORCPT ); Mon, 16 Oct 2023 18:40:02 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 110AC95 for ; Mon, 16 Oct 2023 15:40:01 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D75BC433C7; Mon, 16 Oct 2023 22:40:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1697496000; bh=V1BRkFF3SiBUx+bZijH3HFIpyiSAqaYK+1MwBJFCW8Q=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=vGzIbEYfJPfxFebbfPS6y0TCzRwc8CO4iz0XFaW46fUfSJGwS8LK/FYoAOlvS/fak X6Z520q7KjmF2IwR+NQOTYOWA/s8L2YY5Hr9OvQ8j2OUnsA7Jm6zKEM+1JRlSujze2 LXn8lFZVrsszFzPTsCPDH0+ggogUlyCzinUHjjas= Date: Mon, 16 Oct 2023 15:39:59 -0700 From: Andrew Morton To: "zhaoyang.huang" Cc: Johannes Weiner , Roman Gushchin , , , Zhaoyang Huang , Subject: Re: [PATCHv6 1/1] mm: optimization on page allocation when CMA enabled Message-Id: <20231016153959.c218e1ae876426b9193eb294@linux-foundation.org> In-Reply-To: <20231016071245.2865233-1-zhaoyang.huang@unisoc.com> References: <20231016071245.2865233-1-zhaoyang.huang@unisoc.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 16 Oct 2023 15:12:45 +0800 "zhaoyang.huang" wrote: > From: Zhaoyang Huang > > According to current CMA utilization policy, an alloc_pages(GFP_USER) > could 'steal' UNMOVABLE & RECLAIMABLE page blocks via the help of > CMA(pass zone_watermark_ok by counting CMA in but use U&R in rmqueue), > which could lead to following alloc_pages(GFP_KERNEL) fail. > Solving this by introducing second watermark checking for GFP_MOVABLE, > which could have the allocation use CMA when proper. > > -- Free_pages(30MB) > | > | > -- WMARK_LOW(25MB) > | > -- Free_CMA(12MB) > | > | > -- > > Signed-off-by: Zhaoyang Huang > --- > v6: update comments The patch itself is identical to the v5 patch. So either you meant "update changelog" above or you sent the wrong diff? Also, have we resolved any concerns regarding possible performance impacts of this change?