Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp50599imm; Fri, 10 Aug 2018 07:28:03 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw0s1XKZ2VqKKeaaQwi89ROWn2F6bP0/gL5cbe9EtDGMJB8NDYCd3Ru5HqQE7ko8ykzHpVM X-Received: by 2002:a62:4255:: with SMTP id p82-v6mr7422511pfa.238.1533911283457; Fri, 10 Aug 2018 07:28:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533911283; cv=none; d=google.com; s=arc-20160816; b=MsWhsaGnNBrf+zpwVz3U25tNNVTRf7F264G3BAIGJcHhj4x9dD2uguBj4VFrQkcqUu a4LQAHhOQlFmRYKM1Zm2+DspThwvo6uKc0nv9WhCTvzKA/72HV9MduJ4TwTY2ZevXn4l jk6ZN2btHW8wfW38jRdwXjYnuHOzxxr4nZRCdcuIxz+3+c2S2/6WN4MT5KyFKoS5GJDs YYUm1EoQ7TjbcuzfVReHAL1tm++hC1sxHxaHmr7ew7KfONIK6oGs7kEJ/pGLxwUjWKvD uNFogaPQTQUindVGUYHyb71ZFJqKgL191a93qvzVHo7nIHK59xHIJANPFAME6T7+XQwP it8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=fnaS4uVFqTvqIZb70ZaW5pdrA5hrWuwgqkgACiYhgA4=; b=pyBLV8VO8IeSHqvOaf8k7kZ/XEhAxtve6djCYmN+cy09y9DpWpb8qn9Mi2MRXtcxxP rsORSZgqzaimQRvCV9tY20j3guo39Kh7uA0SDCTLDwJIOZVVGMvCb2Lx2azcHXBkwquH KUxS+emLheiccNk15EADMC5vKFlz1GYaS3cdxma9UwXDlQTkn6sDAhX22PgiSD5bFzRR Nn94LQZ3sZaQYWRhstYCax0n/NYbOOS3f6jthuIF6dMXD4u7E6iehaIib6bgdJ+DVxaB LXNxk6uE+hLR/aQykY04dZojimhaH++r7a7LlxAy4lZcm8Ezp9K2cdTAlDvufTkrPQiW t3GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=KViOBjum; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h18-v6si9410378pgd.238.2018.08.10.07.27.48; Fri, 10 Aug 2018 07:28:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=KViOBjum; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728288AbeHJQ4A (ORCPT + 99 others); Fri, 10 Aug 2018 12:56:00 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:33191 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727432AbeHJQ4A (ORCPT ); Fri, 10 Aug 2018 12:56:00 -0400 Received: by mail-oi0-f68.google.com with SMTP id 8-v6so16152806oip.0 for ; Fri, 10 Aug 2018 07:25:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=fnaS4uVFqTvqIZb70ZaW5pdrA5hrWuwgqkgACiYhgA4=; b=KViOBjumd8deOdoV/+uVymLq2OZeNooaSy/ys4mRowcQOHMFVPqSnq/ZxcxWBa/x/K NuuRaGRGXTG3MQmCTBDigbOf6n8XZnVxUuqYDgFwgmyNC0jh+glUkzUnMMpXn56LALrf 7xPYc6uAyzCUTTkfdW9o4/YTBcpFOjhZZMhVACB/ow3IpfMqW8GVYz1pYDCNmaED4eVl QSGSIdcBbZcHahlC6F4bs6HWVnuSxL5A+L0CnoKwJR5fjl6BQxywWbaOXwaJ/2EFnPKO fvGNedmp4Veu72hMQA/9SnLjRVGnIuTt9N/zJA612Topepy+vN+i7oqdGSTI83Fgi7Qq NWJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=fnaS4uVFqTvqIZb70ZaW5pdrA5hrWuwgqkgACiYhgA4=; b=iNUYHfcsmW6LCjcl8H5mdxuVcKQjxBHYP/wWCvgwxS7IFKMcjC5WK4l5QsQqcly9Jz F/Gc5DpzKY4VgejqZkV2BCiF/QQBfkkuOsI8aTffrg0NTySf/2iQPVH7tqKHLd5II1jN TV8A26/dJAmwVhtg45uUsyIQau2xp3OPUX5Y/bK0IsBG/sqgOWXPA83ZyiNAaD6yHAlV e+tG1fJGxir/P5tI8ROvspRSd5ZkRDS3gWP7VvTsW8vc1wtvrdmbS+vzFPcVEv56U1sA USn4T+UyCqis2bKtRV3WsXTI3VVhexb3TATYgmR1SEQOEw0TfeNnAVksDTTb6WkNXsU8 aVew== X-Gm-Message-State: AOUpUlHnwp0we9fRVhvKwiyX90vJHIeCY6ZNDtYs/wNO1tgpl3QsUHYW JYjdDb/4WWpNBwyjky/YwaSLX6jOFHKPT4cHKT8= X-Received: by 2002:a54:4081:: with SMTP id i1-v6mr7211327oii.73.1533911140323; Fri, 10 Aug 2018 07:25:40 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4a:1785:0:0:0:0:0 with HTTP; Fri, 10 Aug 2018 07:25:39 -0700 (PDT) In-Reply-To: <20180810130052.GC1644@dhcp22.suse.cz> References: <20180809025409.31552-1-rashmica.g@gmail.com> <20180809181224.0b7417e51215565dbda9f665@linux-foundation.org> <20180810130052.GC1644@dhcp22.suse.cz> From: Rashmica Gupta Date: Sat, 11 Aug 2018 00:25:39 +1000 X-Google-Sender-Auth: zOj9B6xeL2IOkIPWYET0HsCt8UI Message-ID: Subject: Re: [PATCH v3] resource: Merge resources on a node when hot-adding memory To: Michal Hocko Cc: Andrew Morton , toshi.kani@hpe.com, tglx@linutronix.de, bp@suse.de, brijesh.singh@amd.com, thomas.lendacky@amd.com, jglisse@redhat.com, gregkh@linuxfoundation.org, baiyaowei@cmss.chinamobile.com, dan.j.williams@intel.com, iamjoonsoo.kim@lge.com, Vlastimil Babka , malat@debian.org, Bjorn Helgaas , Oscar Salvador , yasu.isimatu@gmail.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Mike Rapoport Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 10, 2018 at 11:00 PM, Michal Hocko wrote: > On Fri 10-08-18 16:55:40, Rashmica Gupta wrote: > [...] >> Most memory hotplug/hotremove seems to be block or section based, and >> always adds and removes memory at the same place. > > Yes and that is hard wired to the memory hotplug code. It is not easy to > make it work outside of section units restriction. So whatever your > memtrace is doing and if it relies on subsection hotplug it cannot > possibly work with the current code. > > I didn't get to review your patch but if it is only needed for an > unmerged code I would rather incline to not merge it unless it is a > clear win to the resource subsystem. A report from Oscar shows that this > is not the case though. > Yup, makes sense. I'll work on it and see if I can not break things. > -- > Michal Hocko > SUSE Labs