From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932662AbbAPDvT (ORCPT ); Thu, 15 Jan 2015 22:51:19 -0500 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.225]:20894 "EHLO cdptpa-oedge-vip.email.rr.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752983AbbAPDvP (ORCPT ); Thu, 15 Jan 2015 22:51:15 -0500 Date: Thu, 15 Jan 2015 22:51:30 -0500 From: Steven Rostedt To: Christoph Lameter Cc: Andrew Morton , Joonsoo Kim , Pekka Enberg , David Rientjes , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Jesper Dangaard Brouer , Thomas Gleixner , Peter Zijlstra Subject: Re: [PATCH v2 1/2] mm/slub: optimize alloc/free fastpath by removing preemption on/off Message-ID: <20150115225130.00c0c99a@grimm.local.home> In-Reply-To: References: <1421307633-24045-1-git-send-email-iamjoonsoo.kim@lge.com> <20150115171634.685237a4.akpm@linux-foundation.org> <20150115203045.00e9fb73@grimm.local.home> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.142:25 X-Cloudmark-Score: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 15 Jan 2015 21:27:14 -0600 (CST) Christoph Lameter wrote: > > The %gs register is not used since the address of the per cpu area is > available as one of the first fields in the per cpu areas. Have you disassembled your code? Looking at put_cpu_partial() from 3.19-rc3 where it does: oldpage = this_cpu_read(s->cpu_slab->partial); I get: mov %gs:0x18(%rax),%rdx Looks to me that %gs is used. I haven't done benchmarks in a while, so perhaps accessing the %gs segment isn't as expensive as I saw it before. I'll have to profile function tracing on my i7 and see where things are slow again. -- Steve