<div dir="ltr"><div>Found this in the archives, maybe it is somewhat similar: in the early Raspberry Pi days core switching seemed to be a problem for Pd and it could be solved by using 'taskset'. See:<br><br><a href="https://lists.puredata.info/pipermail/pd-list/2015-02/109189.html">https://lists.puredata.info/pipermail/pd-list/2015-02/109189.html</a><br><br></div>The CPU switching problem went away 'by itself' after a Raspbian update, but it was probably hardware specific.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 31, 2018 at 12:31 AM, katja <span dir="ltr"><<a href="mailto:katjavetter@gmail.com" target="_blank">katjavetter@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">What happens when running Pd with option -nosleep? I vaguely remember having problems with CPU scaling which could be 'resolved' with that option. People smarter than me pointed to other solutions where you could reserve a specific core for the Pd process. But I'm unable to retrieve that information.<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Jan 31, 2018 at 12:08 AM, Roman Haefeli <span dir="ltr"><<a href="mailto:reduzent@gmail.com" target="_blank">reduzent@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><span>On Die, 2018-01-30 at 23:31 +0100, Dan Wilcox wrote:<br>
> I agree. I recorded 8 channel multitrack from Pd to Ardour using a<br>
> single core Thinkpad back in the day with no drop outs.<br>
><br>
> You could try running Pd with a different nice level. Even though it<br>
> has "realtime priority" it sometimes helps to cue the scheduler a<br>
> little more directly.<br>
<br>
</span>'pd -rt -jack' runs with a nice level of 0, so does jackd and ardour. I<br>
tried giving it higher priority up (or should I say: down?) to -10, but<br>
it didn't change the situation. Also, it seems  to me that it's not a<br>
problem of priorities between several processes. The fact that burning<br>
CPU cycles with _another_ process helps makes me think the problem<br>
rather is that resources are not made ready quickly enough.<br>
<span class="m_-6995711870736200529HOEnZb"><font color="#888888"><br>
Roman    <br>
</font></span><div class="m_-6995711870736200529HOEnZb"><div class="m_-6995711870736200529h5"><br>
<br>
> > On Jan 30, 2018, at 11:21 PM, <a href="mailto:pd-list-request@lists.iem.at" target="_blank">pd-list-request@lists.iem.at</a> wrote:<br>
> ><br>
> > Interestingly, setting CPU scaling governor to performance is not<br>
> > enough for Pd (it is for other applications, though). When doing<br>
> > that<br>
> > for each core, they all run at maximum speed. However, it doesn't<br>
> > help<br>
> > with making Pd glitch free. I really have to put some load on<br>
> > them. <br>
> ><br>
> > This confirms what I suspected for while now: The advanced power<br>
> > saving<br>
> > features of modern CPUs don't really help for realtime audio. <br>
> ><br>
> > I wonder what softwares like Ardour do differently to not fall<br>
> > victim<br>
> > of aggressive power saving. <br>
> ><br>
> > Having a constantly running fan is also not an ideal situation. I<br>
> > don't<br>
> > care about increased power consumption at this point.  Maybe there<br>
> > is a<br>
> > less invasive way to keep the CPU busy?<br>
> --------<br>
> Dan Wilcox<br>
> @danomatika<br>
> <a href="http://danomatika.com" rel="noreferrer" target="_blank">danomatika.com</a><br>
> <a href="http://robotcowboy.com" rel="noreferrer" target="_blank">robotcowboy.com</a><br>
><br>
><br>
> </div></div><br></div></div><span class="">______________________________<wbr>_________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/li<wbr>stinfo/pd-list</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div><br></div>