Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp16798ybx; Tue, 29 Oct 2019 13:36:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4ovpYUW2k/TdPG1KPjSeYP7oMYguCIkNpXav72h3ShudGUHQ8rgN2q1Zacuap6HsH+Ww1 X-Received: by 2002:a17:906:5407:: with SMTP id q7mr5423260ejo.24.1572381365989; Tue, 29 Oct 2019 13:36:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572381365; cv=none; d=google.com; s=arc-20160816; b=Zh3WTjsd7pIJWu3jl7jgb+3S413gt23z2GbZMfSHRbSpO6W2rbehAjUyVJ3MNx1fWm nLx4M1pLOHkPuxxg0+yizxBos76ehX+vjwOciGNIo6BZiskRwpo4cAFEaiwiyfmIRJbI A5dVxKP7qohEOoTVIPnV3J9kfhUx+reVVHP0pwUdwJlNi6BNv3Lnmj8POIDHWpy8SL2/ IuCWYQbFSJC5xHs8TAm2q3m4rmOus3Yg1Ap9m8qeY1mCI6OFep2ezuIY6a19L0rwE6fG VumA0sdKjGi0mCxSCOGVsVNXSHPixaS/UjLqRAVHt+7TboKzOeGlFMNYva+zSufoUpi5 INsQ== 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=3e7RG+yymRb8+UsDjN9H9kt+0y+nm/jojOW5ivlVFvw=; b=f0bxiLB+WSwBD6bzWszBnGhojQHStFiBZkK8U3gIGDr+NvInHSGJjCpyaG82vNPQOg HnpTYRGyHvR/K7y5EjIjEqnETLNMbV3oZGySxyB2Pf6SsPCRyZbGzffy1h/dyssFt+v7 S+MlruFqWrihTSRPKAyWHThqxO41fb+K+eBzoDnFPHys6Ro+h/HB7LDu67kiQKQqrFz1 40I3skhj4LGmPmlCDuPtF9voJssr5nFKAF0prHteB7WRsNuXFZ81qLEY+K8iZpDWStPJ dS8FNfUG+PSvxOFkBWQLfXGmz98tCejFx1tvXnnpZ74Nb3Q9XrFVvOnQ+npnL/hu6b6r n4uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digitalocean.com header.s=google header.b=efsmSO4Z; 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 m33si4907150edc.126.2019.10.29.13.35.42; Tue, 29 Oct 2019 13:36:05 -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=efsmSO4Z; 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 S1727041AbfJ2Ue6 (ORCPT + 99 others); Tue, 29 Oct 2019 16:34:58 -0400 Received: from mail-yw1-f68.google.com ([209.85.161.68]:39139 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726636AbfJ2Ue5 (ORCPT ); Tue, 29 Oct 2019 16:34:57 -0400 Received: by mail-yw1-f68.google.com with SMTP id k127so78302ywc.6 for ; Tue, 29 Oct 2019 13:34:55 -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=3e7RG+yymRb8+UsDjN9H9kt+0y+nm/jojOW5ivlVFvw=; b=efsmSO4ZMSKlzNExqN+trF4cPvgy7drS2gKPDQSANIsrX4igow0dM/O50BYeZbKDQM hiazdisICBi094slGKVMuxcYklIV2arLTepYlLiueeUMimvvjusFE9SSZRoC6ZOR/aoU +1dcTTm3FY/2R3dglgtSpuJI0IVzLNEfJFJWc= 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=3e7RG+yymRb8+UsDjN9H9kt+0y+nm/jojOW5ivlVFvw=; b=k6x6rk0pxzrDom/cMyrsCdU4dVZ50wbze8NjIWbEJfPEAs5ojWu5loCHelxZ+nD454 6zdqXFIT9vXED3IpiKxPg5F7yVHDHEdAjgscrMFIKM3iY/qdOZw71RnqWqk/8DO62akQ WZEQSCzuRY3cT2v/BOv5NkVbLBEBjgTSdhRhg/E7LuoBp328w37FweO9hMdFgQnJrgyr J7XfYlN1dN9ogMrwOIp4cwQD0oT2VD4ONhe5pxil5mdV0vmghuIurEOaXwM4clVsCT43 WLoZRInCKUtDFLcrAMoXU4BASp26q2+zuXjLDyN7XKcO/kPO46DudMFX2IebmWAzFx6N +jyg== X-Gm-Message-State: APjAAAX0rReDhrgS6u1pm82DzN3NGkSxpuEEaeDrr8xEZNfP6Ro3IH1g tfGuXDR+VF5oCGB03s3gBhbOZg== X-Received: by 2002:a81:bd05:: with SMTP id b5mr19023466ywi.243.1572381295382; Tue, 29 Oct 2019 13:34:55 -0700 (PDT) Received: from sinkpad (192-222-189-155.qc.cable.ebox.net. [192.222.189.155]) by smtp.gmail.com with ESMTPSA id l68sm4501863ywf.95.2019.10.29.13.34.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 Oct 2019 13:34:54 -0700 (PDT) Date: Tue, 29 Oct 2019 16:34:47 -0400 From: Julien Desfossez To: Dario Faggioli Cc: Aaron Lu , Aubrey Li , Tim Chen , "Li, Aubrey" , Subhra Mazumdar , Vineeth Remanan Pillai , Nishanth Aravamudan , Peter Zijlstra , Ingo Molnar , Thomas Gleixner , Paul Turner , Linus Torvalds , Linux List Kernel Mailing , =?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 v3 00/16] Core scheduling v3 Message-ID: <20191029203447.GA13345@sinkpad> References: <69cd9bca-da28-1d35-3913-1efefe0c1c22@linux.intel.com> <20190911140204.GA52872@aaronlu> <7b001860-05b4-4308-df0e-8b60037b8000@linux.intel.com> <20190912120400.GA16200@aaronlu> <20190915141402.GA1349@aaronlu> <277737d6034b3da072d3b0b808d2fa6e110038b0.camel@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Mailer: Mutt 1.9.4 (2018-02-28) User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29-Oct-2019 10:20:57 AM, Dario Faggioli wrote: > > Hello, > > > > As anticipated, I've been trying to follow the development of this > > feature and, in the meantime, I have done some benchmarks. > > > > I actually have a lot of data (and am planning for more), so I am > > sending a few emails, each one with a subset of the numbers in it, > > instead than just one which would be beyond giant! :-) > > Hi Dario, Thank you for this comprehensive set of tests and analyses ! It confirms the trend we are seeing for the VM cases. Basically when the CPUs are overcommitted, core scheduling helps compared to noHT. But when we have I/O in the mix (sysbench-oltp), then it becomes a bit less clear, it depends if the CPU is still overcommitted or not. About the 2nd VM that is doing the background noise, is it enough to fill up the disk queues or is its disk throughput somewhat limited ? Have you compared the results if you disable the disk noise ? Our approach for bare-metal tests is a bit different, we are constraining a set of processes only on a limited set of cpus, but I like your approach because it pushes more the number of processes against the whole system. And I have no explanation for why sysbench thread vs process is so different. And it also confirms, core scheduling has trouble scaling with the number of threads, it works pretty well in VMs because the number of threads is limited by the number of vcpus, but the bare-metal cases show a major scaling issue (which is not too surprising). I am curious, for the tagging in KVM, do you move all the vcpus into the same cgroup before tagging ? Did you leave the emulator threads untagged at all time ? For the overhead (without tagging), have you tried bisecting the patchset to see which patch introduces the overhead ? it is more than I had in mind. And for the cases when core scheduling improves the performance compared to the baseline numbers, could it be related to frequency scaling (more work to do means a higher chance of running at a higher frequency) ? We are almost ready to send the v4 patchset (most likely tomorrow), it has been rebased on v5.3.5, so stay tuned and ready for another set of tests ;-) Thanks, Julien