From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by kanga.kvack.org (Postfix) with ESMTP id 0EBBF6B0005 for ; Thu, 7 Apr 2016 22:31:54 -0400 (EDT) Received: by mail-wm0-f42.google.com with SMTP id u206so5205870wme.1 for ; Thu, 07 Apr 2016 19:31:54 -0700 (PDT) Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com. [2a00:1450:400c:c09::22b]) by mx.google.com with ESMTPS id m194si742268wmg.82.2016.04.07.19.31.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Apr 2016 19:31:52 -0700 (PDT) Received: by mail-wm0-x22b.google.com with SMTP id l6so47523180wml.1 for ; Thu, 07 Apr 2016 19:31:52 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20160407231413.53e371ff@redhat.com> References: <1459971348-81477-1-git-send-email-thgarnie@google.com> <20160407231413.53e371ff@redhat.com> Date: Thu, 7 Apr 2016 19:31:52 -0700 Message-ID: Subject: Re: [RFC v1] mm: SLAB freelist randomization From: Kees Cook Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Jesper Dangaard Brouer Cc: Thomas Garnier , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Greg Thelen , "kernel-hardening@lists.openwall.com" , LKML , Linux-MM , Laura Abbott On Thu, Apr 7, 2016 at 2:14 PM, Jesper Dangaard Brouer wrote: > > On Wed, 6 Apr 2016 14:45:30 -0700 Kees Cook wrote: > >> On Wed, Apr 6, 2016 at 12:35 PM, Thomas Garnier wrote: > [...] >> > re-used on slab creation for performance. >> >> I'd like to see some benchmark results for this so the Kconfig can >> include the performance characteristics. I recommend using hackbench >> and kernel build times with a before/after comparison. >> > > It looks like it only happens on init, right? (Thus must bench tools > might not be the right choice). Oh! Yes, you're right. I entirely missed that detail. :) 0-cost randomization! Sounds good to me. :) -Kees > > My slab tools for benchmarking the fastpath is here: > https://github.com/netoptimizer/prototype-kernel/blob/master/kernel/mm/slab_bulk_test01.c > > And I also carry a version of Christoph's slab bench tool: > https://github.com/netoptimizer/prototype-kernel/blob/master/kernel/mm/slab_test.c > > -- > Best regards, > Jesper Dangaard Brouer > MSc.CS, Principal Kernel Engineer at Red Hat > Author of http://www.iptv-analyzer.org > LinkedIn: http://www.linkedin.com/in/brouer -- Kees Cook Chrome OS & Brillo Security -- 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