Received: by 10.223.176.5 with SMTP id f5csp3019529wra; Mon, 5 Feb 2018 14:18:44 -0800 (PST) X-Google-Smtp-Source: AH8x225PpD5izz+2iNNnt9Dg2wObcssnl1KtytysfeCO9jy+J9OBnEObfmonSq6fxD9ZTOWTCxy+ X-Received: by 10.98.218.18 with SMTP id c18mr280786pfh.214.1517869124669; Mon, 05 Feb 2018 14:18:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517869124; cv=none; d=google.com; s=arc-20160816; b=InGHOACB1v9atjodUm3Jx1Cws2lxGDYzjtOQvuZPE/tRqEC3hWQ9T1oR1zQ4afsjYf 8+Vc0yKT9XCrLRWLb+k3qpkl8ATBSkjJPjIKD0BHOUzPXk1kuJokuyWgP9oqaswwZ9IV GZG9mUMlMj5DMCDWpGmF9qYmE6HKew75r0sHPk/2Q+3aY8KDSYYbapqvTEBZ9LUqNWie 57aqD0BhS90RwmJvtF9dWuBeKPKadd5aIZ9KwxjAKPWB+50wMEl8cs2wTZQYhmcTaHJM UrtKbo50l1zHSN63JUNpeoEygCZqWpWJyuD+CtBbi7ChO7W97PSSQ9B9sudaJRpvpnnX Arkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:cc:references:to:subject:arc-authentication-results; bh=mSg91w7l+ah6eiQX3NgHxoUhDrYvwDK4OqcJZMVHp6E=; b=SXhj0nJ3ynjEiV98DmQgSFifevcdt/sOV05bxhOPyBfADCO/uPFgiTT1hwotPOJiCG gMwzzUz737rgdwzS46cC7uUQv41bzjOvUC9tMHE7werZuMmzAMBkrTQeVQXYh6+TJ3Ud 5H0ImotWTT1BVO40zL3QaNw0cqecgeTUIWjcKv+BC0a2Wf5/E70ycc46zFwyb+x4n6ri 1nQflQdthoEcol/l8wLpDOW+jzo4YOO+qtqMc8314jTzn5rU2QZ8iLS161yaP1Ik1A/o hn6ReeK/KqdOMYyh1rrQ9u9f9oRdvl3rOh0pCdULuNYrFpWJN5ywbbbqks5DVfPDdpat MEqA== 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 r12si5959069pgp.704.2018.02.05.14.18.30; Mon, 05 Feb 2018 14:18:44 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752019AbeBEWRY (ORCPT + 99 others); Mon, 5 Feb 2018 17:17:24 -0500 Received: from mga04.intel.com ([192.55.52.120]:42658 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751981AbeBEWRU (ORCPT ); Mon, 5 Feb 2018 17:17:20 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Feb 2018 14:17:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,466,1511856000"; d="scan'208";a="171899784" Received: from ray.jf.intel.com (HELO [10.7.201.16]) ([10.7.201.16]) by orsmga004.jf.intel.com with ESMTP; 05 Feb 2018 14:17:19 -0800 Subject: Re: [RFC PATCH 1/2] __free_one_page: skip merge for order-0 page unless compaction is in progress To: Aaron Lu , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20180124023050.20097-1-aaron.lu@intel.com> <20180205053013.GB16980@intel.com> <20180205053139.GC16980@intel.com> Cc: Andrew Morton , Huang Ying , Kemi Wang , Tim Chen , Andi Kleen , Michal Hocko , Vlastimil Babka , Mel Gorman , Daniel Jordan From: Dave Hansen Message-ID: <57fd532f-8fb7-33c4-914a-fb816db47ea9@intel.com> Date: Mon, 5 Feb 2018 14:17:18 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180205053139.GC16980@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/04/2018 09:31 PM, Aaron Lu wrote: > Running will-it-scale/page_fault1 process mode workload on a 2 sockets > Intel Skylake server showed severe lock contention of zone->lock, as > high as about 80%(43% on allocation path and 38% on free path) CPU > cycles are burnt spinning. With perf, the most time consuming part inside > that lock on free path is cache missing on page structures, mostly on > the to-be-freed page's buddy due to merging. > > One way to avoid this overhead is not do any merging at all for order-0 > pages and leave the need for high order pages to compaction. I think the RFC here is: we *know* this hurts high-order allocations and Aaron demonstrated that it does make the latency worse. But, unexpectedly, it didn't totally crater them. So, is the harm to large allocations worth the performance benefit afforded to smaller ones by this patch? How would we make a decision on something like that? If nothing else, this would make a nice companion topic to Daniel Jordan's "lru_lock scalability" proposal for LSF/MM.