From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: [PATCH v4 13/15] xl: enable getting and setting soft Date: Tue, 3 Dec 2013 12:14:54 +0100 Message-ID: <1386069294.5338.282.camel@Solace> References: <20131122183332.11200.20231.stgit@Solace> <20131122185824.11200.88571.stgit@Solace> <1385564255.30237.30.camel@kazak.uk.xensource.com> <1386007846.5338.213.camel@Solace> <1386063177.16012.34.camel@kazak.uk.xensource.com> <1386066474.5338.251.camel@Solace> <1386068399.13256.4.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4143674222220783099==" Return-path: In-Reply-To: <1386068399.13256.4.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Marcus Granado , Keir Fraser , Jan Beulich , Li Yechen , George Dunlap , Andrew Cooper , Juergen Gross , Ian Jackson , xen-devel@lists.xen.org, Matt Wilson , Justin Weaver , Elena Ufimtseva List-Id: xen-devel@lists.xenproject.org --===============4143674222220783099== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-sOGj0a6RmPDIR5PHSBdM" --=-sOGj0a6RmPDIR5PHSBdM Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On mar, 2013-12-03 at 10:59 +0000, Ian Campbell wrote: > On Tue, 2013-12-03 at 11:27 +0100, Dario Faggioli wrote: > > On mar, 2013-12-03 at 09:32 +0000, Ian Campbell wrote: > > > Another option would be to take two affinities on the command line, t= he > > > first being hard and the second soft with some special syntax ("-"?) = for > > > "leave it alone". > > >=20 > > Mmm... I think I like this better. So, if we take the approach > > implemented in this patch right now, and introduce something like that > > later, here's what we'd get: > >=20 > > 1. xl vcpu-pin 3 all 4-6 : hard affinity for all dom3 vcpus --> 4-6 >=20 > You mean soft don't you? And also hard -> all, not left alone. >=20 Aha! :-) Actually, the 'all' here (and below) refers to "what dom3's vcpu(s)"? xl vcpu-pin So, no, I did mean hard and, more specifically, I included that example because that is what is being used right now (and I mean _right_now_ so before this series), and that we both agreed should continue working. Now that you made me thinking about this, going this way we risk to have something like: xl vcpu-pin 3 all all all which may not exactly look crystal-clear... > > 2. xl vcpu-pin -s 3 all 3,5 : soft affinity for all dom3 vcpus --> 3,5 >=20 > I think if you give -s then you should expect only one cpumap, which > would be the soft affinity map. >=20 Same here. Another example could be: xl vcpu-pin -s 3 0 3,5 which has indeed only one cpumap, "3,5", while the "0" means vcpu #0 doma domain 3. > > Would that be ok? >=20 > I like it. >=20 So, is this still true? :-D Dario --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-sOGj0a6RmPDIR5PHSBdM 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 v1.4.15 (GNU/Linux) iEYEABECAAYFAlKdvS4ACgkQk4XaBE3IOsQAtwCfYH9l+9eBjPFaZybxyTLHL7ZF nHoAn3UVda7OUYdjwN9TTODgRdmTnXSZ =1dOZ -----END PGP SIGNATURE----- --=-sOGj0a6RmPDIR5PHSBdM-- --===============4143674222220783099== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============4143674222220783099==--