Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932752AbcLGTsH (ORCPT ); Wed, 7 Dec 2016 14:48:07 -0500 Received: from outbound-smtp05.blacknight.com ([81.17.249.38]:33527 "EHLO outbound-smtp05.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752524AbcLGTsG (ORCPT ); Wed, 7 Dec 2016 14:48:06 -0500 Date: Wed, 7 Dec 2016 19:48:01 +0000 From: Mel Gorman To: Eric Dumazet Cc: Andrew Morton , Christoph Lameter , Michal Hocko , Vlastimil Babka , Johannes Weiner , Jesper Dangaard Brouer , Joonsoo Kim , Linux-MM , Linux-Kernel Subject: Re: [PATCH] mm: page_alloc: High-order per-cpu page allocator v7 Message-ID: <20161207194801.krhonj7yggbedpba@techsingularity.net> References: <20161207101228.8128-1-mgorman@techsingularity.net> <1481137249.4930.59.camel@edumazet-glaptop3.roam.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1481137249.4930.59.camel@edumazet-glaptop3.roam.corp.google.com> User-Agent: Mutt/1.6.2 (2016-07-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1688 Lines: 50 On Wed, Dec 07, 2016 at 11:00:49AM -0800, Eric Dumazet wrote: > On Wed, 2016-12-07 at 10:12 +0000, Mel Gorman wrote: > > > This is the result from netperf running UDP_STREAM on localhost. It was > > selected on the basis that it is slab-intensive and has been the subject > > of previous SLAB vs SLUB comparisons with the caveat that this is not > > testing between two physical hosts. > > > > Interesting results. > > netperf UDP_STREAM is not really slab intensive : (for large sendsizes > like 16KB) > Interesting because it didn't match what I previous measured but then again, when I established that netperf on localhost was slab intensive, it was also an older kernel. Can you tell me if SLAB or SLUB was enabled in your test kernel? Either that or the baseline I used has since been changed from what you are testing and we're not hitting the same paths. > Bulk of the storage should be allocated from alloc_skb_with_frags(), > ie using pages. > > And I am not sure we enabled high order pages in this path ? > > ip_make_skb() > __ip_append_data() > sock_alloc_send_skb() > sock_alloc_send_pskb (..., max_page_order=0) > alloc_skb_with_frags ( max_page_order=0) > It doesn't look like it. While it's not directly related to this patch, can you give the full stack? I'm particularly curious to see if these allocations are in an IRQ path or not. > We probably could enable high-order pages there, if we believe this is > okay. > Ultimately, not a great idea unless you want variable performance depending on whether high-order pages are available or not. The motivation for the patch was primarily for SLUB-intensive workloads. -- Mel Gorman SUSE Labs