Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp396811pxj; Fri, 28 May 2021 06:33:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXKrYipkgLcWq7ghQAMUBImvy60fg/wEB2R+JEhYS9EDfddA3kX3TNv17bJi+qikP096Ts X-Received: by 2002:a6b:dc06:: with SMTP id s6mr7363179ioc.130.1622208792386; Fri, 28 May 2021 06:33:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622208792; cv=none; d=google.com; s=arc-20160816; b=aQpCI+NAxMYsAyUFGuqWVDYBRAoilkbiuAmDfun/KZi1xMJV5fObcnuZy2SMur5XZ3 6ezPQDIMnl94ymBz2zXBRdWeAz1/KYe9M333p4vLbF/YlpdfrIXQX1qYNUvnZmCcLjHO dv7CfIwPWp6knzTm3MdQNi0vD7IyXY+yI0KzRL47NnR8Q3j99LtpVc5uWOXdDKg31luz OiIWZMdnidOlCkBa+ShTrtUR4u1gGrosLsaHk8XJGYo+6uK/c0jtF1zF3Y32qWXH7VEB 48xXMV9RoF+A7FfnjHMU8/I9vwuRkeLmtZ3GN2eL6i3C7mSGJLO/PuEANorJ/BX5tzEE xhdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature; bh=S+LF2PVwb9H16A2qGrmXbe0U4IHpiocrNiUK5mO4Lj0=; b=isS6VitBUqJxqI8p90/Ht/Lr8PKU8rCC5VIHZXaN0pT/Dlb60TACbg8QQqnw2Vg6JO OTCZOsxFDsqdkFoAkvrcZbRMPbjXUHcHMteqIZ6VqwGOjfhATt+yE6xA63eVnHfp96LD LlG5a9QzeMIWrk4/cMijP7DuZPQb+kRQRCucgXKLfL8EVg30hmyp5F7+X1b9g56ph4Bz 4bdzS06y1khwBTWJe42qGjAajyrNgZ2qIxh+NmWu/SG2DCXCX22UolhEeikxfzKEzTAz JYzcafRDx7nqzvBQ0rQDuyXeVqq8eaj4A/e+3LoIEMf3XXTcLicLjSAk71SgJql1IfeT 0p1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=IG0o2uF1; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a11si5446397jat.23.2021.05.28.06.32.52; Fri, 28 May 2021 06:33:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=IG0o2uF1; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235309AbhE1LKQ (ORCPT + 99 others); Fri, 28 May 2021 07:10:16 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:40776 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234367AbhE1LKP (ORCPT ); Fri, 28 May 2021 07:10:15 -0400 Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 4811B1FD2F; Fri, 28 May 2021 11:08:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1622200120; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=S+LF2PVwb9H16A2qGrmXbe0U4IHpiocrNiUK5mO4Lj0=; b=IG0o2uF1HpWlHTL+sOO1My7E4FRBxsbU6q0T7So4RWZTdvD0pvcMB2JMnwF6MlzLVQ/L/c Lsg3GwEyjIqV4kIyienHZ9YxJG/mevLBOI4hGliuncZDL9dqIYah/LfIX+2H8AmWwJjIuN kjbmkhU241otF0hpt037du1N8zMpz5U= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1622200120; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=S+LF2PVwb9H16A2qGrmXbe0U4IHpiocrNiUK5mO4Lj0=; b=GLqI1FaG6tIxtN65cGlnSTIFKdjiZYcj3Vw32L3yeXF+TnAxknWmsvjrTZaS8v/6UC364t 85jmhX/Ba4/u3SAg== Received: from director2.suse.de (director2.suse-dmz.suse.de [192.168.254.72]) by imap.suse.de (Postfix) with ESMTPSA id 3376711A98; Fri, 28 May 2021 11:08:40 +0000 (UTC) Subject: Re: [PATCH 3/6] mm/page_alloc: Adjust pcp->high after CPU hotplug events To: Mel Gorman , Andrew Morton Cc: Hillf Danton , Dave Hansen , Michal Hocko , LKML , Linux-MM References: <20210525080119.5455-1-mgorman@techsingularity.net> <20210525080119.5455-4-mgorman@techsingularity.net> From: Vlastimil Babka Message-ID: <7b457a8b-877b-1644-9709-68a67cd27b60@suse.cz> Date: Fri, 28 May 2021 13:08:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: <20210525080119.5455-4-mgorman@techsingularity.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/25/21 10:01 AM, Mel Gorman wrote: > The PCP high watermark is based on the number of online CPUs so the > watermarks must be adjusted during CPU hotplug. At the time of > hot-remove, the number of online CPUs is already adjusted but during > hot-add, a delta needs to be applied to update PCP to the correct > value. After this patch is applied, the high watermarks are adjusted > correctly. > > # grep high: /proc/zoneinfo | tail -1 > high: 649 > # echo 0 > /sys/devices/system/cpu/cpu4/online > # grep high: /proc/zoneinfo | tail -1 > high: 664 > # echo 1 > /sys/devices/system/cpu/cpu4/online > # grep high: /proc/zoneinfo | tail -1 > high: 649 > > Signed-off-by: Mel Gorman Acked-by: Vlastimil Babka