Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 25 Jun 2018 23:33:16 -0000 Received: from mga04.intel.com ([192.55.52.120]) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fXayw-0007jE-9V for speck@linutronix.de; Tue, 26 Jun 2018 01:33:14 +0200 Date: Mon, 25 Jun 2018 16:33:06 -0700 From: Andi Kleen Subject: [MODERATED] Re: [PATCH v4 3/8] [PATCH v4 3/8] Linux Patch #3 Message-ID: <20180625233306.GE19456@tassilo.jf.intel.com> References: <20180623135445.641656585@localhost.localdomain> MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: > > As usual, it's complicated. > > > > 32k is theoretically enough, but _only_ if none of the lines being > > touched were in the cache previously. That's why it was a 64k buffer in > > some examples. > > But pre-Skylake has 16k cache only, doesn't it? Does it need to read in All relevant recent Intel core CPUs have 32k L1. > Hmm, it would be a pity to require order 5 even. Earlier in the thread > someone said that 52 KiB were enough, if that's confirmed we could keep > order 4 and have guard pages. The real solution is to not use the software sequence, but use the microcode instead, which you need anyways. -Andi