Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5316894ybf; Wed, 4 Mar 2020 22:11:21 -0800 (PST) X-Google-Smtp-Source: ADFU+vsQcEMVpddpxSbCDnMiRv/4eSOkM3Poyey7krfxDSC1QzxmmFEyRy6kMX9BZamOC65SliCv X-Received: by 2002:a9d:282:: with SMTP id 2mr5366122otl.178.1583388681244; Wed, 04 Mar 2020 22:11:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583388681; cv=none; d=google.com; s=arc-20160816; b=FUNxae8pQaV4QsJNouuiZ5Qvi96dUDqBWMGoRd5RNEeMozyz09kyHcRZog1AdIGLog ufjfrb4hXCAB+aFf1R+5lCecGHQfhq3uerolB8MApR5qo4hhfK4M66Z7H8YVUx6yLT+w X+nfrqmW3Gu86EYTQi+JTAypglJciQ5mFsdg9/tis4SLrOh7yctjE6xLh46E/oRUCMt3 kWpntTPndQCdNct+QS66P8HZYtti5kxb0wWJsjflk9FU39Y5fan0u9W6ZLMyOTj7t1FA 6BV3hIcIeLI5iXMZ9Qj9LfUCr1xbDI3FQ1I5c377QzVguSh/A4fIT3A40D8PZ/TWdrvc ltIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=gq8KRf36BW5e5fbL//85UDRxrtbrMyZN9g0jEuh8p3U=; b=cZl+1ziThf/ZqucW09uUXVZQk4BNOclnYYrWodL5ouoCkkD5FEnoXJccrsLiDhFmKi RPtsJwZObHBV/rBnPvGcDaufxaD3WidV32IVU7XxN/q7+P+vGWG6oXAaKuqydJRPEKJn pIhdMVtTADNatDc0HidHsJcY8F8zeojJiujSEdSVCuA+7C+U1iYYcgk3c2rvkkc08oaq Z/3KfBawwcBtsmJan/+LultppS7nRxjsVff6HVE39bRmPX62zBgP+ggg01+iKJ3s2ZTb gIdVEJ+NP6NGc/bgXx0zf1zSqwZWSzVWpfwbxmno1KqJinRi3aL4Gn9Tjq30NNWqDlLr v4dQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 48si3030850otv.320.2020.03.04.22.11.09; Wed, 04 Mar 2020 22:11:21 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726141AbgCEGKm (ORCPT + 99 others); Thu, 5 Mar 2020 01:10:42 -0500 Received: from mga11.intel.com ([192.55.52.93]:54268 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725924AbgCEGKl (ORCPT ); Thu, 5 Mar 2020 01:10:41 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Mar 2020 22:10:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,516,1574150400"; d="scan'208";a="352289689" Received: from cli6-desk1.ccr.corp.intel.com (HELO [10.239.161.118]) ([10.239.161.118]) by fmsmga001.fm.intel.com with ESMTP; 04 Mar 2020 22:10:37 -0800 Subject: Re: [RFC PATCH v4 00/19] Core scheduling v4 To: Aaron Lu 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 , =?UTF-8?B?RnLDqWTDqXJpYyBXZWlzYmVja2Vy?= , Kees Cook , Greg Kerr , Phil Auld , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini References: <20200212230705.GA25315@sinkpad> <29d43466-1e18-6b42-d4d0-20ccde20ff07@linux.intel.com> <20200225034438.GA617271@ziqianlu-desktop.localdomain> <67e46f79-51c2-5b69-71c6-133ec10b68c4@linux.intel.com> <20200305043330.GA8755@ziqianlu-desktop.localdomain> From: "Li, Aubrey" Message-ID: Date: Thu, 5 Mar 2020 14:10:36 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: <20200305043330.GA8755@ziqianlu-desktop.localdomain> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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