Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7942065pxb; Fri, 19 Feb 2021 03:29:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2hz9kQMaWZ1RKOdrkqiv4Bq9YMHeTcR9rgaQOnL/TPydGckmIGgK9dSPR8O0eCVzCNGa8 X-Received: by 2002:a17:906:2a14:: with SMTP id j20mr1362023eje.88.1613734171395; Fri, 19 Feb 2021 03:29:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613734171; cv=none; d=google.com; s=arc-20160816; b=DaR1Ngxl9n2C0ObHsqeS02Z3qw8Yl0gLlenohSCikBFXiezhXxL+FY+aa+TKtv4GfJ fxIqMJQdJEqDbSgLf1o5fcoDo93Y/P43hU30FK7b8ktYAGlFCmiEj7aGyo7X2Be41tuC AN911wGBwaT/x3TTqFi4J6RlCt++DIY16BUeYCB0Hg7QWHdWeX/yWfuRdS4RO9hHCZkR vnFQjTQUUKQpuoPtWuKovLC1e2sROjcz5kE11WfZJdwfgoCQ6gGNF6DBYPQ/hR+vE4X0 CoBDzD8oyTL781eQPnr42+Im7UE+zDkKzFzvJRg+ppjg/2lJA4uza7vovDwCS0TkVPi5 vnkw== 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; bh=bJLFh87vFxSN+S3GkKtomdLBTho6z7/HIz2LCjuNSak=; b=IQ4ONvbd+BF9hy9HzhFU2pRU11oakKD682NiO6SMyVnQGNoWGZAhqAkAuOQ4t/7W0B JHVxwUNfGjvNUlJvSVYdWgB07urZ05B+xEwHvH6XuFvd+UKkbKcqqRx9wDpDl5bjBWFL PFh7Zzr+xAMUp76XrWA0HVDsOBd4JTKlv1jXJ4oFbArQ+mL+6yo0ppS51EIHn6AeGiXP oT5zIL/HST07MVF38o/LQJRxKIlJLbw7/gvfV78/DcgdwoKSaJKBLUY+pmhexrhzT2Mg N5/JhkjzZmkz0OevCPycoiC63EWGoc1rxv0+gQlbQtbvhqbM6Jj9cxTZ/iviVk76dddp AK5g== ARC-Authentication-Results: i=1; mx.google.com; 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 v26si5630421ejy.97.2021.02.19.03.29.07; Fri, 19 Feb 2021 03:29:31 -0800 (PST) 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; 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 S230382AbhBSL21 (ORCPT + 99 others); Fri, 19 Feb 2021 06:28:27 -0500 Received: from mx2.suse.de ([195.135.220.15]:44124 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229681AbhBSL1X (ORCPT ); Fri, 19 Feb 2021 06:27:23 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 451EEACCF; Fri, 19 Feb 2021 11:26:42 +0000 (UTC) Subject: Re: [PATCH RFC 0/1] mm: balancing the node zones occupancy To: Charan Teja Reddy , akpm@linux-foundation.org, rientjes@google.com, mhocko@suse.com, david@redhat.com, mgorman@techsingularity.net, linux-mm@kvack.org Cc: vinmenon@codeaurora.org, sudaraja@codeaurora.org, linux-kernel@vger.kernel.org, Dave Hansen References: From: Vlastimil Babka Message-ID: <1c445421-ddeb-8768-03d0-81537b0d1875@suse.cz> Date: Fri, 19 Feb 2021 12:26:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: 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 2/18/21 6:24 PM, Charan Teja Reddy wrote: > I would like to start discussion about balancing the occupancy of > memory zones in a node in the system whose imabalance may be caused by > migration of pages to other zones during hotremove and then hotadding > same memory. In this case there is a lot of free memory in newly hotadd > memory which can be filled up by the previous migrated pages(as part of > offline/hotremove) thus may free up some pressure in other zones of the > node. Can you share the use case for doing this? If it's to replace a failed RAM, then it's probably extremely rare, right. > We have the proof-of-concept code tried on the Snapdragon systems with > the system configuration, single memory node of just 2 zones, 6GB normal > zone and 2GB movable zone. And this Movable zone is such that hot-added > once and there after offline/online based on the need. Hm, snapdragon... so is this some kind of power saving thing? Anyway, shouln't auto NUMA balancing help here, and especially "Migrate Pages in lieu of discard" (CC'd Dave) as a generic mechanism, so we wouldn't need to have hotplug-specific actions?