Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754788AbbFQNGY (ORCPT ); Wed, 17 Jun 2015 09:06:24 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:36389 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752842AbbFQNGQ (ORCPT ); Wed, 17 Jun 2015 09:06:16 -0400 Date: Wed, 17 Jun 2015 21:06:17 +0800 From: Boqun Feng To: Yuyang Du Cc: mingo@kernel.org, peterz@infradead.org, linux-kernel@vger.kernel.org, pjt@google.com, bsegall@google.com, morten.rasmussen@arm.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, len.brown@intel.com, rafael.j.wysocki@intel.com, fengguang.wu@intel.com, srikar@linux.vnet.ibm.com Subject: Re: [Resend PATCH v8 0/4] sched: Rewrite runnable load and utilization average tracking Message-ID: <20150617130617.GB7154@fixme-laptop.cn.ibm.com> References: <1434396367-27979-1-git-send-email-yuyang.du@intel.com> <20150617030650.GB5695@fixme-laptop.cn.ibm.com> <20150617051501.GA7154@fixme-laptop.cn.ibm.com> <20150617031101.GC1244@intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Fba/0zbH8Xs+Fj9o" Content-Disposition: inline In-Reply-To: <20150617031101.GC1244@intel.com> User-Agent: Mutt/1.5.23+89 (0255b37be491) (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1989 Lines: 65 --Fba/0zbH8Xs+Fj9o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Yuyang, On Wed, Jun 17, 2015 at 11:11:01AM +0800, Yuyang Du wrote: > Hi, >=20 > The sched_debug is informative, lets first give it some analysis. >=20 > The workload is 12 CPU hogging tasks (always runnable) and 1 dbench > task doing fs ops (70% runnable) running at the same time. >=20 > Actually, these 13 tasks are in a task group /autogroup-9617, which > has weight 1024. >=20 > So the 13 tasks at most can contribute to an average of 79 (=3D1024/13) >=20 [snip] > So the problem is: >=20 > 1) The tasks in the workload have too small weight (only 79), because > they share a task group. >=20 > 2) Probably some "high" weight task even runnable a small time > contribute "big" to cfs_rq's load_avg. Thank you for your analysis. Some updates: I created a task group /g and set /g/cpu.shares to 13312 (1024 * 13), and then ran `stress --cpu 12` and `dbench 1` simultaneously in that group. The situation is much better, only one CPU is not fully loaded, and its utilization rate stays around 85%. Regards, Boqun --Fba/0zbH8Xs+Fj9o Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJVgXDFAAoJEEl56MO1B/q44joIALO6o6thmxQe8xra95E7gyVd YgeWzqNanu5l/deUsb2uTzq49bmlx8oDK9tf2Svqryli7OwOasDsHpaUx4PzkEYI x2Q46qP8g5/KrxbiWcw1EWgM6/X8f7sytKB2zyfAZYP9+IgtaVqqfIAwFOaMH2D7 epbDl21EwzEPVqZhjjPr5V84GtnJa2oL3tk5uAJpvzzH1TKn0EUzS17dSSgjuJQH ZYn62bgRdnCnputCy0txDxmUdwxkhAlqyiW6IjFPe2mhz78txlZdLdsWw9OTt8VO GwbkdyXylO0AREPlXEYUrdlc6kteM7OxwtDekJCY/7t2qC6/PQ3LLbf3jtxgdzU= =3HjC -----END PGP SIGNATURE----- --Fba/0zbH8Xs+Fj9o-- -- 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/