Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4259507pxv; Tue, 27 Jul 2021 02:55:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwcD/8mD+VsoLM5Wnzqu2FtPqR7MhoaKezkHemfrdqgIfHsnQknK8Wk0V72BtUj1Kb51Z3 X-Received: by 2002:a05:6638:410e:: with SMTP id ay14mr20721462jab.2.1627379746780; Tue, 27 Jul 2021 02:55:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627379746; cv=none; d=google.com; s=arc-20160816; b=uV2sdOl6P6dJr4bj6wQiGB1apatJvEMP2/TuBPGkOf7HI0DoquX7iq9zKvUEnQ0bOQ UeKoMKRazPOsYkYnXQEiRZlw+yzw3UXqq7EbZRk0rutYmutSUyVc+xSDkxIjz3wBZ5be 7uz5H8PXavWW25/wcBZOiWRwQjL+ZMXkXzOjzfd8HkWQthzxJC/Eabbsa/ZG5FGNvv5F CZdpXUM6lkkBBu+poJAGvzgsAAd0XvjKg8HCOqckZ1VYiyfJcui2pHAceP8nHhznT25l rBOkv+BWe1bQgvRRv/niIFEWtY3d+xi2AD1jKGV0gsEjAn64c+zmoNVjiEF81oBTpnIV Rjag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xHaIGZcgG1l1kYUR2GlnOuG/Etl6l+xUZifRAQb39Gw=; b=k4nW+L3V/YoZLOqj8O3WtUuc97maUlGNQLobufopEPJvpJggPr2ynYAQuN9gwqD7C4 7lvNp2a2LVlRZaBj0Sv+MyNF/9z3UjdJndB7hgtp/xQ5w9eB/nIFKV+U9J/NCgRl5+S8 JZ/q9ewOOmgp3P9NccmbDe99LtXICHuI7Jrq/4Ivpn+rW7j0KgSCDQ8bSSRkVA8H26nB L83n9QKC8dNJUUyEg5mhk3B/KIWZgcVBUkDDlnEyyKpIDnj44okVKce6DtUAGWgM8cTD jIhYGwjKES0IPBPiEEfO98TyLxquip7EYJeEmj2MKZPX6La9hwjlSMNT326zzSvo45ng fzgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=UsBXcQCQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o22si3014217jat.98.2021.07.27.02.55.35; Tue, 27 Jul 2021 02:55:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=UsBXcQCQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236063AbhG0Jyu (ORCPT + 99 others); Tue, 27 Jul 2021 05:54:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235993AbhG0Jyu (ORCPT ); Tue, 27 Jul 2021 05:54:50 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B19B5C061757 for ; Tue, 27 Jul 2021 02:54:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=xHaIGZcgG1l1kYUR2GlnOuG/Etl6l+xUZifRAQb39Gw=; b=UsBXcQCQt/4qmULQixZYqdaiMK Vz5tVXBIJXmZR3A6sMkznpYugzmqj+STI5HmCCNZ3AHgqalLaT4BoGF6g5xXooERbo6fMlqqHTKv8 +zZ/NLY/WB9B3IwJKwFpXJ4JnPjcn+UtkJicIYgwFWzj+ZaGYfUUmpXJXVzm0xoFsGQbTRTULSl6V UY44pgpPhLaESAD5FZ2HDyOQB4hV/sdfSEK6PHHeHHX7uhcyaz11y9BM8gu+kN5Ta8zjsQBcBek5M dCXB8cUcyuzbW6/Hc+a5xGUvHraXltDeYIacVIksIjrMeTMahAAEWJ06gYOseUauYCxNraknK+H1k 86tmBUGw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1m8JnM-003PQA-8u; Tue, 27 Jul 2021 09:54:40 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id CCDDA300233; Tue, 27 Jul 2021 11:54:38 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id BA9CB202492DB; Tue, 27 Jul 2021 11:54:38 +0200 (CEST) Date: Tue, 27 Jul 2021 11:54:38 +0200 From: Peter Zijlstra To: Joel Fernandes Cc: "Rajendran, Jaishankar" , Dario Faggioli , Vineeth Pillai , "linux-kernel@vger.kernel.org" , "Mallikarjun Chegaraddi, Raju" Subject: Re: Core Scheduling - Concurrent VMs Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 26, 2021 at 11:57:21AM -0400, Joel Fernandes wrote: > Hi, > +Dario Faggioli and +Vineeth Pillai as well. > > On Mon, Jul 26, 2021 at 1:41 AM Rajendran, Jaishankar > wrote: > > > > Refer to the below experiments performed using Core Scheduling for Concurrent VMs and we found the benchmark scores executed in different VMs are > > degrading after enablement of Core Scheduling. Both the host and guest are enabled with Core Scheduler > > Why are you running core scheduling within the guest? Only the host > needs it and you tag vCPU threads in the host. Within the guest you > don't need it (and it probably doesn't make sense unless you pin the > vCPU threads to individual physical hardware threads). Correct, in-guest core-scheduling only works if there's an in-guest topology, which requires pinning vcpu threads and sacrificing a chicken on the altar of qemu to get the right incantation such that the guest actually receives the right topology. Nested core scheduling hurts my head. > I don't think these commands can really tell you that core scheduler > is working or not. They are too coarse grained. You would need to look > at it through ftrace scheduling events. Core scheduling will still > allow differently tagged threads to use a core, it is just that it > wont allow it simultaneously. Right, you need tracing to verify it actually works, no real alternative there.