From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: [PATCH 15/16] xen: sched: scratch space for cpumasks on Credit2 Date: Thu, 24 Mar 2016 14:10:34 +0100 Message-ID: <1458825034.5082.32.camel@citrix.com> References: <20160318185524.8117.74837.stgit@Solace.station> <20160318190601.8117.67010.stgit@Solace.station> <56EC56B1.7040907@citrix.com> <56F3E123.7030808@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0873463448209237786==" Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aj52R-0000wL-BX for xen-devel@lists.xenproject.org; Thu, 24 Mar 2016 13:10:59 +0000 In-Reply-To: <56F3E123.7030808@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: George Dunlap , Andrew Cooper , xen-devel@lists.xenproject.org Cc: George Dunlap List-Id: xen-devel@lists.xenproject.org --===============0873463448209237786== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-YgAQnR94NnxYbilMMmOU" --=-YgAQnR94NnxYbilMMmOU Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2016-03-24 at 12:44 +0000, George Dunlap wrote: > On 18/03/16 19:27, Andrew Cooper wrote: > > This avoids all this opencoded allocation/refcounting, the chance > > that > > starting a scheduler would fail for memory reasons, and one extra > > cpumask in the per-cpu data area won't break the bank. > Going a bit further, since (according to the changelog) both credit1 > and > rtds also do this, would it make sense to have schedule.c define > these, > and allow any of the schedulers to use them? >=20 Yeah, well, I guess it could. > (Assuming that both credit1 and rtds allocate exactly one mask per > cpu.) >=20 They do. The only difference between credit1 and the other two is that credit1 already has a per-cpu private scheduler structure (csched_pcpu, where also the runqueue is), and the mask has been put there, so it's handled a little bit differently. But it should be no problem turning it into using a mask from schedule.c, in the same way that RTDS and Credit2 will do. I like the idea, and I'm up for it for v2. Thanks and Regards, Dario --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-YgAQnR94NnxYbilMMmOU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEABECAAYFAlbz50oACgkQk4XaBE3IOsRUZACfezjo+MhE7Tm5qd8wNLHNdQQ+ Jt8AnisoZwlc7ijgnUnimio08tgi2ENN =FKQW -----END PGP SIGNATURE----- --=-YgAQnR94NnxYbilMMmOU-- --===============0873463448209237786== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwOi8vbGlzdHMueGVuLm9y Zy94ZW4tZGV2ZWwK --===============0873463448209237786==--