Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp16945imm; Fri, 21 Sep 2018 17:07:04 -0700 (PDT) X-Google-Smtp-Source: ACcGV63tpPp5snPkngB1cfgHsGpIRQjMUgCe/DhMIPkeTgQFfZfDye0W6AoKj9f+bDp5Rw967Esx X-Received: by 2002:a63:be4a:: with SMTP id g10-v6mr81983pgo.378.1537574824121; Fri, 21 Sep 2018 17:07:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537574824; cv=none; d=google.com; s=arc-20160816; b=iuMzSP8RSsESTrBeRJjpC0j4eSFw63G1p6v43moFUeuIWLxA9ZmZhlXUWXlnj0FcbY EaLMZQ2kXqsK51lgAFt+W6CKk8pTbCPr1f/GwBF5RTaBVO4pEk4LZF/BWtBDtnYdU6ux HRXGED6E+o/PQwGedvPx1dF68n2Oe5FF8hURSVGC4awwOughK9UPz/lNlmW79p6D4ob2 srn3wYo11KeFEDxRG2YJJDzgLtLkGoph3I6Y6yYxJMxplQUASniDxUynYQPodrA8L4Og ltcmfPJEyfIyblDke3/63YlW50iDPyjd22XJOKQDCAE8FO8SAoj/sRSKgOfK4QGqrceT kLJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=m7FOKBEtlEGpM8dxYrDEffG368llkqCqL7eq0tuIQLI=; b=I2qeMfB28I04G4XH79njfEcInBv7GGJQS13T4gqLGvjK/FccDeZW1PmFd3nkwzT4y8 YQanH5C01os5JmoHiG2H6ZTTDdYK/ah4+k1GnBJ31+k0DERBooxn2KaDrosbljhcbxMt qQoztpWPe/bpXkSQggzisl/o8mX2ZeX9ASb93bTjYumpQM3qDaPNbq4ZA4FEqPnnWG7z Up/mlg5vglSaa9PftXeytJfs7PwvDGGuWQwBfW8spc29cBlw/TNrrpnEQT+abkppL6OS fxSIe216AcdRNzLNIXGcDZ2kDZvwMFLnJ82Ed1I5ud+FXt264COxR/h/a05zSpb97Sb2 LKXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=GmFfNXKM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3-v6si27558428pgh.359.2018.09.21.17.06.48; Fri, 21 Sep 2018 17:07:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=GmFfNXKM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391650AbeIVF5u (ORCPT + 99 others); Sat, 22 Sep 2018 01:57:50 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:41574 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725756AbeIVF5u (ORCPT ); Sat, 22 Sep 2018 01:57:50 -0400 Received: by mail-ot1-f67.google.com with SMTP id e18-v6so14653800oti.8 for ; Fri, 21 Sep 2018 17:06:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=m7FOKBEtlEGpM8dxYrDEffG368llkqCqL7eq0tuIQLI=; b=GmFfNXKM6Fe27jUmjn2eiln/O3CxMTZ8OWLaIBGeeQkg/qqb0ofcpKQDwa/8oq04YI if/5pbANZ6qvYwoVjN4cyQ3xVwyyW4O+h93DAyTRk79/4JfMzJTbE9xxfLo/8UZjebz+ Y1M+JfRm279DkB0dGfeEgLsTOgO6ifHmVCvdT6rizgrNg2RwFCwYQvXIwzlYg47AUZmD exvW8iOhSz4lyzRtsI7Hi/GraeLZJk1ibpeOg3nD/Dvq3cAdqXiSFgI5xs6w2r3tfl0w va4e/sDK34doEeT2nj0BDCwPzkUrZsFw9UaBXjBLhaCN4kICRV2aG3TGFZpt95h5PXX6 KZKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=m7FOKBEtlEGpM8dxYrDEffG368llkqCqL7eq0tuIQLI=; b=FhsNc2fV2c7mJeA0LIZ4Zeyb8I8zacsqK7XXZgGa5Uwq6rj/D4//oK6v8/DP2OJeS9 w0yssNmiIRItVQEg/JjNHS9Lit5Lq+mbkmsL5GvsnPmnvUQ7BZgmLlR+qbFlLbkVcT6e kt6vWRpgrptvn4Jx4H8M7tYWZf8ykprQdjahFudv10XBlneyrF8TPdHtFyUXlUjFV5dj Lr8xmon0XtnKQg4dMkYUGKio8J0cVeLWq8FeLTukrQgkc+Mx4vix+TsJcuSUSDyOyOcp 4tSI2pA0NdxkYjBWnuk27Vwi5adNCwHvf6bsDPHxWdviGILL4cNJQ1dgaCLxkcqGXjbj C1og== X-Gm-Message-State: ABuFfoias9XB7CLR//p6fvLa0TBqh+DdXJC7H9QcKCiGQiwjueAPPSwp Tn1bRGd8GNYFiPt5SI9zPBrBAyvVtAYuOj8GS8oaww== X-Received: by 2002:a9d:d7:: with SMTP id 23-v6mr67743otk.372.1537574795806; Fri, 21 Sep 2018 17:06:35 -0700 (PDT) MIME-Version: 1.0 References: <153702858249.1603922.12913911825267831671.stgit@dwillia2-desk3.amr.corp.intel.com> <20180917161245.c4bb8546d2c6069b0506c5dd@linux-foundation.org> In-Reply-To: From: Dan Williams Date: Fri, 21 Sep 2018 17:06:24 -0700 Message-ID: Subject: Re: [PATCH 0/3] mm: Randomize free memory To: "Elliott, Robert (Persistent Memory)" Cc: Kees Cook , Andrew Morton , Michal Hocko , Dave Hansen , Linux MM , Linux Kernel Mailing List , Toshi Kani Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 21, 2018 at 4:51 PM Elliott, Robert (Persistent Memory) wrote: > > > > -----Original Message----- > > From: linux-kernel-owner@vger.kernel.org > owner@vger.kernel.org> On Behalf Of Kees Cook > > Sent: Friday, September 21, 2018 2:13 PM > > Subject: Re: [PATCH 0/3] mm: Randomize free memory > ... > > I'd be curious to hear more about the mentioned cache performance > > improvements. I love it when a security feature actually _improves_ > > performance. :) > > It's been a problem in the HPC space: > http://www.nersc.gov/research-and-development/knl-cache-mode-performance-coe/ > > A kernel module called zonesort is available to try to help: > https://software.intel.com/en-us/articles/xeon-phi-software > > and this abandoned patch series proposed that for the kernel: > https://lkml.org/lkml/2017/8/23/195 > > Dan's patch series doesn't attempt to ensure buffers won't conflict, but > also reduces the chance that the buffers will. This will make performance > more consistent, albeit slower than "optimal" (which is near impossible > to attain in a general-purpose kernel). That's better than forcing > users to deploy remedies like: > "To eliminate this gradual degradation, we have added a Stream > measurement to the Node Health Check that follows each job; > nodes are rebooted whenever their measured memory bandwidth > falls below 300 GB/s." Robert, thanks for that! Yes, instead of run-to-run variations alternating between almost-never-conflict and nearly-always-conflict, we'll get a random / average distribution of cache conflicts.