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=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 6FE2BC31E46 for ; Wed, 12 Jun 2019 10:41:35 +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 4EC982082C for ; Wed, 12 Jun 2019 10:41:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4EC982082C 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 1hb0gy-0002xz-Jz; Wed, 12 Jun 2019 10:41: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 1hb0gx-0002xu-8I for xen-devel@lists.xenproject.org; Wed, 12 Jun 2019 10:41:19 +0000 X-Inumbo-ID: 99abed74-8cfe-11e9-9a44-ef97507ac55c Received: from smtp.nue.novell.com (unknown [195.135.221.5]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 99abed74-8cfe-11e9-9a44-ef97507ac55c; Wed, 12 Jun 2019 10:41:14 +0000 (UTC) Received: from emea4-mta.ukb.novell.com ([10.120.13.87]) by smtp.nue.novell.com with ESMTP (TLS encrypted); Wed, 12 Jun 2019 12:41:13 +0200 Received: from [192.168.0.36] (nwb-a10-snat.microfocus.com [10.120.13.202]) by emea4-mta.ukb.novell.com with ESMTP (TLS encrypted); Wed, 12 Jun 2019 11:41:01 +0100 Message-ID: <16945c82f54c6265f17d293d1bf580d3d0018dd9.camel@suse.com> From: Dario Faggioli To: Andrii Anisov , xen-devel@lists.xenproject.org Date: Wed, 12 Jun 2019 12:40:59 +0200 In-Reply-To: <1560332150-27712-1-git-send-email-andrii.anisov@gmail.com> References: <1560332150-27712-1-git-send-email-andrii.anisov@gmail.com> Organization: SUSE User-Agent: Evolution 3.32.2 MIME-Version: 1.0 Subject: Re: [Xen-devel] [PATCH v4] schedule: move credit scheduler specific member to its privates 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 , Andrii Anisov , Wei Liu , Konrad Rzeszutek Wilk , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Julien Grall , Jan Beulich Content-Type: multipart/mixed; boundary="===============5708165275177695916==" Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" --===============5708165275177695916== Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-FIMOanSsD6+bfJbR42mT" --=-FIMOanSsD6+bfJbR42mT Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2019-06-12 at 12:35 +0300, Andrii Anisov wrote: > From: Andrii Anisov >=20 > The vcpu structure member last_run_time is used by credit scheduler > only. > In order to get better encapsulation, it is moved from a generic > structure to the credit scheduler private vcpu definition. Also, > rename > the member to last_sched_time in order to reflect that it is the time > when the vcpu went through the scheduling path. >=20 > With this move we have slight changes in functionality: > - last_sched_time is not updated for an idle vcpu. But the idle vcpu > is, > in fact, a per-pcpu stub and never migrates so last_sched_time is > meaningless for it. > - The value of last_sched_time is updated on every schedule, even if > the > vcpu is not being changed. It is still ok, because last_sched_time > is > only used for runnable vcpu migration decision, and we have it > correct > at that moment. Scheduling parameters and statistics are tracked > by > other entities. >=20 > Reducing code and data usage when not running credit scheduler is > another > nice side effect. >=20 > While here, also: > - turn last_sched_time into s_time_t, which is more appropriate. > - properly const-ify related argument of > __csched_vcpu_is_cache_hot(). >=20 > Signed-off-by: Andrii Anisov > Reviewed-by: Dario Faggioli Thanks and Regards --=20 Dario Faggioli, Ph.D http://about.me/dario.faggioli Virtualization Software Engineer SUSE Labs, SUSE https://www.suse.com/ ------------------------------------------------------------------- <> (Raistlin Majere) --=-FIMOanSsD6+bfJbR42mT 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+4FAl0A1rsACgkQFkJ4iaW4 c+6wmA//V3YcWPmr7PGDuBWRYL6NjIw91529bWP7HqyplMuivBR6EBg51o8++a2g bh8BdNtN5v56GSxtV/RRxzww3VdHQVDrMs8m2j9js0NBLLjkWK0rezptyVUmLsGn dWzk5xcbCwZrVrAQvpswwqFOzYmqCEBWbr2nPnZtl6cUBZgs+e6cISbNOXclKYsd gL+D1Y5OR1U2cNLmMNujiLqNccIjLBIvQx7kBEDhzycnYM8bJw/Cn3uUEh+9VDpQ 1/9QcIldefdYVrdzivTtZmPorjjg0hWKRptXWZGn/od67OopQqWPz+Zwd5k24jR8 kyHJ54EMAGkWxnXhhMzgPXg7z5IC7YG57lHuU4HqiPUiPKcWKieEcnKomLQHbwkE m5KK3kkLW8gEyTJ04F8rNLp3rLV4esTEioQVDHuhk7/nows/KfbWD/bsGmkCVRuz u3SBGrwyu3PDGIJtVNPUD7DTSn6R5ZT6ilX4gWNLlxV/2OLt+12p0AVOEoaZhouR oB9KZ3iiw/Fdc23NaFwxDVlJPQbQ0iGq95l6ctt+llXa0WsY6S45mbAfIpgzke7b ogD4OY3VB3n/kPZ2tcBQfqbff9b41VL5sO6kCSSSm2FNTOxhPE18QYdYPOVvbPIR op04KaR2+AKIVdGOlBJ0Ib6Z2Yj4S6kcyTxqg4XVs32YjBlp+Qg= =N8QJ -----END PGP SIGNATURE----- --=-FIMOanSsD6+bfJbR42mT-- --===============5708165275177695916== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cHM6Ly9saXN0 cy54ZW5wcm9qZWN0Lm9yZy9tYWlsbWFuL2xpc3RpbmZvL3hlbi1kZXZlbA== --===============5708165275177695916==--