Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3073741rdb; Wed, 15 Nov 2023 22:00:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IGj6X7dZCnCZ+zumMgizrJG5QF0uQMLOIwm5iAC47fp1i3jtixRNIaqnp2yF85KRm/olRhT X-Received: by 2002:a9d:624a:0:b0:6bd:1059:8212 with SMTP id i10-20020a9d624a000000b006bd10598212mr7195268otk.26.1700114450570; Wed, 15 Nov 2023 22:00:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700114450; cv=none; d=google.com; s=arc-20160816; b=lgzUhoZytwe5VDhk/QK/4Pg/VfZRYbttpJ0nnWcaP7XLcAdgMSLteKOCIgHtgPtp+e qvCWFkMEmlpw823Yle5CvzVoO9dYs/ifBdr+RL/DrQDwMSK2eao6+DJTHLv4sE+Uc8Z/ 1fzle2I9JhBrXGILyiHGQbAjT8r3vyR99E2zzSP6ZpLufY7mnkXQ21wF2W+azgRE6nOY VsYg3o50nq8wewnq4IwueWuUrM0QlxHytEV3bBVicqhSRu3p6OVG3pBpkd5EQLRbV2k4 P1x2YZwyvNlhAvtcxGNjwnWJxj4+3nbuFhLZYar6pub3aVvWUYGZHOM4TWNE4rZs43U7 m9dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=4RUl4sy6K/1DgzRhv01u8hafszHwGqxmAcX/EgXwkro=; fh=XzNtD0CTD/4ixL38bowwGXpiW0KYNtElb8o3DqQ6IVM=; b=F0/I3lbXsIccLysDVmqz/keavuuEWFvNGGPERDnAHNG4UjNzJjhn+/KaHQbQRwNcqC XC+TqKNUwRdFnJo21ccm1BESK23qwGMzZQHeOwunnIDFZHQru+1gsVva3Ga5lseXTu1C ChkZJELWyEQAuo6KEs9rV83QaKVYQWQOCqrHdneIBqMmhW0gXBbWnYeqP0rg047nTJKa ei9hjitZzgDYk3zLtDaddyhqSP/bnC2JZeIlMZnxsS0r9+4q96sSQ52E+b6OuXSj1t+6 sII2EChZHPXudMExFIW5e/edBGBdCC9X8E62D0tE9zAtAjdzLQ0LBJKV61kEJJyL1A55 4MvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=CJZdVpVl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id x10-20020a63170a000000b005bdbe64cc26si11258490pgl.535.2023.11.15.22.00.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 22:00:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=CJZdVpVl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 27798801D8D3; Wed, 15 Nov 2023 22:00:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230262AbjKPGAj (ORCPT + 99 others); Thu, 16 Nov 2023 01:00:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232964AbjKPGAf (ORCPT ); Thu, 16 Nov 2023 01:00:35 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74DBB1A8 for ; Wed, 15 Nov 2023 22:00:32 -0800 (PST) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AG3m9u9031688; Thu, 16 Nov 2023 06:00:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=4RUl4sy6K/1DgzRhv01u8hafszHwGqxmAcX/EgXwkro=; b=CJZdVpVlx2zod3bnYkTlNWJqsHSHYfY5xeD96BSPjt4mHw6ogO/7gLYsqkq0IGfVqewS cKNQmhzVYxddoMLHSA0QNPklMyYmMLB29SocVuB7zNcdGOoeET1ebjY32Ch0nbnJCcQ1 KvOdoHVPb/v5cKRZ+muP31C6lzu3Q3w3rXLRVzeQatoEQpE3tc5Y7nFqXyhtwD0r/xe4 jgSc132yFUyuqNmIH1Xec5X1LeQljG8uQRo5y0uJXN/z66vy0iC5k0tftSrr8pU7vp/Q gF2Vcag2pXjWDcvF32gW/QOdxivfVT+UGPFeP972SOUKi9IyYTP1MID2BG4B8D5Hq9tl Vw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ud6ecgrpg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 Nov 2023 06:00:20 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AG60JON009028 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 Nov 2023 06:00:19 GMT Received: from [10.216.59.111] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Wed, 15 Nov 2023 22:00:07 -0800 Message-ID: Date: Thu, 16 Nov 2023 11:30:04 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH V3 3/3] mm: page_alloc: drain pcp lists before oom kill To: Michal Hocko CC: , , , , , , , References: <5c7f25f9-f86b-8e15-8603-e212b9911cac@quicinc.com> <342a8854-eef5-f68a-15e5-275de70e3f01@quicinc.com> Content-Language: en-US From: Charan Teja Kalla In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: FbcWDlCEUs_vcDK-G8m6qmzP3zEpVgNb X-Proofpoint-ORIG-GUID: FbcWDlCEUs_vcDK-G8m6qmzP3zEpVgNb X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-16_03,2023-11-15_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 adultscore=0 lowpriorityscore=0 malwarescore=0 mlxscore=0 mlxlogscore=847 bulkscore=0 suspectscore=0 phishscore=0 priorityscore=1501 spamscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311160044 X-Spam-Status: No, score=-2.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 15 Nov 2023 22:00:48 -0800 (PST) Thanks Michal. On 11/15/2023 7:39 PM, Michal Hocko wrote: >> Also If you have any comments on [PATCH V2 2/3] mm: page_alloc: correct >> high atomic reserve calculations will help me. > I do not have a strong opinion on that one to be honest. I am not even > sure that reserving a full page block (4MB) on small systems as > presented is really a good use of memory. May be other way to look at that patch is comment is really not being reflected in the code. It says, " Limit the number reserved to 1 pageblock or roughly 1% of a zone.", but the current code is making it 2 pageblocks. So, for 4M block size, it is > 1%. A second patch, that I will post, like not reserving the high atomic page blocks on small systems -- But how to define the meaning of small systems is not sure. Instead will let the system administrators chose this through either: a) command line param, high_atomic_reserves=off, on by default -- Another knob, so admins may really not like this? b) CONFIG_HIGH_ATOMIC_RESERVES, which if not defined, will not reserve. Please lmk If you have any more suggestions here? Also, I am thinking to request Andrew to pick [PATCH V2 1/3] patch and take these discussions separately in a separate thread. Thanks, Charan