Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2295132imu; Tue, 6 Nov 2018 12:09:13 -0800 (PST) X-Google-Smtp-Source: AJdET5e8zEaR3lfsvecEnEmGVSQH8FgyH3/0AKLDYCPEkwgRhjPOLb57AQfZs/qr1edH7wDIzTR0 X-Received: by 2002:a65:530c:: with SMTP id m12mr1873148pgq.224.1541534953064; Tue, 06 Nov 2018 12:09:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541534953; cv=none; d=google.com; s=arc-20160816; b=j+ZExnZSu2qxM1jesLECDVHtNFBpgAqvVCxSLOyul7a0/6bbg0RwtcRa6sbRMdNZN9 4OgqvUxPFUapjLatcL+EnUKsv4xjiW08nMsFxQj7FUcEp2755DbNGkRbsrvls+pzfSRQ DAPiL4iS4+7dKl//eGPFdOp0kKYH1SIdw1TpNkPmRNqVPceGss3qVVIEoGdpHak3uBGx AnKkOf0A8Ka0AjJqG5MRfBlSRdrPzZxKYhmuMCV5830J8PSZnU7SXWXrkeLrYHbnUeFU y8FiiAfKjyv83NI6Pu6HMriJPmix+RWGX3kET7aMyahEcrdYvD0R1cG8vnLwH860dPOr 9UEQ== 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=h7aSL8NTs/h1lMhIgZ9LVjKvTu4AFF2c2RkjBHy7GNY=; b=tJT/VnDbBilLPpTyHvrAtMmSaDzeGTThMLlIgm8PB1vx2lcFEkPt/8cE2lWGm+G125 Ytz8hFTDCi9/H2AOIrSzL9Ro8pzI4sjWeMvCMPjr3QBwvYP44iGq+MZhlFbwo1fxfpZU RRo1odTomNO7zdKrUTMed5V37ZBrecg1vdTjx88fxey2HqajAZOjYs0HrRyqQEesAmi6 LnsjDu4lxCda0/qi85r8NOaGrdzcPAb62IomHE+2RzatNUOkYDgh/trYrsiXyi1fGEis 7dqBYQRaL2COQ6mucZ/ZR+MapHdmgOfVjtF5/OhYd+eYYjJZi+HIn0UbmvBB5gZr6AeE kelw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 32-v6si16049083plc.370.2018.11.06.12.08.57; Tue, 06 Nov 2018 12:09:13 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727397AbeKGFfU (ORCPT + 99 others); Wed, 7 Nov 2018 00:35:20 -0500 Received: from mx2.suse.de ([195.135.220.15]:46258 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727268AbeKGFfU (ORCPT ); Wed, 7 Nov 2018 00:35:20 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id D5DA5B05C; Tue, 6 Nov 2018 20:08:24 +0000 (UTC) Date: Tue, 6 Nov 2018 21:08:23 +0100 From: Michal Hocko To: Arun KS Cc: arunks.linux@gmail.com, akpm@linux-foundation.org, vbabka@suse.cz, osalvador@suse.de, linux-kernel@vger.kernel.org, linux-mm@kvack.org, getarunks@gmail.com Subject: Re: [PATCH v6 1/2] memory_hotplug: Free pages as higher order Message-ID: <20181106200823.GT27423@dhcp22.suse.cz> References: <1541484194-1493-1-git-send-email-arunks@codeaurora.org> <20181106140638.GN27423@dhcp22.suse.cz> <542cd3516b54d88d1bffede02c6045b8@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <542cd3516b54d88d1bffede02c6045b8@codeaurora.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 06-11-18 21:01:29, Arun KS wrote: > On 2018-11-06 19:36, Michal Hocko wrote: > > On Tue 06-11-18 11:33:13, 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. > > > > > > This patch modifies totalram_pages, zone->managed_pages and > > > totalhigh_pages outside managed_page_count_lock. A follow up > > > series will be send to convert these variable to atomic to > > > avoid readers potentially seeing a store tear. > > > > Is there any reason to rush this through rather than wait for counters > > conversion first? > > Sure Michal. > > Conversion patch, https://patchwork.kernel.org/cover/10657217/ is currently > incremental to this patch. The ordering should be other way around. Because as things stand with this patch first it is possible to introduce a subtle race prone updates. As I've said I am skeptical the race would matter, really, but there is no real reason to risk for that. Especially when you have the other (first) half ready. -- Michal Hocko SUSE Labs