From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qg0-f41.google.com (mail-qg0-f41.google.com [209.85.192.41]) by kanga.kvack.org (Postfix) with ESMTP id B63F96B0075 for ; Tue, 16 Dec 2014 10:48:46 -0500 (EST) Received: by mail-qg0-f41.google.com with SMTP id j5so10460690qga.14 for ; Tue, 16 Dec 2014 07:48:46 -0800 (PST) Received: from resqmta-ch2-12v.sys.comcast.net (resqmta-ch2-12v.sys.comcast.net. [2001:558:fe21:29:69:252:207:44]) by mx.google.com with ESMTPS id f51si1187785qga.113.2014.12.16.07.48.45 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 16 Dec 2014 07:48:45 -0800 (PST) Date: Tue, 16 Dec 2014 09:48:43 -0600 (CST) From: Christoph Lameter Subject: Re: [PATCH 3/7] slub: Do not use c->page on free In-Reply-To: <20141216161521.1f72e102@redhat.com> Message-ID: 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> Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Jesper Dangaard Brouer Cc: Joonsoo Kim , Andrey Ryabinin , akpm@linuxfoundation.org, rostedt@goodmis.org, LKML , Thomas Gleixner , "linux-mm@kvack.org" , Pekka Enberg 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. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org