Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp326077rwd; Mon, 12 Jun 2023 14:16:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5UrfK1bzD2QxXIkCSQjRoekAl6TnoOFaANWXKzHQ/tLC8GQGQaJBqejT4V81muUEFFfeYB X-Received: by 2002:aa7:c904:0:b0:50b:5dbe:e0f6 with SMTP id b4-20020aa7c904000000b0050b5dbee0f6mr6146954edt.25.1686604577362; Mon, 12 Jun 2023 14:16:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686604577; cv=none; d=google.com; s=arc-20160816; b=LyCja0WNbXUIKmBhQ1R9MCaNBKz/UgkuWMQ+EBGHidgdSawlHdVlLEKkZgBv421Eg4 YBLf1bjMPjESpo01X3KabobW35HplHkfaC8m+fg8lwmPMxY8anqAKya0jezzvkMUiSyk wHba3OMDfIBPYP25g72AbYmb9F8p2GK4GOEVHWCA5WhFQMGRKKM8IWb0126JYt7GRN8R o4aGEG25DVUUg0IFMBGbvDmGPq/IaL+IJtn0Mr+KcWpimurYDMHElfHMpK39EB45BJEY 2hn39njAm0cNkW8SC40Xrsk1Mv+iWwgiD+f0LSLI2Bxln/OL1L1QD1MDQwPwuLs50xZ3 h7yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=12ID+V//jxgIoeevmEhlNPj6JRaLkXeVeph/aQU4fB4=; b=DtQXXIj1hhEHMfnp1UUSjgbOs6OlER9A66Bquxocfml0uS3JVG7uEx1xIBCtzZcFDW /64uJGC1HGJsyjGcCIAyo3XgpVRrWicbQzLvOIanAIDZ1f3OxbsO+vSm127q2IZ2aAsH 7kXJNP4nDvbHvlnHw4+tMhCKBrM1Wf7xbbtcbzC9N3qs9SjujzJrWEuhdFnOUcwB3uns SdDktKEU7puyWWVnhahHyuxrf16Sa91ivt4jwzuL/wnzx8KcuSTHT8exI8+Qquan+BBG Wdt0Hk3MtLzjvsVOKiMqqN2CY+/v7pMRdx0vzLHh/R2rjnzqfG5J9xe2uCMzP32ktiGp Rmfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=P040Znj9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n23-20020aa7c457000000b0050bc6b7830fsi6000980edr.306.2023.06.12.14.15.51; Mon, 12 Jun 2023 14:16:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=P040Znj9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238769AbjFLVBq (ORCPT + 99 others); Mon, 12 Jun 2023 17:01:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238683AbjFLVBa (ORCPT ); Mon, 12 Jun 2023 17:01:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8B174217 for ; Mon, 12 Jun 2023 13:57:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 403636201C for ; Mon, 12 Jun 2023 20:56:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 385EFC4339B; Mon, 12 Jun 2023 20:56:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1686603403; bh=esReKupd2Q+U5e9D0ZPlm+IOx1guVso/zouKmwF3zzw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=P040Znj9FzEMglCMnBVGZir5sagKiKHndrVQsaGA97kyKvJBxSn8vGGtUGpZNa5Fw oMyscfCKZohaDzoOTiB/BljqzZTwJ11IwcAjr9k28wpbOtyTllOLvhc3h8yHifZBTi Cpv3uMykHs4jyagg3LWyk5o2kWwbfd/6TXfOQ7yI= Date: Mon, 12 Jun 2023 13:56:42 -0700 From: Andrew Morton To: David Hildenbrand Cc: Zhaoyang Huang , "zhaoyang.huang" , Matthew Wilcox , Suren Baghdasaryan , Minchan Kim , linux-mm@kvack.org, linux-kernel@vger.kernel.org, ke.wang@unisoc.com Subject: Re: [PATCHv5] mm: skip CMA pages when they are not available Message-Id: <20230612135642.24cef34a2925cdde257c1a50@linux-foundation.org> In-Reply-To: References: <1685501461-19290-1-git-send-email-zhaoyang.huang@unisoc.com> <20230609153519.ff01046ef0faff00a74bd5b0@linux-foundation.org> 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 X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 12 Jun 2023 12:01:20 +0200 David Hildenbrand wrote: > ... > > >> > >> If it's a performance improvement, it would be good to show that it is > >> an actual improvement worth the churn ... > > Sorry for the confusion. As for the OOM issue, the previous > > commit(https://lkml.kernel.org/r/1683782550-25799-1-git-send-email-zhaoyang.huang@unisoc.com) > > helps to decrease the fail rate from 12/20 to 2/20, which it turn to > > be 0 when applying this patch. > > Thanks! Can we make that clearer in the patch description? I'm > struggling a bit my self to find the right words. > > Something like > > "This change further decreases the chance for wrong OOMs in the presence > of a lot of CMA memory." > Great, I added that. > > In any case > > Acked-by: David Hildenbrand > And I'll move this patch into mm-stable.