Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758874AbbEFELO (ORCPT ); Wed, 6 May 2015 00:11:14 -0400 Received: from mail-wi0-f195.google.com ([209.85.212.195]:34447 "EHLO mail-wi0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758857AbbEFELJ (ORCPT ); Wed, 6 May 2015 00:11:09 -0400 From: Ingo Molnar X-Google-Original-From: Ingo Molnar Date: Wed, 6 May 2015 06:11:04 +0200 To: Dave Hansen Cc: linux-kernel@vger.kernel.org, Andy Lutomirski , Borislav Petkov , Fenghua Yu , "H. Peter Anvin" , Linus Torvalds , Oleg Nesterov , Thomas Gleixner Subject: Re: [PATCH 207/208] x86/fpu: Add FPU performance measurement subsystem Message-ID: <20150506041104.GA12080@gmail.com> References: <1430848712-28064-1-git-send-email-mingo@kernel.org> <1430848712-28064-47-git-send-email-mingo@kernel.org> <554916B4.1040809@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <554916B4.1040809@linux.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1140 Lines: 33 * Dave Hansen wrote: > On 05/05/2015 10:58 AM, Ingo Molnar wrote: > > x86/fpu: Cost of: XSAVE insn : 104 cycles > > x86/fpu: Cost of: XRSTOR insn : 80 cycles > > Isn't there going to be pretty huge variability here depending on > how much state you are xsave/xrstor'ing and if the init/modified > optimizations are in play? Hopefully there's such variability! :) I thought to add measurements for that as well: - to see the costs of this instruction family when various xstate components are in 'init state' or not - maybe even measure whether it can optimize based on whether things got changed since the last save (which the SDM kind of alludes to but which I doubt the hw does)? This initial version only measures trivial init state save/restore cost. Thanks, Ingo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/