<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Reducing Jitter</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/5cc16d686b/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/5cc16d686b/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/5cc16d686b/</id><updated>2020-02-27T16:26:24.217000Z</updated><subtitle>Recent posts to Reducing Jitter</subtitle><entry><title>Reducing Jitter</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/5cc16d686b/?limit=25#dfd2" rel="alternate"/><published>2020-02-27T16:26:24.217000Z</published><updated>2020-02-27T16:26:24.217000Z</updated><author><name>arj3090</name><uri>https://forge.codesys.com/u/arj3090/</uri></author><id>https://forge.codesys.com73bc4881490abceb593b6b84d10cbb2610bb4c5f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Edwin Schwellinger hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hi,&lt;br/&gt;
which jitter do you see , before you start changing anything?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;These are the values before and after changes:&lt;br/&gt;
Before -&amp;gt; After&lt;br/&gt;
129     -&amp;gt; 95&lt;br/&gt;
157     -&amp;gt; 117&lt;br/&gt;
154     -&amp;gt; 66&lt;br/&gt;
102     -&amp;gt; 62&lt;br/&gt;
521     -&amp;gt; 147&lt;/p&gt;
&lt;p&gt;This was only a short term test over a few hours so it may not be very accurate.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Reducing Jitter</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/5cc16d686b/?limit=25#43e7" rel="alternate"/><published>2020-02-27T16:26:23.336000Z</published><updated>2020-02-27T16:26:23.336000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comcb71e017a40e4c732c68b69757d770d7cec4b9db</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
which jitter do you see , before you start changing anything?&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Reducing Jitter</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/5cc16d686b/?limit=25#2512" rel="alternate"/><published>2020-02-27T16:26:20.874000Z</published><updated>2020-02-27T16:26:20.874000Z</updated><author><name>arj3090</name><uri>https://forge.codesys.com/u/arj3090/</uri></author><id>https://forge.codesys.come5cf93b21b947879ca933406965c9d88116caf0f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have been experimenting with reducing jitter on a Raspberry Pi with the Preempt RT patch. The one thing I found that seemed to help was to set the CodeSys process to a nice level of -20. My test is not very scientific, but enough to see results. I have a program with 5 tasks and they are all set to free floating processor core use. My before and after jitter results:&lt;/p&gt;
&lt;p&gt;Before -&amp;gt; After&lt;br/&gt;
129  -&amp;gt;    95&lt;br/&gt;
157  -&amp;gt;   117&lt;br/&gt;
154  -&amp;gt;   66&lt;br/&gt;
102  -&amp;gt;   62&lt;br/&gt;
521  -&amp;gt;   147&lt;/p&gt;
&lt;p&gt;So my question is whether changing the nice value could have other side effects?&lt;/p&gt;
&lt;p&gt;This is the method I used to change the CodeSys nice value:&lt;/p&gt;
&lt;p&gt;Connect using SSH&lt;br/&gt;
cd /etc/init.d&lt;br/&gt;
sudo nano codesyscontrol&lt;/p&gt;
&lt;p&gt;insert the "--nicelevel -20" into the following line :&lt;/p&gt;
&lt;p&gt;start-stop-daemon --start --background --make-pidfile --pidfile $PIDFILE --nicelevel -20 --chd$&lt;/p&gt;
&lt;p&gt;reboot&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>