Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1251297imm; Fri, 15 Jun 2018 13:49:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKF22N1qy9T+VHW3prHs58CALpHI4rBrmeg55EE3rHxOW0uP7nYe6gzUuAQuKRK/FoUfHF1 X-Received: by 2002:a17:902:26:: with SMTP id 35-v6mr3749358pla.276.1529095784020; Fri, 15 Jun 2018 13:49:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529095783; cv=none; d=google.com; s=arc-20160816; b=Xga99O33pwlaBH9DLdxujYVfkvgmw0eoGBLm6g0rRMJs8v+gMGa/YyoPs2S8ZN6za5 vfmifzs0U1J8luk6Xgw5wh0o/qtxpUHVt7FbB+YSW5AAuLvHOWLMkd4KJbB91n7ZsICJ ewd/6m5quhz2tiqH6ZwvBzjWXJJPC42dmGnZN17p/C7wmclA6+lxwYqSNU5qv2FuFe2d e5b5s0jUVQamg5jjm/SiFsVYt+iZ0w6oqZ0p9ZR9KLdhdWUH2ecuuHtQB6y423h816B+ wTYwG6DCCtop8JMFzEZI8UAnD1gZZP+Bi9XZbhLOxUUzgX6TTT5Tct0BF/hZld3weS/F mwSA== 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 :arc-authentication-results; bh=pziv7bTk8gjdhdPZJAAO04/Vf4NqL2m7VZLUvCvl4SQ=; b=ru+IXrtUpdARSRH7yV+SOdooZURq1rPUdEuhkQXJwcZkYCV3reS6TaGE6NZpusn1+v 5SFth532bJ1VpD+JtC5g2cTu+PZyA0+aaDcePmszxPOEKjvedtNudvaai5OEPf9LdRcx xYJdPRHP+0GkQf4dmsju1SF3OS0bE42nvgg60JH54HRB5xn2EvHOInmpFR5d/QlP/F2H 3CL09n/E23PNr+PMWzQoupWrYWZH7Gn1X8FXfkSJ4tk9UQYWHLxdkfB7W0fjU2czXwdW d5vcEgxfh6Zl43HvM4FDjifWSjmjcy23H9du+bIs4r5O+bkjX9nAEFKATWVEx4KZQhmt pSeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=Dq83irAH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1-v6si8447657plq.280.2018.06.15.13.49.29; Fri, 15 Jun 2018 13:49:43 -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=@zx2c4.com header.s=mail header.b=Dq83irAH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756502AbeFOUsy (ORCPT + 99 others); Fri, 15 Jun 2018 16:48:54 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:43213 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756133AbeFOUsx (ORCPT ); Fri, 15 Jun 2018 16:48:53 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id c62d9c9e for ; Fri, 15 Jun 2018 20:43:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version :references:in-reply-to:from:date:message-id:subject:to:cc :content-type; s=mail; bh=g+S3hVlDdyC9j6lQphHSH+UUJjk=; b=Dq83ir AHbsIWPVHvx/b72Bd42fYfb/4w181tLBneAa5nDDHnv/PnoQdCCjM3lpf5PeZWFY fpK9NYYoNn1y00/rruASNfwRaW8+Zm/zPGVYL3lfMCwnfpC5fkxzsy/8NWK5zk+2 fFjmKldcORF6rRAkHLl54UWT5T8v5G3ppRK1sIrYYHv+ho+YrQZ9fxq2wdVYoRhg +B7dEYZU9cdXBWz6uFYZaQLHlgL2KSQDH7PqBa11/hjfgl0/93cby8+Isoz93Q0Z 0daXwovJSCLXChpF33lyab29ZDNfR4uO5FbVNo55A2Xj3t4VZwyBtTElbplhm1Wl nN+UTwHRoteqzKUQ== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id dc4863b2 (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO) for ; Fri, 15 Jun 2018 20:43:28 +0000 (UTC) Received: by mail-ot0-f181.google.com with SMTP id p95-v6so12410243ota.5 for ; Fri, 15 Jun 2018 13:48:52 -0700 (PDT) X-Gm-Message-State: APt69E2e5loc5lmkr1djerfkRFrXtyWPgXnDzwBJHNZb8XOl1vi4SCnp blxgERlscgaabStOVHXTBMKpyqT9aH6uVNRmDZs= X-Received: by 2002:a9d:542e:: with SMTP id j46-v6mr2189579oth.41.1529095732114; Fri, 15 Jun 2018 13:48:52 -0700 (PDT) MIME-Version: 1.0 References: <6eecf873-9d87-5345-70ba-5c064a31714b@linux.intel.com> In-Reply-To: From: "Jason A. Donenfeld" Date: Fri, 15 Jun 2018 22:48:39 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Lazy FPU restoration / moving kernel_fpu_end() to context switch To: Andrew Lutomirski Cc: dave.hansen@linux.intel.com, riel@surriel.com, LKML , X86 ML 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, Jun 15, 2018 at 10:27 PM Jason A. Donenfeld wrote: > AVX512 - Intel(R) Xeon(R) Gold 5120 CPU @ 2.20GHz > Inside: 634415672 > Outside: 286698960 > Percent speedup: 121 More realistic results, with turbo turned off: Inside: 616851298 Outside: 339606790 Percent speedup: 81 Still a pretty outstanding speedup.