Date: Wed, 4 Nov 2015 01:30:32 +0100 From: Gilles Chanteperdrix Message-ID: <20151104003032.GB24848@hermes.click-hack.org> References: <55E7F013.10101@free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <55E7F013.10101@free.fr> Subject: Re: [Xenomai] intel turbo boost List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?St=E9phane?= ANCELOT Cc: "xenomai@xenomai.org" On Thu, Sep 03, 2015 at 09:00:36AM +0200, St=E9phane ANCELOT wrote: > Hi, >=20 > Do you think I can use the Intel integrated turbo boost mode, without=20 > problems. >=20 > I have this nice processor : > http://ark.intel.com/fr/products/76308/Intel-Core-i5-4300U-Processor-3M-C= ache-up-to-2_90-GHz Just experimented this, the turbo mode is a problem for applications which rely on a precise relation between the actual count of cpu cycles of a busy loop and the time. The sched_quota falls under that category and simply does not work reliably when turbo mode is enabled. Fortunately, it is possible to turn off turbo mode. For that, in the kernel configuration - enable CPU_FREQ - choose performance mode by default - enable intel pstate driver - echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo Other than that, turbo mode does not seem to break the latency, which would mean that the tsc frequency does not change with turbo mode. --=20 Gilles. https://click-hack.org