From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753925Ab1HBCnr (ORCPT ); Mon, 1 Aug 2011 22:43:47 -0400 Received: from smtp-out.google.com ([216.239.44.51]:32053 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753206Ab1HBCnl (ORCPT ); Mon, 1 Aug 2011 22:43:41 -0400 DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=dkim-signature:date:from:x-x-sender:to:cc:subject: in-reply-to:message-id:references:user-agent:mime-version:content-type:x-system-of-record; b=SJcZvnrAIKAGiTYgVlvYYXo0Qts2JnFeaqXzK2T43d38C+H8edri1xDFtkWQIhjuA dMWdqIWoWUSSuFYjSg4jg== Date: Mon, 1 Aug 2011 19:43:35 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Pekka Enberg cc: Christoph Lameter , Linus Torvalds , Andrew Morton , hughd@google.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [GIT PULL] Lockless SLUB slowpaths for v3.1-rc1 In-Reply-To: Message-ID: References: <1312145146.24862.97.camel@jaguar> <1312175306.24862.103.camel@jaguar> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="397155492-1617763585-1312253016=:15596" X-System-Of-Record: true Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --397155492-1617763585-1312253016=:15596 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT On Mon, 1 Aug 2011, Pekka Enberg wrote: > Looking at the data (in slightly reorganized form): > > alloc > ===== > > 16 threads: > >     cache           alloc_fastpath          alloc_slowpath >     kmalloc-256     4263275 (91.1%)         417445 (8.9%) >     kmalloc-1024    4636360 (99.1%)         42091 (0.9%) >     kmalloc-4096    2570312 (54.4%)         2155946 (45.6%) > > 160 threads: > >     cache           alloc_fastpath          alloc_slowpath >    kmalloc-256     10937512 (62.8%)        6490753 (37.2%) >    kmalloc-1024    17121172 (98.3%)        303547 (1.7%) >    kmalloc-4096    5526281 (31.7%)        11910454 (68.3%) > > free > ==== > > 16 threads: > >     cache           free_fastpath           free_slowpath >     kmalloc-256     210115 (4.5%)         4470604 (95.5%) >     kmalloc-1024    3579699 (76.5%)       1098764 (23.5%) >     kmalloc-4096    67616 (1.4%)        4658678 (98.6%) > > 160 threads: >     cache           free_fastpath           free_slowpath >     kmalloc-256     15469 (0.1%)       17412798 (99.9%) >     kmalloc-1024    11604742 (66.6%)        5819973 (33.4%) >     kmalloc-4096    14848 (0.1%)         17421902 (99.9%) > > it's pretty sad to see how SLUB alloc fastpath utilization drops so > dramatically. Free fastpath utilization isn't all that great with 160 > threads either but it seems to me that most of the performance > regression compared to SLAB still comes from the alloc paths. > It's the opposite, the cumulative effects of the free slowpath is more costly in terms of latency than the alloc slowpath because it occurs at a greater frequency; the pattern that I described as "slab thrashing" before causes a single free to a full slab, manipulation to get it back on the partial list, then the alloc slowpath grabs it for a single allocation, and requires another partial slab on the next alloc. --397155492-1617763585-1312253016=:15596--