Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp808000ybi; Thu, 30 May 2019 07:06:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKTgw5IO6mh0181xjg7Pa4RPgapUWM1UKMSucuDkX7zCz00RFSEXq9lk+TY0U4yH6RR1eA X-Received: by 2002:a63:484f:: with SMTP id x15mr1063938pgk.162.1559225214014; Thu, 30 May 2019 07:06:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559225214; cv=none; d=google.com; s=arc-20160816; b=YPVnQvhOLQL1F52p+F3VJzHYYAZSYBK9KLcaBEes1fmMwHBFh9YZgHj4k8e/W44mvM miqeQsZunDr1Zdpn9z9+HypV/W8gEP3gs+2oYGI4gP9YIIVl4YRvBGApxoLgN4++IX2y 3nr89HunrhOUvaNpPkcrBpKbjYizn8G/xfauj2gW4fj0xpOgPFQ7FovOQY7aZf+dMXNQ ruE4wTZpZRZLXHelWAJOHTHmOk/8GtW/KUSqRXLsrf56Ow2ifZxkAHVkyVT2eHD35a0D L03xNjm0G1G8MAFbDgMl9AsyjIsSxR0DXO53nVfIAjNHiGT+7U0Og+mFq92XuOGkO/n1 7f/w== 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=HBdd1+Yx5uNDMN7i6EJlgqNqno6FViEqIgRf/X7lmfA=; b=xdKASpgiqerq570dq82ddP+teTOPrSs8lWlC2TlN+cE3WZpNgzVycm3kCGm1LQmovK KAm2uLXIXsFaLPE2Du+4CBit3frU7mHeB2C7Ismo7bHYMsQURSugf0/yZDWNNkiUWPsm tGtJhkr4Q1lQ9/FBlNbn9Gx9rzorCyw+M6t3FMLVd5ljXGQyq+u/s0lxuKlpJzZcdROh oV3mmF9IrEdB+Ig5EOAUrQW5UL8unzuoOg7L+mjixqqGQ/p1CkKAH6XvpiD3oRZzy1pV DjOsrirWNjJX5cmQ1GI8telxAK1oraA7bb0Dgq1AcNUoVg4hGVxrURNi73XoToRg5vIp s8hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Sfi+lGdK; 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 s35si3025109pgm.393.2019.05.30.07.06.28; Thu, 30 May 2019 07:06:54 -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=@gmail.com header.s=20161025 header.b=Sfi+lGdK; 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 S1726670AbfE3OEx (ORCPT + 99 others); Thu, 30 May 2019 10:04:53 -0400 Received: from mail-lf1-f52.google.com ([209.85.167.52]:35473 "EHLO mail-lf1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726232AbfE3OEx (ORCPT ); Thu, 30 May 2019 10:04:53 -0400 Received: by mail-lf1-f52.google.com with SMTP id a25so5142996lfg.2 for ; Thu, 30 May 2019 07:04:51 -0700 (PDT) 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=HBdd1+Yx5uNDMN7i6EJlgqNqno6FViEqIgRf/X7lmfA=; b=Sfi+lGdKQh0pEl3l/DONlJsn5sLKbsEf0Z+cH/597Fj0avHk0ONmAu7m9OAz4ZHj/w b0vAvLD3PdJUjrzcEQmM2d2T6Ax1BQ27yfaWUVSRCvoISiIw0L6ztt3DDzOa+GMbEKP7 ga3rQPriZPdkv5NKdMt1BojCubcP3akpwJS94F+++TFv8aTjiFrAaMOCc1C68GM83o4b e2IzrlQuiM0skP0ekGERvKtw6q1XLV7MwlUYs88znewi8GjEMU/aGgBGKa/rXSlKTlYU NRRLuET7RASglq0ErmUQhB2KVzohJIviR4JW9b7eKIfw5XYi8yuPTZhyDnLKR8aCIcdj zUWQ== 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=HBdd1+Yx5uNDMN7i6EJlgqNqno6FViEqIgRf/X7lmfA=; b=m0FUOTrL0gS2JcffatucuBxaXqRfbdDW1yIH8JYyw35rdsNG0A5sCXIwnS6hTxQJBO Nx5q/Iihj4D/SX6BPvBFi9PEeIr00FGmSn8tH5DCLQuxb3J2kcWfI4dAAoUebFDng52o Kemit14UOsRY7mV27x8HQlrXcEqv/SE1RP6T+PFmXT8dr6xbQkidEZRGZj2T7pDB4BwZ m3w+oK4jVb9dKZVirDnGqF3nvsRtEGwLBQyDhiH+uSBg8tS3ju0tvU0bWKOHm8PaR8Yd 9a1OoRj5aYY9ibR1B2VZZHg2JUMC3bTlLiiLUttqB4R+bIBvd/VKzUs5Xq2Klcw0anLc rdmA== X-Gm-Message-State: APjAAAWmdjTwYk9aquMkq+pSIhh9YitMVV8xScP7YPet6PU7kjNQr2hq Yak0MOM+rkLs4u27hov2SpoLK/ivR/p+HSvZafc= X-Received: by 2002:a19:2045:: with SMTP id g66mr2236457lfg.132.1559225091000; Thu, 30 May 2019 07:04:51 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Aubrey Li Date: Thu, 30 May 2019 22:04:39 +0800 Message-ID: Subject: Re: [RFC PATCH v3 00/16] Core scheduling v3 To: Vineeth Remanan Pillai Cc: Nishanth Aravamudan , Julien Desfossez , Peter Zijlstra , Tim Chen , Ingo Molnar , Thomas Gleixner , Paul Turner , Linus Torvalds , Linux List Kernel Mailing , Subhra Mazumdar , =?UTF-8?B?RnLDqWTDqXJpYyBXZWlzYmVja2Vy?= , Kees Cook , Greg Kerr , Phil Auld , Aaron Lu , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini 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 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? Thanks, -Aubrey