Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5448694ybf; Thu, 5 Mar 2020 00:54:34 -0800 (PST) X-Google-Smtp-Source: ADFU+vsb8fgwSEV+3VCUEBAt9LW2XuNaQPlC/VJD+kWJdVnVjHDaSJVOYilP2eY0DYDjSVpKfF9X X-Received: by 2002:a9d:5e04:: with SMTP id d4mr3834222oti.36.1583398474613; Thu, 05 Mar 2020 00:54:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583398474; cv=none; d=google.com; s=arc-20160816; b=uJK4sQJ8Cgng4a0c6907nadD1+mQEhqyLn/I89S4Wc+KmWCZOjlCVamEE7h0rjCIjj QcKZImhaEU/qpGZAsUcEModBbGVn+rKqjypz4IHql3hef/ZS68fMwUl93tswi9By+EFN 7Z7cliNCPgCHvFbOIO5gR8ybZO0S2RO5025FFaTBXU4W+XF7tNzKHHENyIQNZAwf0Ohw W45RX75lmeRksVaQ8tPOpynqL31ekyAnGCPcj3KQ0YagBs6639J1XOjbhXOj/gBYX39I SFVNXDT2mdN5944AdyarKEuL8+1+5G8ey/OB5zd0mOcCZFhreQM2Ee4i4nDhe6rzxFzj 4LDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=yatntrVjNOH1cXxg+TyXWzHXHNZ3Frt3LUgsMEJ4bhU=; b=Fu4CP4Eup3IrY2la77OSYrzzbD1XNCbDQzJ0lws6dcuc4KXzxbS3cWRfAqfwJTB6sx Mp0toqjwEsQph5LyvpG2v3D3bQ/XzJa9hS8flUpekO4GsTLPCy2pxSo1mcOFgCcos5HS 8UGuTQPrc8fJ8NhDvilguxgECpzdKmmBW8zCwtX9xwbQciVdu/bugF5TOsQkKJ1C/b9t ISJ8ZMd27XmidCjw7Gd1AuMJswzsFA289+ne/RTGns4sAsj9B55OvrLXZNdrVJnAFfqV bqlzg+IMHiYEbjpLP9ZUUs0RntWGwS0ij2LMgYBhOnSMa4mGRTf4NseS+7DliPGLUH1E eIZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="WvFLP/U+"; 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 i12si3118663oik.171.2020.03.05.00.54.22; Thu, 05 Mar 2020 00:54:34 -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="WvFLP/U+"; 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 S1726141AbgCEIwm (ORCPT + 99 others); Thu, 5 Mar 2020 03:52:42 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:33485 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726009AbgCEIwm (ORCPT ); Thu, 5 Mar 2020 03:52:42 -0500 Received: by mail-pf1-f193.google.com with SMTP id n7so2454864pfn.0 for ; Thu, 05 Mar 2020 00:52:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=yatntrVjNOH1cXxg+TyXWzHXHNZ3Frt3LUgsMEJ4bhU=; b=WvFLP/U+fscJa5vPYQE/Fwi8f27OCyGk4eUdtqujYSC7uYLK5F8PK8gNPwtxTslqpt r9FBQ4agIhISu0sC0nZOMXVEX3/7Gd4j07piAZ2KddM4otZY37lN0NBRVDJ89lWL9Q+n rZDAEvzjqR8m/0nHMgLaiMvXR4EbclNXPaGgiijF9zjoBsKdcjGfDWGkYzFaG/h+xnLs ZDI0y1AA4B8XBeJmVUUZLdqJhJtt90RPSdjGRwx7aM4MrEErKIs9W3vmo6fL0Mnm0oBI muZEakjmaFskim/faSKLydvWw31sCZnF/87JTKplvbTKsr9+T02VTaHO+4BveC1IFOl5 Y9tw== 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; bh=yatntrVjNOH1cXxg+TyXWzHXHNZ3Frt3LUgsMEJ4bhU=; b=ruohP5S5ZQYD3rVB6q9wqjSkjWNrJZXbX+qnJ33Lzs/l5SlZZgt2REY0Iwv7XU6ONV WlvuiTrdo4eQldQOtCM1e/p6PtpjMuPO2dZdX5/w7H0TX8qGJfHyakTzbhvahnmE7jQx Z2DRs0VOz+SRZ7OktRnvSaWpfnSthAW0LH8ixllMjPe14+4drYjPOwHbQQ8eIoj3tQ6S maZ0gttWPkryA1JYOkCkvnJ3v8Mp1vDrCVwgPq1d5qOLn8uCbUaJzI4thQwuBP79A/3C uwW1cXvj6qDXIZWYxwxCSbs1jJ52/sSNt/RxeVGtvHsW8QhHxe10jHUOAi7wO7ANG7Gn y5Gw== X-Gm-Message-State: ANhLgQ2o8349k+3q8J8bLmWpryvOnwfQtkg5DrV9JFDjeXHAG/6IRvWJ hauQONEbUdafPtxidUtQRBDYiQS5MVA= X-Received: by 2002:a63:7a02:: with SMTP id v2mr6471878pgc.13.1583398361211; Thu, 05 Mar 2020 00:52:41 -0800 (PST) Received: from ziqianlu-desktop.localdomain ([47.89.83.64]) by smtp.gmail.com with ESMTPSA id m59sm5588671pjb.41.2020.03.05.00.52.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2020 00:52:40 -0800 (PST) Date: Thu, 5 Mar 2020 16:52:31 +0800 From: Aaron Lu To: "Li, Aubrey" Cc: Tim Chen , Vineeth Remanan Pillai , Aubrey Li , Julien Desfossez , Nishanth Aravamudan , Peter Zijlstra , Ingo Molnar , Thomas Gleixner , Paul Turner , Linus Torvalds , Linux List Kernel Mailing , Dario Faggioli , =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker , Kees Cook , Greg Kerr , Phil Auld , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini Subject: Re: [RFC PATCH v4 00/19] Core scheduling v4 Message-ID: <20200305085231.GA12108@ziqianlu-desktop.localdomain> References: <20200225034438.GA617271@ziqianlu-desktop.localdomain> <67e46f79-51c2-5b69-71c6-133ec10b68c4@linux.intel.com> <20200305043330.GA8755@ziqianlu-desktop.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 05, 2020 at 02:10:36PM +0800, Li, Aubrey wrote: > On 2020/3/5 12:33, Aaron Lu wrote: > > On Wed, Mar 04, 2020 at 07:54:39AM +0800, Li, Aubrey wrote: > >> On 2020/3/3 22:59, Li, Aubrey wrote: > >>> On 2020/2/29 7:55, Tim Chen wrote: > > ... > >>>> In Vinnet's fix, we only look at the currently running task's weight in > >>>> src and dst rq. Perhaps the load on the src and dst rq needs to be considered > >>>> to prevent too great an imbalance between the run queues? > >>> > >>> We are trying to migrate a task, can we just use cfs.h_nr_running? This signal > >>> is used to find the busiest run queue as well. > >> > >> How about this one? the cgroup weight issue seems fixed on my side. > > > > It doesn't apply on top of your coresched_v4-v5.5.2 branch, so I > > manually allied it. Not sure if I missed something. > > Here is a rebase version on coresched_v5 Vineeth released this morning: > https://github.com/aubreyli/linux/tree/coresched_V5-v5.5.y-rc1 > > > > > It's now getting 4 cpus in 2 cores. Better, but not back to normal yet.. > > I always saw higher weight tasks getting 8 cpus in 4 cores on my side. > Are you still running 8+16 sysbench cpu threads? I used the wrong workload for high weight cgroup. After using sysbench for high weight cgroup, I also see the problem fixed. Sorry for the noise. P.S. I used redis-server as the high weight workload this morning, it has some softirq processing and I guess that makes things not as expected. Thanks, Aaron > > I replicated your setup, the cpuset with 8cores 16threads, cpu mode 8 sysbench > threads with cpu.shares=10240, 16 sysbench threads with cpu.shares=2, and here > is the data on my side. > > weight(10240) weight(2) > coresched disabled 324.23(eps) 356.43(eps) > coresched enabled 340.74(eps) 311.62(eps) > > It seems higher weight tasks win this time and lower weight tasks have ~15% > regression(not big deal?), did you see anything worse? > > Thanks, > -Aubrey