From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ig0-f198.google.com (mail-ig0-f198.google.com [209.85.213.198]) by kanga.kvack.org (Postfix) with ESMTP id D8D5D6B007E for ; Wed, 18 May 2016 14:25:03 -0400 (EDT) Received: by mail-ig0-f198.google.com with SMTP id i5so111400180ige.1 for ; Wed, 18 May 2016 11:25:03 -0700 (PDT) Received: from resqmta-po-08v.sys.comcast.net (resqmta-po-08v.sys.comcast.net. [2001:558:fe16:19:96:114:154:167]) by mx.google.com with ESMTPS id o17si20706210igw.21.2016.05.18.11.25.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 May 2016 11:25:00 -0700 (PDT) Date: Wed, 18 May 2016 13:24:57 -0500 (CDT) From: Christoph Lameter Subject: Re: [RFC v1 2/2] mm: SLUB Freelist randomization In-Reply-To: <1463594175-111929-3-git-send-email-thgarnie@google.com> Message-ID: References: <1463594175-111929-1-git-send-email-thgarnie@google.com> <1463594175-111929-3-git-send-email-thgarnie@google.com> Content-Type: text/plain; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Thomas Garnier Cc: Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , "Paul E . McKenney" , Pranith Kumar , David Howells , Tejun Heo , Johannes Weiner , David Woodhouse , Petr Mladek , Kees Cook , linux-mm@kvack.org, linux-kernel@vger.kernel.org, gthelen@google.com, kernel-hardening@lists.openwall.com 0.On Wed, 18 May 2016, Thomas Garnier wrote: > slab_test, before: > 10000 times kmalloc(8) -> 67 cycles kfree -> 101 cycles > 10000 times kmalloc(16) -> 68 cycles kfree -> 109 cycles > 10000 times kmalloc(32) -> 76 cycles kfree -> 119 cycles > 10000 times kmalloc(64) -> 88 cycles kfree -> 114 cycles > After: > 10000 times kmalloc(8) -> 60 cycles kfree -> 74 cycles > 10000 times kmalloc(16) -> 63 cycles kfree -> 78 cycles > 10000 times kmalloc(32) -> 72 cycles kfree -> 85 cycles > 10000 times kmalloc(64) -> 91 cycles kfree -> 99 cycles Erm... The fastpath was not touched and the tests primarily exercise the fastpath. This is likely some artifact of code placement by the compiler? -- 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