Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3634031ybl; Sun, 8 Dec 2019 19:57:41 -0800 (PST) X-Google-Smtp-Source: APXvYqy30H6C14FciSivhvWPrlEG6Iz1U3qxfFakGg8mNPxXcCzlX3qW04u7N1E5MjSGvxqfXTVo X-Received: by 2002:a9d:338:: with SMTP id 53mr10176135otv.197.1575863861589; Sun, 08 Dec 2019 19:57:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575863861; cv=none; d=google.com; s=arc-20160816; b=yJkw5YSy7bVLVeAU7UJgx0/+AYCzdfDI/GcIE3j9be5vb7P1Vs/R7bumtGUiRnhS/3 QFcp0zpY7GxxKRYp2Hfi2TMQUEIB+Vvof59OlmqWBz783RHSsoCAuZtqYimuObDl3yAP 8D9/5F09QqvWwcHx+fxWWDpA6M2PSQ4FlPsW4gZwj5JzDvTBZLpwi0Khnyr9b2rEQ5jt fZTE1dYwU239fMxzZWm7xqDS3RVRirdIaxEXsUR0AJMTYnQSDiZTM4B/Bs2SG0IdO1Qc S9lmaCtJ+IwWOOYpLVQz2Y4ezvswx86ENZ5KX8Mh8yPJ43H1m4OZOt/ZmAZ+wcDgeX8G eMTg== 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; bh=VrSdXK3lQr+JUMJGxREd+TUYT1Lnvkd0LeSisTnMqt0=; b=rt93dwGUSIU7mrIsJS2wlc+EvYIftoETXs+L/ubHsbMbKN2GAhffLuWtnSm2DC55Gv AxVu4BbR11E/lCoFMJX1oq+d0aqCuad+e2wAjqoU5zkByhWAVzTvQYPgqORuh4iYcwKy xPrA8tfZ4jVBhXXGSuU9nueT8PViGcghmG4pTwL6mT7q7p7fhpwnZTBymckJyvsbpZcN CbHIh5gL9qv+OFOxX6MYrKRSlUAXJPyo5xMrpb7nseT7BxiuW/n+r3vJuo5FqTa9aSYa 4UMLE+sHoWsLp/iPAPC9WbEBQmFIaEQkw/oWNbZSI/xwwpNQt/tneZ4Z3RndrAlAMuUy 9NVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N+9DyDZx; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u125si11248738oif.130.2019.12.08.19.57.30; Sun, 08 Dec 2019 19:57:41 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N+9DyDZx; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726988AbfLIDuY (ORCPT + 99 others); Sun, 8 Dec 2019 22:50:24 -0500 Received: from mail-oi1-f193.google.com ([209.85.167.193]:45843 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726748AbfLIDuX (ORCPT ); Sun, 8 Dec 2019 22:50:23 -0500 Received: by mail-oi1-f193.google.com with SMTP id v10so5081362oiv.12 for ; Sun, 08 Dec 2019 19:50:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VrSdXK3lQr+JUMJGxREd+TUYT1Lnvkd0LeSisTnMqt0=; b=N+9DyDZxiVRbETKVrdHO5d5MflIXW/jWdD8hxP6V2xnTbMfTO25WybfWoVgl9YZJvC IF4bPe85o5+k9Nxo4gQpBtcSJgCbI09e/XnsLpUvO71hQDTP1hILaPwT7k+0ma6WnlR8 UmWwRQvRGWJRWtspgtdzoo3NTcUyjWOPsmPCbwnFrS2YZkXDz3ZDTcDQoCzMrW4Jmiew BBDNDB1yaz2sunIQX75tvvGa3ifnVXIKoJ8KDB/o8KNFYXrsPpI7ZEqL7I1ohNgOS1bI 8BzoiW5EpSDzFz0hvSseRG0FFHBnN7BFEjlX9Xm+d0aVoGPnnkYIxGclmvgKQ7dIHcA+ fYXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VrSdXK3lQr+JUMJGxREd+TUYT1Lnvkd0LeSisTnMqt0=; b=ELaXV6FBe6RyJWo7aYA037nmCJZbejlkw48L2Wrr5AbYyijBbb9TOn3dPSAuLcbN0w F1/vWTMyaetzloZzm2wKBnq0ajWcErt2p+eaFw33SG8ATCzeoCg0N5VqqWfOh6Su0/2O UTJUoTuZtmk7wqwHBU8sIomXsJx2ZcDrFtKABU/EVDfecBSkmCoGjEMqtnTy3oWfv5Gr O1gXA5ZMsHH+IiTH+jQr7u0IKNTUYvsuutuW9159g7JBYkb2li+KyhKcmt8QBG/TPJnL KascPjOBDEz5HvPdjMHOSXePIpNLYDU6+GxzZH7oVH8qbO7YVqrGXKqRs7OET/p4eF9P C9RA== X-Gm-Message-State: APjAAAVzwCxyL82wRUX5rCXYkdPKg8Iy1fImtKvj1Nxpa3gjdAsSCiN2 jy8UACc2d46/ALXjqDU8zzBBtM/YVN2fnwa/QsM= X-Received: by 2002:aca:8d5:: with SMTP id 204mr21609688oii.141.1575863422817; Sun, 08 Dec 2019 19:50:22 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Wanpeng Li Date: Mon, 9 Dec 2019 11:50:12 +0800 Message-ID: Subject: Re: [PATCH V3 0/2] sched/fair: Fallback to sched-idle CPU in absence of idle CPUs To: Viresh Kumar Cc: Ingo Molnar , Peter Zijlstra , LKML , Vincent Guittot , Todd Kjos , Daniel Lezcano , quentin.perret@linaro.org, chris.redpath@arm.com, steven.sistare@oracle.com, subhra.mazumdar@oracle.com, songliubraving@fb.com 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 Wed, 26 Jun 2019 at 13:07, Viresh Kumar wrote: > > Hi, > > We try to find an idle CPU to run the next task, but in case we don't > find an idle CPU it is better to pick a CPU which will run the task the > soonest, for performance reason. > > A CPU which isn't idle but has only SCHED_IDLE activity queued on it > should be a good target based on this criteria as any normal fair task > will most likely preempt the currently running SCHED_IDLE task > immediately. In fact, choosing a SCHED_IDLE CPU over a fully idle one > shall give better results as it should be able to run the task sooner > than an idle CPU (which requires to be woken up from an idle state). > > This patchset updates both fast and slow paths with this optimization. > > Testing is done with the help of rt-app currently and here are the > details: > > - Tested on Octacore Hikey platform (all CPUs change frequency > together). > > - rt-app json [1] creates few tasks and we monitor the scheduling > latency for them by looking at "wu_lat" field (usec). > > - The histograms are created using > https://github.com/adkein/textogram: textogram -a 0 -z 1000 -n 10 > > - the stats are accumulated using: https://github.com/nferraz/st Hi Viresh, Thanks for the great work! Could you give the whole commad-line for us testing? Wanpeng