From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: [PATCH] credit: Change default timeslice to 5ms Date: Wed, 5 Mar 2014 19:04:26 +0100 Message-ID: <1394042666.16409.46.camel@Solace> References: <1394036976-484-1-git-send-email-george.dunlap@eu.citrix.com> <53175C5C.4060505@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3844813952862935913==" Return-path: In-Reply-To: <53175C5C.4060505@citrix.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: David Vrabel Cc: Marcus Granado , Keir Fraser , George Dunlap , Tim Deegan , xen-devel@lists.xen.org, Jan Beulich List-Id: xen-devel@lists.xenproject.org --===============3844813952862935913== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-WYfpEsFwgZ8X7cL0MBii" --=-WYfpEsFwgZ8X7cL0MBii Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On mer, 2014-03-05 at 17:18 +0000, David Vrabel wrote: > On 05/03/14 16:29, George Dunlap wrote: > > --- a/xen/common/sched_credit.c > > +++ b/xen/common/sched_credit.c > > @@ -29,9 +29,9 @@ > > * Basic constants > > */ > > #define CSCHED_DEFAULT_WEIGHT 256 > > -#define CSCHED_TICKS_PER_TSLICE 3 > > -/* Default timeslice: 30ms */ > > -#define CSCHED_DEFAULT_TSLICE_MS 30 > > +#define CSCHED_TICKS_PER_TSLICE 1 >=20 > The TICKS_PER_TSLICE change doubles the tick rate. Is this intentional? > It's not mentioned in the commit message. >=20 Well, I guess higher tick rate is exactly what you expect from reducing the timeslice... otherwise, you could not be able to enforce the timeslice boundaries precisely, could you? It's unavoidable, I think: if you stick with a tick every 30ms/3=3D10ms, how can you enforce a timeslice of 5ms? Regards, Dario --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-WYfpEsFwgZ8X7cL0MBii 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.0.22 (GNU/Linux) iEYEABECAAYFAlMXZyoACgkQk4XaBE3IOsRatgCfQyFvr+CQwry9W0VG985wcHwz FJkAniBBttFU+8VOs83fZDj3VvF0Q1Wc =KW9F -----END PGP SIGNATURE----- --=-WYfpEsFwgZ8X7cL0MBii-- --===============3844813952862935913== 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 --===============3844813952862935913==--