Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756884AbcJNB17 (ORCPT ); Thu, 13 Oct 2016 21:27:59 -0400 Received: from LGEAMRELO12.lge.com ([156.147.23.52]:36176 "EHLO lgeamrelo12.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753959AbcJNB1x (ORCPT ); Thu, 13 Oct 2016 21:27:53 -0400 X-Original-SENDERIP: 156.147.1.151 X-Original-MAILFROM: iamjoonsoo.kim@lge.com X-Original-SENDERIP: 10.177.222.138 X-Original-MAILFROM: iamjoonsoo.kim@lge.com Date: Fri, 14 Oct 2016 10:28:17 +0900 From: Joonsoo Kim To: Vlastimil Babka Cc: Andrew Morton , Johannes Weiner , Mel Gorman , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 3/5] mm/page_alloc: stop instantly reusing freed page Message-ID: <20161014012817.GC4993@js1304-P5Q-DELUXE> References: <1476346102-26928-1-git-send-email-iamjoonsoo.kim@lge.com> <1476346102-26928-4-git-send-email-iamjoonsoo.kim@lge.com> <44132140-c678-73a2-b747-f04ad0f3d7df@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44132140-c678-73a2-b747-f04ad0f3d7df@suse.cz> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1477 Lines: 29 On Thu, Oct 13, 2016 at 12:59:14PM +0200, Vlastimil Babka wrote: > On 10/13/2016 10:08 AM, js1304@gmail.com wrote: > >From: Joonsoo Kim > > > >Allocation/free pattern is usually sequantial. If they are freed to > >the buddy list, they can be coalesced. However, we first keep these freed > >pages at the pcp list and try to reuse them until threshold is reached > >so we don't have enough chance to get a high order freepage. This reusing > >would provide us some performance advantages since we don't need to > >get the zone lock and we don't pay the cost to check buddy merging. > >But, less fragmentation and more high order freepage would compensate > >this overhead in other ways. First, we would trigger less direct > >compaction which has high overhead. And, there are usecases that uses > >high order page to boost their performance. > > > >Instantly resuing freed page seems to provide us computational benefit > >but the other affects more precious things like as I/O performance and > >memory consumption so I think that it's a good idea to weight > >later advantage more. > > Again, there's also cache hotness to consider. And whether the > sequential pattern is still real on a system with higher uptime. > Should be possible to evaluate with tracepoints? I answered this in previous e-mail. Anyway, we should evaluate cache-effect. tracepoint or perf's cache event would show some evidence. I will do it soon and report again. Thanks.