Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751950AbaLQHPg (ORCPT ); Wed, 17 Dec 2014 02:15:36 -0500 Received: from mail-ob0-f180.google.com ([209.85.214.180]:52763 "EHLO mail-ob0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751087AbaLQHPe (ORCPT ); Wed, 17 Dec 2014 02:15:34 -0500 MIME-Version: 1.0 In-Reply-To: References: <20141210163017.092096069@linux.com> <20141210163033.717707217@linux.com> <20141215080338.GE4898@js1304-P5Q-DELUXE> <20141216024210.GB23270@js1304-P5Q-DELUXE> <20141216082555.GA6088@js1304-P5Q-DELUXE> <20141216161521.1f72e102@redhat.com> Date: Wed, 17 Dec 2014 16:15:34 +0900 Message-ID: Subject: Re: [PATCH 3/7] slub: Do not use c->page on free From: Joonsoo Kim To: Christoph Lameter Cc: Jesper Dangaard Brouer , Joonsoo Kim , Andrey Ryabinin , akpm@linuxfoundation.org, Steven Rostedt , LKML , Thomas Gleixner , "linux-mm@kvack.org" , Pekka Enberg Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2014-12-17 0:48 GMT+09:00 Christoph Lameter : > On Tue, 16 Dec 2014, Jesper Dangaard Brouer wrote: > >> > Ok but now there is a multiplication in the fast path. >> >> Could we pre-calculate the value (page->objects * s->size) and e.g store it >> in struct kmem_cache, thus saving the imul ? > > I think I just used the last available field for the page->address. Possibly, we can use _count field. Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/