From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F2CAC06510 for ; Tue, 2 Jul 2019 09:42:41 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 255FF20645 for ; Tue, 2 Jul 2019 09:42:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 255FF20645 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hiFIq-0007UJ-Gc; Tue, 02 Jul 2019 09:42:20 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hiFIp-0007UB-Iv for xen-devel@lists.xenproject.org; Tue, 02 Jul 2019 09:42:19 +0000 X-Inumbo-ID: a484d99a-9cad-11e9-a47a-039418e34cad Received: from m4a0039g.houston.softwaregrp.com (unknown [15.124.2.85]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id a484d99a-9cad-11e9-a47a-039418e34cad; Tue, 02 Jul 2019 09:42:15 +0000 (UTC) Received: FROM m4a0039g.houston.softwaregrp.com (15.120.17.146) BY m4a0039g.houston.softwaregrp.com WITH ESMTP; Tue, 2 Jul 2019 09:38:28 +0000 Received: from M4W0335.microfocus.com (2002:f78:1193::f78:1193) by M4W0334.microfocus.com (2002:f78:1192::f78:1192) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Tue, 2 Jul 2019 09:40:53 +0000 Received: from NAM05-DM3-obe.outbound.protection.outlook.com (15.124.8.10) by M4W0335.microfocus.com (15.120.17.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10 via Frontend Transport; Tue, 2 Jul 2019 09:40:53 +0000 Received: from DM5PR18MB1499.namprd18.prod.outlook.com (10.175.220.20) by DM5PR18MB2230.namprd18.prod.outlook.com (52.132.143.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2032.20; Tue, 2 Jul 2019 09:40:53 +0000 Received: from DM5PR18MB1499.namprd18.prod.outlook.com ([fe80::859b:66e:c904:21cc]) by DM5PR18MB1499.namprd18.prod.outlook.com ([fe80::859b:66e:c904:21cc%10]) with mapi id 15.20.2008.020; Tue, 2 Jul 2019 09:40:53 +0000 From: Dario Faggioli To: Jan Beulich , Juergen Gross Thread-Topic: [PATCH 13/60] xen/sched: move some per-vcpu items to struct sched_unit Thread-Index: AQHVMBZ1o3Yy0YSI1EOsynhkarGQtKa13jUXgAAJ1wCAAPcUfIAAF4wAgAAHhYCAAAIrAIAAE+cA Date: Tue, 2 Jul 2019 09:40:52 +0000 Message-ID: References: <45139cf0-0b53-1ca2-c8b2-2c2e8813a82d@suse.com> <0bb81eb9-8303-2dae-2fba-28c73ac74050@suse.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-clientproxiedby: MR2P264CA0034.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500::22) To DM5PR18MB1499.namprd18.prod.outlook.com (2603:10b6:3:144::20) authentication-results: spf=none (sender IP is ) smtp.mailfrom=dfaggioli@suse.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [89.186.78.87] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c4d806ca-5242-4132-3741-08d6fed15f8d x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(49563074)(7193020); SRVR:DM5PR18MB2230; x-ms-traffictypediagnostic: DM5PR18MB2230: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2887; x-forefront-prvs: 008663486A x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(4636009)(376002)(136003)(39860400002)(396003)(346002)(366004)(199004)(189003)(4326008)(6506007)(102836004)(5660300002)(53376002)(53366004)(386003)(52116002)(25786009)(86362001)(76176011)(6246003)(11346002)(99286004)(53546011)(81166006)(36756003)(26005)(2616005)(6306002)(53936002)(486006)(478600001)(7416002)(446003)(476003)(256004)(66066001)(6436002)(6486002)(186003)(6512007)(6636002)(305945005)(68736007)(229853002)(64756008)(66556008)(110136005)(8936002)(316002)(14454004)(966005)(2906002)(7736002)(6116002)(99936001)(66946007)(73956011)(3846002)(71190400001)(71200400001)(118296001)(66616009)(54906003)(66446008)(66476007)(81156014)(8676002); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR18MB2230; H:DM5PR18MB1499.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: suse.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: lLkqCXa65oTluBE0OCj6VX3DG8W2Kh9xpwAMixp6SKgukAU+cFVrDEbtEDtgMpPVJGzIE2hHEJW+kb4iiyaNp5LyFgdwmbDmoCNMxhGrvMDz2zxfNpM6Q2oJuCfA/N6Q90ZD1ThHPigKUkrQmVA7lHUZuIXRKLb4csXQH2CCxHi1nX6hcH0Vjb475DPz9lv3OS/2xUlbTbTxOCEJh0BBZWNEhT/Dof4vAIkHquCV0JQZx0MLdEm5MeVhcYNmt6w2aPvQN3II4hPU6sxT1M24RCjyWx7dJIpG0U97BokVK1louLUveBjKP6Q0IS6J/cR4dqGX4sHn31MsPR5mqBZpz+JgZEuU/CHpu0W8s3Ke7vPKUnJhOC3r/Zv6fbR1PqL2gXS2xgkHIW4CpmFjL7+ErZQZb/7vOG3DIkqIjstEk8o= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: c4d806ca-5242-4132-3741-08d6fed15f8d X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jul 2019 09:40:52.8017 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 856b813c-16e5-49a5-85ec-6f081e13b527 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: dfaggioli@suse.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR18MB2230 X-OriginatorOrg: suse.com Subject: Re: [Xen-devel] [PATCH 13/60] xen/sched: move some per-vcpu items to struct sched_unit X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Wei Liu , Konrad Wilk , George Dunlap , Andrew Cooper , Tim Deegan , Julien Grall , Meng Xu , "xen-devel@lists.xenproject.org" , Ian Jackson , Roger Pau Monne Content-Type: multipart/mixed; boundary="===============3683619623386448541==" Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" --===============3683619623386448541== Content-Language: en-US Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="=-AzQKgO+Yd6UVi1+SOaml" --=-AzQKgO+Yd6UVi1+SOaml Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2019-07-02 at 08:29 +0000, Jan Beulich wrote: > On 02.07.2019 10:21, Dario Faggioli wrote: > > On Tue, 2019-07-02 at 07:54 +0000, Jan Beulich wrote: > > >=20 > > > And again - if someone pins every vCPU to a single pCPU, that > > > last > > > such pinning operation will be what takes long term effect. Aiui > > > all > > > vCPU-s in the unit will then be pinned to that one pCPU, i.e. > > > they'll either all compete for the one pCPU's time, or only one > > > of > > > them will ever get scheduled. > > >=20 > > I'm not sure I'm getting this. On an, say, SMT system, with 4 > > threads > > per core, a unit is 4 vCPUs and a pCPU is 4 threads. >=20 > No, the meaning of pCPU is a single thread of a single core. I.e. > what is represented by a single cpumask_t bit. > Fine, let's continue to call that a pCPU. Then, when core-scheduling is enabled, there's no <>. There's units of 4 vCPUs being pinned to 4 pCPUs (the 4 pCPUs of a core, not 4 random, nor arbitrary, ones). That is the point, AFAIUI. Regards --=20 Dario Faggioli, Ph.D http://about.me/dario.faggioli Virtualization Software Engineer SUSE Labs, SUSE https://www.suse.com/ ------------------------------------------------------------------- <> (Raistlin Majere) --=-AzQKgO+Yd6UVi1+SOaml Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEES5ssOj3Vhr0WPnOLFkJ4iaW4c+4FAl0bJpwACgkQFkJ4iaW4 c+7gGA//RbVmBWUgo1E0yAruue7tCnHEZL9PrO0Ql4bj3v2YqOgX0O8paIf0ia1H BzhAWS3FTWIdCWEJoJI62ZRozxGgVyUQ0KZdpnnGvLBsZSoiaAcsudze7Bdun/UK ppq+65P40iGr/vl8/fMqgrgcu3eOsSSorcfNUkEFPpN6zghZDASB5ak9GXOSDrX2 m7HKNzGYbz4OT2S8QjMIlxoAx4p2ytok7uPIroa5Hq3KIRXL6S/S3QLU5h3zNaF+ DN3d2DP2LgdfSaGLCQjS3nmXpiCJRN8AqqUMZLG+6PGuUtDTu/VcdAN9LSFZJEGl bEBhAboTxsSPnTbPPZFKoarQ0zrnEDVlJQfL1R8SPg+U/ecvDX3q3JtY5rctbF10 A8UkokwN3u1blVf6wJKVt5fP8Nbi7emkrLP2PpDfuC2++sVREWwcXmKjsR/XfBjG /wnLkQIyeEMOug5Agk1c3KUbS/0kP/rl1Hdq2cDFrY5gD0JDxhpDhtcZ48A4KwRT g4z2hc2X/XBCWwmmRmNyVs6Hb5e1beqVbrRl4ZYxCPHrH0Ts8LV4YeognSXvSM0W EDE9jtYAD4vHDhWJdL7KDwc/fXd3hoolAr4qG1CRc5rsZz4Fq4jV3crITLOXkMZX rFLqB5A4ax/I9toYMKQqVTCcAWabrV5lzm98+3TyNlHbtTyZVBU= =Teht -----END PGP SIGNATURE----- --=-AzQKgO+Yd6UVi1+SOaml-- --===============3683619623386448541== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cHM6Ly9saXN0 cy54ZW5wcm9qZWN0Lm9yZy9tYWlsbWFuL2xpc3RpbmZvL3hlbi1kZXZlbA== --===============3683619623386448541==--