Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp826107ybi; Thu, 30 May 2019 07:21:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyia+Qe/mrTyrdQGjcTGk9/DLAx6439NcPDByCtOfE3XlVKTFPRflFxzn5eQUWcCSxpgIho X-Received: by 2002:a63:c24c:: with SMTP id l12mr3972579pgg.173.1559226071631; Thu, 30 May 2019 07:21:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559226071; cv=none; d=google.com; s=arc-20160816; b=Flcf4zKjsdLitEyLezOfOK3u2ugSNSCgn3nqXwneXTW68Kjo0nC9JqlTs9i0LAB1kW ItZVqj7rJBvP+6sl5hPSC5cAmvU0prM+mvpUzAWE7hJF54fp23MohUH6onjJUqmml0n/ tTnFOlY0dSYb04zIcnq8dC/1A7jrGNig7XuJ8CWK4BRdtp4RPyT1Ima4wlszwhywlXaA r4EI+8FLtfbjVhj9nyYv6DdqJXrZ5+NIKotViBmXJVZWpUvXACI/cWGJ4yqKB3ezSYfF 28kHto0q05N2fX7jQqZ/Y7sabl4H5Td/hkWqp/DSGYrjGGiEMF+RXJ8hU4VPxkyWrInR E6MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pHhULM6LCxpOl4YmMJrRtsFZqp4MioLGBgjQDLV7UUA=; b=glJziQZwMBblobCarK+JfxfGRCWcS+ok1k718Xm3Ed9t93uhBbTio2LnJ+BlaftPGk AJZLR+tfVNODOEIhWP8HEwiU3b07mIWvTqCh4x5Az+/RU+KfGayfADYDOrhbZLAZyDzu T01m330ZXjVNjb5+fhNJcNZ4oE+6iMSE5QGkzlYJkiJWsVecKZUA9NY8mgtC9Z2oaQiH bHgjSSdIqcA05Xrwu70jjVwcdXink55g8i3NEUglyrBrpQ/dii9VYA2jyri4d6RQuZDK p/Qk1Wch+Paz1bLol5rQxbY+9UPpYqXHeoarnxEFl+5qcOQg1BAyYBQkiNSos9h1jYGW 6Pkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digitalocean.com header.s=google header.b=OGIdl4Zj; 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=REJECT sp=REJECT dis=NONE) header.from=digitalocean.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m11si3147970pjq.80.2019.05.30.07.20.52; Thu, 30 May 2019 07:21:11 -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=@digitalocean.com header.s=google header.b=OGIdl4Zj; 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=REJECT sp=REJECT dis=NONE) header.from=digitalocean.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726711AbfE3ORe (ORCPT + 99 others); Thu, 30 May 2019 10:17:34 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:37973 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726355AbfE3ORd (ORCPT ); Thu, 30 May 2019 10:17:33 -0400 Received: by mail-qk1-f193.google.com with SMTP id a27so3926829qkk.5 for ; Thu, 30 May 2019 07:17:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digitalocean.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=pHhULM6LCxpOl4YmMJrRtsFZqp4MioLGBgjQDLV7UUA=; b=OGIdl4ZjCoSlz0gdKNWOUYeUIuSpdJRlUHlg3eC6Kry5yyE2RN9BKXXqp7ujZcPc3C cdhhCF23BRpzTTjxCSpZXSVGz7w6UsMy/8lwBulW9XbexiU4N3/8zs2Vr6XK9reyEqdo tZX5qGydkxevTV27TwcB+na+UmQ++cHqdIDLw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=pHhULM6LCxpOl4YmMJrRtsFZqp4MioLGBgjQDLV7UUA=; b=c7rsV3K7740F3Z0/hVPN/gG3W2BJyn7vT7oL31gyyQBgQoYOGgOFF7az67Tc4GvFN3 kpSH1bCbqXzEW2WK6z7l14xkryM/vKSQwVSzev1NCl2NDBcSOB6H5KGlsc5bgXKFl6Mi 8G/fxSlgoO+Lw0xCIdx5/ZyeQVn0TF5j3OZejpljU6nmAIg6OChYeP6rkqaz2W+PGpu7 aWE/PN1JvXPtyxUm/SzNaFukwcxkME9Ts/qAwXnpgSShezNSwb6fUSmRiaoduJiZmDGR YAXf5bjDDV+WHE5Kz18B91+0VBUqOWXL8oI7G6TKF6GaICzdbLojv95B9ANIAIRsNhJg PAYg== X-Gm-Message-State: APjAAAVLwYHbgT1A83OEugmFzxsgfPfJuLK1PZQ3iJYPtFblMJMnMshs M5bX2zlg/tN8eK6+JvH5pHqewQ== X-Received: by 2002:a37:af03:: with SMTP id y3mr3434003qke.296.1559225852070; Thu, 30 May 2019 07:17:32 -0700 (PDT) Received: from sinkpad (modemcable060.224-21-96.mc.videotron.ca. [96.21.224.60]) by smtp.gmail.com with ESMTPSA id y8sm1725994qth.22.2019.05.30.07.17.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 May 2019 07:17:31 -0700 (PDT) Date: Thu, 30 May 2019 10:17:25 -0400 From: Julien Desfossez To: Aubrey Li Cc: Vineeth Remanan Pillai , Nishanth Aravamudan , Peter Zijlstra , Tim Chen , Ingo Molnar , Thomas Gleixner , Paul Turner , Linus Torvalds , Linux List Kernel Mailing , Subhra Mazumdar , =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker , Kees Cook , Greg Kerr , Phil Auld , Aaron Lu , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini Subject: Re: [RFC PATCH v3 00/16] Core scheduling v3 Message-ID: <20190530141725.GA15172@sinkpad> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Mailer: Mutt 1.5.24 (2015-08-30) User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30-May-2019 10:04:39 PM, Aubrey Li wrote: > On Thu, May 30, 2019 at 4:36 AM Vineeth Remanan Pillai > wrote: > > > > Third iteration of the Core-Scheduling feature. > > > > This version fixes mostly correctness related issues in v2 and > > addresses performance issues. Also, addressed some crashes related > > to cgroups and cpu hotplugging. > > > > We have tested and verified that incompatible processes are not > > selected during schedule. In terms of performance, the impact > > depends on the workload: > > - on CPU intensive applications that use all the logical CPUs with > > SMT enabled, enabling core scheduling performs better than nosmt. > > - on mixed workloads with considerable io compared to cpu usage, > > nosmt seems to perform better than core scheduling. > > My testing scripts can not be completed on this version. I figured out the > number of cpu utilization report entry didn't reach my minimal requirement. > Then I wrote a simple script to verify. > ==================== > $ cat test.sh > #!/bin/sh > > for i in `seq 1 10` > do > echo `date`, $i > sleep 1 > done > ==================== > > Normally it works as below: > > Thu May 30 14:13:40 CST 2019, 1 > Thu May 30 14:13:41 CST 2019, 2 > Thu May 30 14:13:42 CST 2019, 3 > Thu May 30 14:13:43 CST 2019, 4 > Thu May 30 14:13:44 CST 2019, 5 > Thu May 30 14:13:45 CST 2019, 6 > Thu May 30 14:13:46 CST 2019, 7 > Thu May 30 14:13:47 CST 2019, 8 > Thu May 30 14:13:48 CST 2019, 9 > Thu May 30 14:13:49 CST 2019, 10 > > When the system was running 32 sysbench threads and > 32 gemmbench threads, it worked as below(the system > has ~38% idle time) > Thu May 30 14:14:20 CST 2019, 1 > Thu May 30 14:14:21 CST 2019, 2 > Thu May 30 14:14:22 CST 2019, 3 > Thu May 30 14:14:24 CST 2019, 4 <=======x= > Thu May 30 14:14:25 CST 2019, 5 > Thu May 30 14:14:26 CST 2019, 6 > Thu May 30 14:14:28 CST 2019, 7 <=======x= > Thu May 30 14:14:29 CST 2019, 8 > Thu May 30 14:14:31 CST 2019, 9 <=======x= > Thu May 30 14:14:34 CST 2019, 10 <=======x= > > And it got worse when the system was running 64/64 case, > the system still had ~3% idle time > Thu May 30 14:26:40 CST 2019, 1 > Thu May 30 14:26:46 CST 2019, 2 > Thu May 30 14:26:53 CST 2019, 3 > Thu May 30 14:27:01 CST 2019, 4 > Thu May 30 14:27:03 CST 2019, 5 > Thu May 30 14:27:11 CST 2019, 6 > Thu May 30 14:27:31 CST 2019, 7 > Thu May 30 14:27:32 CST 2019, 8 > Thu May 30 14:27:41 CST 2019, 9 > Thu May 30 14:27:56 CST 2019, 10 > > Any thoughts? Interesting, could you detail a bit more your test setup (commands used, type of machine, any cgroup/pinning configuration, etc) ? I would like to reproduce it and investigate. Thanks, Julien