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 DA1776B0005 for ; Thu, 19 May 2016 22:15:59 -0400 (EDT) Received: by mail-ig0-f198.google.com with SMTP id sq19so191290319igc.0 for ; Thu, 19 May 2016 19:15:59 -0700 (PDT) Received: from mail-oi0-x243.google.com (mail-oi0-x243.google.com. [2607:f8b0:4003:c06::243]) by mx.google.com with ESMTPS id f9si8539095oeo.45.2016.05.19.19.15.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 May 2016 19:15:59 -0700 (PDT) Received: by mail-oi0-x243.google.com with SMTP id w198so20565949oiw.2 for ; Thu, 19 May 2016 19:15:58 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1463594175-111929-1-git-send-email-thgarnie@google.com> <1463594175-111929-3-git-send-email-thgarnie@google.com> <20160519020722.GC10245@js1304-P5Q-DELUXE> Date: Fri, 20 May 2016 11:15:58 +0900 Message-ID: Subject: Re: [RFC v1 2/2] mm: SLUB Freelist randomization From: Joonsoo Kim Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Thomas Garnier Cc: Joonsoo Kim , Christoph Lameter , Pekka Enberg , David Rientjes , Andrew Morton , "Paul E . McKenney" , Pranith Kumar , David Howells , Tejun Heo , Johannes Weiner , David Woodhouse , Petr Mladek , Kees Cook , Linux-MM , LKML , Greg Thelen , kernel-hardening@lists.openwall.com 2016-05-20 5:20 GMT+09:00 Thomas Garnier : > I ran the test given by Joonsoo and it gave me these minimum cycles > per size across 20 usage: I can't understand what you did here. Maybe, it's due to my poor Engling. Please explain more. You did single thread test? Why minimum cycles rather than average? > size,before,after > 8,63.00,64.50 (102.38%) > 16,64.50,65.00 (100.78%) > 32,65.00,65.00 (100.00%) > 64,66.00,65.00 (98.48%) > 128,66.00,65.00 (98.48%) > 256,64.00,64.00 (100.00%) > 512,65.00,66.00 (101.54%) > 1024,68.00,64.00 (94.12%) > 2048,66.00,65.00 (98.48%) > 4096,66.00,66.00 (100.00%) It looks like performance of all size classes are the same? > I assume the difference is bigger if you don't have RDRAND support. What does RDRAND means? Kconfig? How can I check if I have RDRAND? > Christoph, Joonsoo: Do you think it would be valuable to add a CONFIG > to disable additional randomization per new page? It will remove > additional entropy but increase performance for machines without arch > specific randomization instructions. I don't think that it deserve another CONFIG. If performance is a matter, I think that removing additional entropy is better until it is proved that entropy is a problem. Thanks. -- 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