Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3264858imm; Mon, 8 Oct 2018 00:36:24 -0700 (PDT) X-Google-Smtp-Source: ACcGV60E2ycGemGYWEJd6mrLLdLFV2Mrk7MreLNo9n3N2agWG5pa+nEIpQrXaZSNoZI42JBjtXYJ X-Received: by 2002:a63:545c:: with SMTP id e28-v6mr20073292pgm.316.1538984183965; Mon, 08 Oct 2018 00:36:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538984183; cv=none; d=google.com; s=arc-20160816; b=t47Ta1Rae5lTHGTwDcaydr99Z0MBGrg2wwHRCgHRQiP4cI4AB+NsdMaiMplNQ3XcuQ 7sSzn3SaBPcz9VarGaabOOv8qtIYw3oyPpfamepZs8yMz+FZe6sO80mJd6OONXaT5uDn Z3M8/UmJ1d/ZmTygwM0qcdvGRyiQ5vjHSvtODkHj/6iiaPRWmFs+By+m9T6LUU/kAHub nXlaclyw8xFnOXr0B+INdULFpUSZaipqHtVlqvjoiSBsJp5PmuD3qv5dcaH7QP6XipDC 5XQnv6olr5KwMlUd6MrN4duYA0hpJYfb+TCJAt0xEjP6OkdheNtA1tp7zHqRWBbLBNaY TrkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=KJBGN47wKhJjkXSBulUkLOKO2O74M9HZtGADZU0j1NM=; b=DFohSBLuoRPOP7wo+qVRx98K62gS4eLlY8t/2mKTJhwyIQjjzyRDuBQXeMDgx1jIHz UsxUTzRQ0zXfGLDY8wEI1bUIff5b6N2GeC215986d8Dz4FvY4dmog4Cl5g2wseNBfl3K YX4oYNsmGQAOuGA8fI5Ih5LtvuKjys8ddcCP2SYrjtTTYbBoNmUa1DAxWrvMIO81ZeqJ U0vu4tB5vgj6T3viVZtMPou+doDkcOAKw1bD8BlTvrCBDUbFWPyJd+5DtucN80QbuAuR WUDYqshu1udn0fLI7KUv8NkqTQcSjdurYST/HNc97h4unLO+QSf4eJcwxbs1zBpiFxiA zxAw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d9-v6si13811211pgm.109.2018.10.08.00.36.08; Mon, 08 Oct 2018 00:36:23 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726923AbeJHOop (ORCPT + 99 others); Mon, 8 Oct 2018 10:44:45 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:33075 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725925AbeJHOop (ORCPT ); Mon, 8 Oct 2018 10:44:45 -0400 Received: by mail-wm1-f66.google.com with SMTP id y140-v6so8086224wmd.0 for ; Mon, 08 Oct 2018 00:34:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=KJBGN47wKhJjkXSBulUkLOKO2O74M9HZtGADZU0j1NM=; b=FlWjT5MEWsf4cCnj1hlCGPuKu15FRDIb7aWrpG8AIKkZYHZaXwQKNd9AJ/1Ht/9pCc h3meha54gJbYnMNhLyuTl5nr+3/FpMtm6v1W1gByTH60fsXYVwca+hZmGWrjAkzzEB9n qiWH3y8dCNwZf5M6eusm+Jaz30setBy68eSrGlwSWrEGhb2PY40mlmQ3QzcHXJDxB8lg +EsEdjU61Lz0kzlHuJC5TwOGWADkUMuGRfC/TKFR9HOLH1752UlJjVCM1RPKwHKB8Vn0 kM93DF7QpsWeHutE48taNyzgGKLqRDObkNhNVmvvHoPNMegsyqQ+vEnS0QeFXXigLsu5 bIYg== X-Gm-Message-State: ABuFfogTWsk4EYCX31vQ522s5yep0TuYacHpMkfmS9XQ9Cd0Mxg9GXvC ob7nSZuaIzzJzAIwanVD9Ew= X-Received: by 2002:a1c:7816:: with SMTP id t22-v6mr14895024wmc.46.1538984063636; Mon, 08 Oct 2018 00:34:23 -0700 (PDT) Received: from techadventures.net (techadventures.net. [62.201.165.239]) by smtp.gmail.com with ESMTPSA id t143-v6sm7509836wmt.2.2018.10.08.00.34.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Oct 2018 00:34:22 -0700 (PDT) Received: by techadventures.net (Postfix, from userid 1000) id 14AC712587F; Mon, 8 Oct 2018 09:34:22 +0200 (CEST) Date: Mon, 8 Oct 2018 09:34:22 +0200 From: Oscar Salvador To: Arun KS Cc: kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, boris.ostrovsky@oracle.com, jgross@suse.com, akpm@linux-foundation.org, dan.j.williams@intel.com, mhocko@suse.com, vbabka@suse.cz, iamjoonsoo.kim@lge.com, gregkh@linuxfoundation.org, osalvador@suse.de, malat@debian.org, kirill.shutemov@linux.intel.com, jrdr.linux@gmail.com, yasu.isimatu@gmail.com, mgorman@techsingularity.net, aaron.lu@intel.com, devel@linuxdriverproject.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, xen-devel@lists.xenproject.org, vatsa@codeaurora.org, vinmenon@codeaurora.org, getarunks@gmail.com Subject: Re: [PATCH v5 1/2] memory_hotplug: Free pages as higher order Message-ID: <20181008073421.GA9703@techadventures.net> References: <1538727006-5727-1-git-send-email-arunks@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1538727006-5727-1-git-send-email-arunks@codeaurora.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 05, 2018 at 01:40:05PM +0530, Arun KS wrote: > When free pages are done with higher order, time spend on > coalescing pages by buddy allocator can be reduced. With > section size of 256MB, hot add latency of a single section > shows improvement from 50-60 ms to less than 1 ms, hence > improving the hot add latency by 60%. Modify external > providers of online callback to align with the change. > > Signed-off-by: Arun KS Looks good to me. Reviewed-by: Oscar Salvador Just one thing below: > @@ -1331,7 +1331,7 @@ void __init __free_pages_bootmem(struct page *page, unsigned long pfn, > { > if (early_page_uninitialised(pfn)) > return; > - return __free_pages_boot_core(page, order); > + return __free_pages_core(page, order); __free_pages_core is void, so I guess we do not need that return there. Probably the code generated is the same though. -- Oscar Salvador SUSE L3