Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6544339ybl; Wed, 15 Jan 2020 06:25:43 -0800 (PST) X-Google-Smtp-Source: APXvYqzfAAIWYQLXPDxoMENxLNUEkwlawb53Oh1bNWilelY81Baw/V3DOiwrmJKMTIOYWtmChdxr X-Received: by 2002:aca:b984:: with SMTP id j126mr21528189oif.174.1579098343215; Wed, 15 Jan 2020 06:25:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579098343; cv=none; d=google.com; s=arc-20160816; b=UxGwPHTf/MpkKJv9W3lOexlmhdDGFbQFnEEbyHsdIFEr9/R1e8qO85GR0ELY8NQ31x wTx6jFhuXPxXzi5rEwyFEohUKUlkVF7ph69wMqk8o+t5NA/P7Md3A6LLUWR2lC+CUrIW yRn+Qc0m91AhCsppyUCCY4u5qc12XhLuK56czzuT1xan6nxdi5m0kagnXr6kxK2oPfZY SBQVE0zl1aVrpJTwPKiLa1C5TGlrtcxx+m9WRzrw9Di1Qm1VgYRmneuo71dYQXTE3Mq2 fwTiYXq3gxvOlIQ7Fmb0hPlzR86y7gojb3I1zf30OYIb9yNhkC/bjczYloueMgPl93IB 7Dzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=y5F+uLIcR2UllSBRBos7Ky0GoYxDm3cL+Tbwq2QDAHo=; b=cTrZ4cSuNv/h5QIn/X2I4z/aH4VCnMCmk00MceQ7dPDfeJ+3Tzrzd9h7kI8iCfNDm/ L0bgBB5nVQX9CLEgZYs9Knxs79ovZGGID+ACUjOWrigPrjjWnlDrkive/R/MWa7hvxHi ikLNuA2SqCdEBOixFGQ2dq6fcIRECJ9Eh9tNGGXxPUWiU7yPkRmtI+oH2ravzQ17OHo8 4DFq+PafLHXRvS/GAzxuIZLEBk+yX3/xiq5c5PIuJXRJNJEs4bn8E8l0Tlu3YZ8zwKTT mDyQVAPzF2ebQwDt3KS8wKVMRga8AYQ8L/3yZBXFvhQSFanIt8RB+UYeSCYIrxWVkl/9 c7cQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11si10288338otq.112.2020.01.15.06.25.31; Wed, 15 Jan 2020 06:25:43 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729210AbgAOOXQ (ORCPT + 99 others); Wed, 15 Jan 2020 09:23:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:52410 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726473AbgAOOXP (ORCPT ); Wed, 15 Jan 2020 09:23:15 -0500 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4FA0A24671; Wed, 15 Jan 2020 14:23:14 +0000 (UTC) Date: Wed, 15 Jan 2020 09:23:12 -0500 From: Steven Rostedt To: David Laight Cc: 'Vincent Guittot' , Peter Zijlstra , Viresh Kumar , Ingo Molnar , Juri Lelli , Dietmar Eggemann , Ben Segall , Mel Gorman , linux-kernel Subject: Re: sched/fair: scheduler not running high priority process on idle cpu Message-ID: <20200115092312.45159939@gandalf.local.home> In-Reply-To: <3960d46b3a4a4053a696a98ee6fd131d@AcuMS.aculab.com> References: <212fabd759b0486aa8df588477acf6d0@AcuMS.aculab.com> <20200114115906.22f952ff@gandalf.local.home> <5ba2ae2d426c4058b314c20c25a9b1d0@AcuMS.aculab.com> <20200114124812.4d5355ae@gandalf.local.home> <3960d46b3a4a4053a696a98ee6fd131d@AcuMS.aculab.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 15 Jan 2020 12:57:10 +0000 David Laight wrote: > I'm surprised the 'normal case' for tracing function entry isn't done > in assembler without saving all the registers (etc). Well, it doesn't save all registers unless you ask it to. It only saves what the compiler mandates for "fentry" before calling C code. > For tsc stamps I think it should be possible saving just 3 registers > in under 32 instructions. Scaling to ns is a bit harder. > It's a shame the ns scaling isn't left to the reading code. Well, it could be done, as the ring buffer allows you to post process timestamps. You could switch to using just tsc: echo x86-tsc > /sys/kernel/tracing/trace_clock One reason that we do not post process the scaling to ns is that the scaling can change over time depending on the clock source, which means post processing will give you in accurate results. But the infrastructure is there to do it. -- Steve