<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Modartt user forum - Latency and Linux]]></title>
		<link>https://forum.modartt.com/viewtopic.php?id=4288</link>
		<description><![CDATA[The most recent posts in Latency and Linux.]]></description>
		<lastBuildDate>Wed, 28 Dec 2016 13:41:13 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Latency and Linux]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=946224#p946224</link>
			<description><![CDATA[<div class="quotebox"><cite>alessandro wrote:</cite><blockquote><p>Running Pianoteq on an i5, you&#039;ll probably have the same latency in Windows and in Linux. No need to change.</p><p>If you really like computers, though, I think that exploring different operating systems is something that will enrich your knowledge a lot. Start with a popular distribution (any Ubuntu variant), test an audio-specific distro (e.g. KXStudio, AVLinux), dive deep with Arch... Then explore the alternatives: build a Hackintosh, discover Haiku, run the fastest android with Android-X86... OK, I&#039;m going too off-topic. ;-)</p></blockquote></div><p>No new question here really, just an FYI:&nbsp; I&#039;m getting back to this after a long time using Pianoteq with good success on Windows 10 i5 3ghz, buffer size 64, low latency, performance index 50 or 60.&nbsp; But now I&#039;m playing with my speakers; integrating large woofers in larger sealed cabinets, to get the low notes to sound better.&nbsp; Want to try DSP to equalize and integrate the woofer response (12&quot; SB Acoustics drivers with 19hz fs).&nbsp; I hope to get reasonable response in the 20-30hz range (for the lowest note and for harmonics below it).&nbsp; I have Pianoteq Pro now and isn&#039;t it correct that I can also edit the notes individually to boost the lowest ones, as part of equalization?&nbsp; Am now trying AVLinux and I found an interesting approach with &quot;ecasound&quot; Linux package (and add-ons by a guy named Richard Taylor), to do the DSP right on my i5 computer alongside Pianoteq, using Jack to talk between them.&nbsp; New SSD arrives today so I can switch from LiveDVD AVLinux to a real installation, and get Pianoteq running.&nbsp; Am finding good posts here on Linux with lots of details, thanks all.</p>]]></description>
			<author><![CDATA[null@example.com (gibbyj)]]></author>
			<pubDate>Wed, 28 Dec 2016 13:41:13 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=946224#p946224</guid>
		</item>
		<item>
			<title><![CDATA[Re: Latency and Linux]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=943486#p943486</link>
			<description><![CDATA[<div class="quotebox"><cite>Stephen_Doonan wrote:</cite><blockquote><div class="quotebox"><cite>m.tarenskeen wrote:</cite><blockquote><p>Why are people often so obsessed with minimizing Latency? ... xruns can ruin that one and only perfect live recorded take.</p></blockquote></div><p>At any rate, it seems that a common and important task is the balancing of the competing ideals of low latency and glitch-free performance, depending upon the particular use of the audio tools and one&#039;s goals.</p><p>Just a personal opinion--</p></blockquote></div><p>I don&#039;t think that&#039;s a personal opinion. Finding that balance is something we all have to deal with. It&#039;s a fact,&nbsp; it&#039;s how it works: not an opinion.</p>]]></description>
			<author><![CDATA[null@example.com (m.tarenskeen)]]></author>
			<pubDate>Thu, 26 May 2016 22:14:04 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=943486#p943486</guid>
		</item>
		<item>
			<title><![CDATA[Re: Latency and Linux]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=943475#p943475</link>
			<description><![CDATA[<div class="quotebox"><cite>groovy wrote:</cite><blockquote><p>a good thing in Linux is, that we have the choice, what we prefer in a special situation.</p></blockquote></div><p>Yes, I love all the options available in Linux. <i class="far fa-smile smiley"></i></p><p>Thanks for the reply.</p>]]></description>
			<author><![CDATA[null@example.com (Stephen_Doonan)]]></author>
			<pubDate>Thu, 26 May 2016 00:22:07 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=943475#p943475</guid>
		</item>
		<item>
			<title><![CDATA[Re: Latency and Linux]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=943474#p943474</link>
			<description><![CDATA[<div class="quotebox"><cite>Stephen_Doonan wrote:</cite><blockquote><p>Groovy, I believe that the acpi-cpufreq utilities/driver/module are not used and not available by default with CPUs that include intel_pstate functionality. Is this correct?</p></blockquote></div><p>Newer Intel CPU(s) support&nbsp; intel_pstate for cpu frequency scaling. Therefore this is the chosen default in the most Linux distros today. But this support can be switched off in the kernel with intel_pstate=disable when passed to the kernel with the bootloader. Then the kernel falls back to the legacy scaling_driver acpi-cpufreq (automatically). This driver acpi-cpufreq can be controlled comfortably with the well-known tools and initscripts in the packet cpufrequtils.&nbsp; </p><div class="quotebox"><blockquote><p>Does your CPU have intel_pstate functionality, or is it a slightly older or different CPU (perhaps for laptop computer use primarily) that does not include the intel_pstate functions?</p></blockquote></div><p>Normally I&#039;am using my fanless netbook with the Intel N2930 cpu, this is a fairly new cpu and it supports intel_pstate. On older laptops (core2duo and i3) I used the &quot;classical&quot; acpi-cpufreq driver together with RT-kernels (the i3 we saw in my previous post).</p><p>It is not so complicated as it all looks like. Just a transition from one scaling driver to another and a good thing in Linux is, that we have the choice, what we prefer in a special situation.</p>]]></description>
			<author><![CDATA[null@example.com (groovy)]]></author>
			<pubDate>Wed, 25 May 2016 23:17:27 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=943474#p943474</guid>
		</item>
		<item>
			<title><![CDATA[Re: Latency and Linux]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=943473#p943473</link>
			<description><![CDATA[<div class="quotebox"><cite>groovy wrote:</cite><blockquote><p>Setting a fixed cpu frequency works with the scaling_driver &#039;acpi-cpufreq&#039;:</p></blockquote></div><p>Groovy, I believe that the acpi-cpufreq utilities/driver/module are not used and not available by default with CPUs that include intel_pstate functionality. Is this correct? Does your CPU have intel_pstate functionality, or is it a slightly older or different CPU (perhaps for laptop computer use primarily) that does not include the intel_pstate functions?</p><p>I probably ought to do some additional research. <i class="far fa-smile smiley"></i></p>]]></description>
			<author><![CDATA[null@example.com (Stephen_Doonan)]]></author>
			<pubDate>Wed, 25 May 2016 21:38:37 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=943473#p943473</guid>
		</item>
		<item>
			<title><![CDATA[Re: Latency and Linux]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=943472#p943472</link>
			<description><![CDATA[<div class="quotebox"><cite>m.tarenskeen wrote:</cite><blockquote><p>Why are people often so obsessed with minimizing Latency? ... xruns can ruin that one and only perfect live recorded take.</p></blockquote></div><p>I agree that focusing too strongly on minimizing latency can itself become a problem. <i class="far fa-smile smiley"></i></p><p>However, there are different considerations when one is recording audio, and when one is performing (such as on a musical instrument) and is listening to (monitoring) one&#039;s own performance while performing. In the latter case, even latencies as low as 5 milliseconds can be noticed&nbsp; (compared to even lower latencies), and latencies much higher than that can become somewhat frustrating to the performer, if not to the person recording the performance.</p><p>It has often been said that one of the best latency-compensation tools is the accustomed human mind of a person that has learned to play a large, traditional pipe organ, where the time between pressing a key on the organ manual and the sound emitting from the pipe can be quite long (in terms of what one might ideally hope for). In such cases, the organ player must often continue to move their fingers to the next notes even before they hear the results of their previous finger movements and key presses. <i class="far fa-smile smiley"></i></p><p>At any rate, it seems that a common and important task is the balancing of the competing ideals of low latency and glitch-free performance, depending upon the particular use of the audio tools and one&#039;s goals.</p><p>Just a personal opinion--</p>]]></description>
			<author><![CDATA[null@example.com (Stephen_Doonan)]]></author>
			<pubDate>Wed, 25 May 2016 21:35:36 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=943472#p943472</guid>
		</item>
		<item>
			<title><![CDATA[Re: Latency and Linux]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=943471#p943471</link>
			<description><![CDATA[<p>Why are people often so obsessed with minimizing Latency? My experience is everything below 5 ms or even 10 ms is usable. This should be no problem on modern hardware on any OS.</p><p>I am more interested in stable and glitch-free performance. On my Linux boxes I have had serious problems in the past with hickups, clicks, distortion, xruns, and even total freezes, until I found good configuration instructions from Linux pro-audio users on the internet. </p><p>xruns can ruin that one and only perfect live recorded take.</p>]]></description>
			<author><![CDATA[null@example.com (m.tarenskeen)]]></author>
			<pubDate>Wed, 25 May 2016 21:26:51 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=943471#p943471</guid>
		</item>
		<item>
			<title><![CDATA[Re: Latency and Linux]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=943470#p943470</link>
			<description><![CDATA[<p>Setting a fixed cpu frequency works with the scaling_driver &#039;acpi-cpufreq&#039;:</p><div class="codebox"><pre><code># cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver
acpi-cpufreq

# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
2400000 2000000 1800000 1600000 1400000 1200000 1000000 800000

# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
1000000

# cpufreq-set -f 1200000

# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
1200000</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (groovy)]]></author>
			<pubDate>Wed, 25 May 2016 20:51:52 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=943470#p943470</guid>
		</item>
		<item>
			<title><![CDATA[Re: Latency and Linux]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=943469#p943469</link>
			<description><![CDATA[<div class="quotebox"><cite>groovy wrote:</cite><blockquote><p>... I&#039;m not convinced. Have you checked the *real* kernel settings available under /sys/devices/system/cpu/* ?? I&#039;m a bit skeptical</p></blockquote></div><p>I was skeptical too (I think it&#039;s good to be a little skeptical <i class="far fa-smile smiley"></i> ), and am still a little wary of using the cpufrequtils bootup script in /etc/init.d</p><p>So I did check the settings in /sys/devices/system/cpu/* to try to convince myself that the cpufrequtils script, and the cpufreq-info command-line utility, were (or rather, are) giving accurate information.</p><p>In my Linux system (LinuxMint 17.3), there are directories for each CPU core located at--</p><p>/sys/devices/system/cpu/cpufreq/</p><p>The directories inside that location are--</p><p>policy0<br />policy1<br />policy2<br />policy3<br />policy4<br />policy5</p><p>--because my CPU (an Intel i7) has 6 cores, 0-5.</p><p>Inside each of those directories (/sys/devices/system/cpu/cpufreq/policy0/ for example) are text files, as follows--</p><p>affected_cpus<br />cpuinfo_cur_freq<br />cpuinfo_max_freq<br />cpuinfo_min_freq<br />cpuinfo_transition_latency<br />related_cpus<br />scaling_available_governors<br />scaling_cur_freq<br />scaling_driver<br />scaling_governor<br />scaling_max_freq<br />scaling_min_freq<br />scaling_setspeed</p><p>If, in a command-line terminal, inside /sys/devices/system/cpu/cpufreq/cpu0 (or cpu1, cpu2, etc.), I type the command--</p><p>sudo cat *</p><p>--the cat program prints out the contents of each of those files on a separate line, and in the case of cpu0, this is the output--</p><p>0<br />1580500<br />3800000<br />1200000<br />4294967295<br />0<br />performance powersave<br />1580500<br />intel_pstate<br />performance<br />3600000<br />2400000<br />&lt;unsupported&gt;</p><p>I&#039;m a bit confused and worried by the last item, the contents of the file scaling_setspeed being &lt;unsupported&gt;, so I plan to do a little research about that. I think it means that using the intel_pstate frequency scaling kernel driver, a particular set and fixed frequency cannot be specified; the governor under the intel_pstate driver will always choose a range and never function at a specified fixed frequency.</p><p>Note: the path--<br />/sys/devices/system/cpu/cpufreq/policy0/<br />--is identical&nbsp; to--<br />/sys/devices/system/cpu/cpu0/cpufreq/<br />--because &quot;cpufreq&quot; in the path immediately above is a symlink to ../cpufreq/policy0</p><p><i class="far fa-smile smiley"></i></p>]]></description>
			<author><![CDATA[null@example.com (Stephen_Doonan)]]></author>
			<pubDate>Wed, 25 May 2016 17:39:00 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=943469#p943469</guid>
		</item>
		<item>
			<title><![CDATA[Re: Latency and Linux]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=943468#p943468</link>
			<description><![CDATA[<div class="quotebox"><cite>Stephen_Doonan wrote:</cite><blockquote><p>This is an alternate method (to the script you mentioned earlier in the discussion) of setting the governors for all the CPUs (all the CPU cores).</p></blockquote></div><p>... I&#039;m not convinced. Have you checked the *real* kernel settings available under /sys/devices/system/cpu/* ?? I&#039;m a bit skeptical, because the cpufrequtils only were effective as expected with the legacy driver acpi-cpufreq in the past (and not with the driver intel_pstate). Maybe the package cpufrequtils was updated in the meantime to support intel_pstate, but I found no indication in the changelog ... hm</p>]]></description>
			<author><![CDATA[null@example.com (groovy)]]></author>
			<pubDate>Wed, 25 May 2016 16:43:20 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=943468#p943468</guid>
		</item>
		<item>
			<title><![CDATA[Re: Latency and Linux]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=943467#p943467</link>
			<description><![CDATA[<div class="quotebox"><cite>groovy wrote:</cite><blockquote><p>I&#039;m using a little script started at boottime from /etc/rc.local. It is called &quot;governor&quot; (thanks to user delt)</p></blockquote></div><p>If you install the package cpufrequtils, in addition to the command-line (terminal) programs cpufreq-info and cpufreq-set, the cpufrequtils package will install a bootup script in /etc/init.d/ called &quot;cpufrequtils&quot; which uses the cpufreq-info and cpufreq-set command-line utilities installed by the same package to set the governor and operating frequency range for each CPU (each CPU core).</p><p>This cpufrequtils script may be edited as root to set both the governor and a suggested frequency range for the governor to use for all the CPU cores, when the script launches automatically during computer bootup.</p><p>For example, after the cpufrequtils package is installed, the cpufrequtils file it creates in /etc/init.d (which is symlinked to and run in various runlevel directories such as /etc/rc2.d/) includes the following text--</p><div class="codebox"><pre><code># Set ENABLE to &quot;true&quot; to let the script run at boot time.
# 
# eg:    ENABLE=&quot;true&quot;
#    GOVERNOR=&quot;ondemand&quot;
#    MAX_SPEED=1000
#    MIN_SPEED=500

ENABLE=&quot;true&quot;
GOVERNOR=&quot;ondemand&quot;
MAX_SPEED=&quot;0&quot;
MIN_SPEED=&quot;0&quot;</code></pre></div><p>I edited the /etc/init.d/cpufrequtils files as root so that the non-comment lines (the ones that have an effect; that don&#039;t begin with a # indicating that the line of text is merely a non-functional comment) above read as follows--</p><div class="codebox"><pre><code>ENABLE=&quot;true&quot;
GOVERNOR=&quot;performance&quot;
MAX_SPEED=&quot;3.6GHz&quot;
MIN_SPEED=&quot;2.4GHz&quot;</code></pre></div><p>Note-- Because my computer&#039;s CPU uses the intel_pstate functionality, the &quot;ondemand&quot; governor mentioned in the cpufrequtils script is not available (the only available governors are &quot;powersave&quot; or &quot;performance&quot;). So I changed the GOVERNOR= to &quot;performance&quot; although I could also have specified &quot;powersave&quot;</p><p>And now, at computer bootup or by restarting the cpufrequtils script while the computer is running ( by using a terminal and typing the command: service cpufrequtils restart ), the command-line program cpufreq-info produces the following output for my 6-core Intel i7 CPU--</p><div class="codebox"><pre><code>cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 0.97 ms.
  hardware limits: 1.20 GHz - 3.80 GHz
  available cpufreq governors: performance, powersave
  current policy: frequency should be within 2.40 GHz and 3.60 GHz.
                  The governor &quot;performance&quot; may decide which speed to use
                  within this range.
  current CPU frequency is 1.28 GHz.
analyzing CPU 1:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 1
  CPUs which need to have their frequency coordinated by software: 1
  maximum transition latency: 0.97 ms.
  hardware limits: 1.20 GHz - 3.80 GHz
  available cpufreq governors: performance, powersave
  current policy: frequency should be within 2.40 GHz and 3.60 GHz.
                  The governor &quot;performance&quot; may decide which speed to use
                  within this range.
  current CPU frequency is 1.58 GHz.
analyzing CPU 2:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 2
  CPUs which need to have their frequency coordinated by software: 2
  maximum transition latency: 0.97 ms.
  hardware limits: 1.20 GHz - 3.80 GHz
  available cpufreq governors: performance, powersave
  current policy: frequency should be within 2.40 GHz and 3.60 GHz.
                  The governor &quot;performance&quot; may decide which speed to use
                  within this range.
  current CPU frequency is 2.23 GHz.
analyzing CPU 3:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 3
  CPUs which need to have their frequency coordinated by software: 3
  maximum transition latency: 0.97 ms.
  hardware limits: 1.20 GHz - 3.80 GHz
  available cpufreq governors: performance, powersave
  current policy: frequency should be within 2.40 GHz and 3.60 GHz.
                  The governor &quot;performance&quot; may decide which speed to use
                  within this range.
  current CPU frequency is 1.52 GHz.
analyzing CPU 4:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 4
  CPUs which need to have their frequency coordinated by software: 4
  maximum transition latency: 0.97 ms.
  hardware limits: 1.20 GHz - 3.80 GHz
  available cpufreq governors: performance, powersave
  current policy: frequency should be within 2.40 GHz and 3.60 GHz.
                  The governor &quot;performance&quot; may decide which speed to use
                  within this range.
  current CPU frequency is 2.30 GHz.
analyzing CPU 5:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 5
  CPUs which need to have their frequency coordinated by software: 5
  maximum transition latency: 0.97 ms.
  hardware limits: 1.20 GHz - 3.80 GHz
  available cpufreq governors: performance, powersave
  current policy: frequency should be within 2.40 GHz and 3.60 GHz.
                  The governor &quot;performance&quot; may decide which speed to use
                  within this range.
  current CPU frequency is 2.03 GHz.</code></pre></div><p>This is an alternate method (to the script you mentioned earlier in the discussion) of setting the governors for all the CPUs (all the CPU cores).</p><p>If a person wishes to edit the /etc/init.d/cpufrequtils file (or any other file) as root, but in a graphical editor instead of a command-line editor like vim, there are many graphical editors to use (such as gedit or kate), and many ways to launch the graphical editor with root-user privileges. I use a version of Linux that relies on the GTK+ graphical toolkit (instead of QT), and has the gedit graphical editor installed by default, so the command gksudo opens a small graphical window to type the root password before launching the specified program (the editor), which opens the file I wish to edit, with the command--</p><div class="codebox"><pre><code>gksudo gedit /etc/init.d/cpufrequtils</code></pre></div><p><i class="far fa-smile smiley"></i></p>]]></description>
			<author><![CDATA[null@example.com (Stephen_Doonan)]]></author>
			<pubDate>Wed, 25 May 2016 14:16:14 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=943467#p943467</guid>
		</item>
		<item>
			<title><![CDATA[Re: Latency and Linux]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=943462#p943462</link>
			<description><![CDATA[<p>Thanks guys for the info. I&#039;m watching and learning. Till now I&#039;ve just been using cpufrequtils (cpufreq-info and cpufreq-set):</p><div class="codebox"><pre><code>&gt; cat ~/bin/cpumaxspeed 
#!/bin/bash

MAX_FREQ=$(cpufreq-info | grep limits | head -n1 | cut -f2 -d- | sed &#039;s/ //g&#039;)
ICPU_MAX=$(cpufreq-info | grep analyz | tail -n1 | cut -f 3 -d&#039; &#039; | cut -f1 -d:)

for ((i = 0; i &lt;= $ICPU_MAX; i++)); do
        sudo cpufreq-set -c $i -f $MAX_FREQ
done</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (SteveLy)]]></author>
			<pubDate>Wed, 25 May 2016 08:31:53 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=943462#p943462</guid>
		</item>
		<item>
			<title><![CDATA[Re: Latency and Linux]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=943461#p943461</link>
			<description><![CDATA[<div class="quotebox"><cite>Stephen_Doonan wrote:</cite><blockquote><p>May I ask how you set the governor for each or all of your CPU cores to &quot;performance&quot; (instead of the default &quot;powersave&quot;).</p></blockquote></div><p>I&#039;m using a little script started at boottime from /etc/rc.local. It is called &quot;governor&quot; (thanks to user delt):</p><div class="codebox"><pre><code>/usr/local/bin/governor performance</code></pre></div><p>This script contains:<br /></p><div class="codebox"><pre><code>#!/bin/sh

cd /sys/devices/system/cpu
gov=&quot;$1&quot;

if [ &quot;$gov&quot; = &quot;&quot; ]; then
  for core in cpu?; do
    echo -n &quot;Core ${core} set to &quot;
    cat ${core}/cpufreq/scaling_governor
  done
else
  if [ &quot;`whoami`&quot; != &quot;root&quot; ]; then
    echo &quot;Root access is required for this operation. Trying sudo...&quot;
    exec sudo &quot;$0&quot; &quot;$@&quot;
  fi
  for core in cpu?; do
    echo &quot;Setting core ${core} to ${gov}... &quot;
    echo &quot;$gov&quot; &gt; ${core}/cpufreq/scaling_governor
  done
fi</code></pre></div><p>As far as I know, with the intel_pstate driver *static* cpu frequencies cannot be set any longer (contrary to the former acpi-cpufreq driver). It only has two different&nbsp; dynamic ranges, called powersave and performance.</p>]]></description>
			<author><![CDATA[null@example.com (groovy)]]></author>
			<pubDate>Wed, 25 May 2016 08:20:55 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=943461#p943461</guid>
		</item>
		<item>
			<title><![CDATA[Re: Latency and Linux]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=943460#p943460</link>
			<description><![CDATA[<p>To groovy--</p><p>My CPU is an Intel i7 six-core CPU with a listed operating frequency of 3.2 GHz. With &quot;Intel Turboboost&quot; enabled in the BIOS (and only with Intel Turboboost enabled), the CPU cores can operate up to a frequency of 3.8 GHz (instead of 3.2 GHz).</p><p>With the CPU governor for all six CPU cores set to &quot;performance&quot; instead of &quot;powersave,&quot; the CPU cores are allowed to operate within the range of 1.2 GHz to 3.8 GHz. In Pianoteq, the base frequency is listed as 3.2 GHz (the Intel factory standard), while the active CPU frequency ranges fluctuate between a low of&nbsp; 1.2 GHz to a high of about 3.4 GHz, and rarely above, with a CPU load, when multicore rendering is enabled in Pianoteq, to usually no more than 25-35% (and usually less than 25%).</p><p>I&#039;ll try using Pianoteq in this mode for awhile, with the intel_pstate kernal driver in effect, and the governor set to &quot;performance,&quot; and see how the system behaves with regard to overruns (Xruns), MIDI responsiveness, low latency and CPU load.</p><p>May I ask how you set the governor for each or all of your CPU cores to &quot;performance&quot; (instead of the default &quot;powersave&quot;). Do you use a commandline utility, or manually type an echo command in a terminal, or edit a configuration file in /etc or /etc/init.d/ ? And do you specify a fixed frequency for the governor, or alter its default frequency range? Thanks. <i class="far fa-smile smiley"></i></p>]]></description>
			<author><![CDATA[null@example.com (Stephen_Doonan)]]></author>
			<pubDate>Tue, 24 May 2016 23:24:40 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=943460#p943460</guid>
		</item>
		<item>
			<title><![CDATA[Re: Latency and Linux]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=943459#p943459</link>
			<description><![CDATA[<p>Ah, thanks for clarification, no problem at all.</p><p>Indeed it is an interesting point, what are the implications of a fixed/nailed cpu-frequency versus a dynamic frequency scaling in performance mode.</p><p>For illustration I take my N2930 which has a base frequency of 1.83 GHz and a burst frequency of 2.16 GHz.</p><p>Pianoteq shows in the Perf window the range of the minimum and maximum CPU frequencies of all cores, refreshed every half second (I guess). The maximum is always 2,16 GHz, which means at least one of the four cores is in burst mode. The minimum frequencies are fluctuating, so you are right there is some dynamic scaling even in performance mode of the intel_pstate driver. While playing, the minimum is higher than 1.83 GHz most of the time (but sometimes I see lower freqs like 1.3 or 1.5 GHz just for example).</p><p>In the past, when I experimented with the alternative driver acpi-cpufreq (which you are using), I remember I could nail down one of these frequencies:</p><div class="codebox"><pre><code># cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies 
1827000 1826000 1660000 1494000 1328000 1162000 996000 830000 664000 498000</code></pre></div><p>... in other words I could set a static, max. frequency of 1.83 GHz to each core with acpi-cpufreq. Eventually it is positive for audio to have static circumstances (prediction of the behavior; no potential side-effects from scaling).</p><p>But on the other hand, do we loose the burst-modes (2.16 GHz), that the intel_pstate makes heavy use of? at least on my N2930?</p><p>Stephen_Doonan,<br />as you are running the driver acpi-cpufreq -- could you please check, if your CPU is using the burst mode even if you nailed your max. available frequency? (just watch the Perf window of PTQ whether the range goes up to the burst frequency).</p>]]></description>
			<author><![CDATA[null@example.com (groovy)]]></author>
			<pubDate>Tue, 24 May 2016 17:47:33 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=943459#p943459</guid>
		</item>
	</channel>
</rss>
