<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to multiple questions regarding program speed</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/44cc4e9ad4/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/44cc4e9ad4/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/44cc4e9ad4/</id><updated>2020-02-27T17:08:37.376000Z</updated><subtitle>Recent posts to multiple questions regarding program speed</subtitle><entry><title>multiple questions regarding program speed</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/44cc4e9ad4/?limit=25#487b" rel="alternate"/><published>2020-02-27T17:08:37.376000Z</published><updated>2020-02-27T17:08:37.376000Z</updated><author><name>sgronchi</name><uri>https://forge.codesys.com/u/sgronchi/</uri></author><id>https://forge.codesys.comae7941b1ad188ed8733db086b79e90cf73512744</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;First, realtime means "with predictable latency". Usually realtime is at odds with throughput, i.e. realtime mode actually  maximum throughput (except if the CPU-intensive task has non-realtime priority and Codesys has, but you can work around it playing with niceness if you want). A definition that is not totally right but gets the idea is that it reduces the deviation from the average throughput.&lt;br/&gt;
PREEMPT_RT is a kernel patch, you could follow the tutorial at &lt;a class="" href="https://lemariva.com/blog/2018/07/raspberry-pi-preempt-rt-patching-tutorial-for-kernel-4-14-y" rel="nofollow"&gt;https://lemariva.com/blog/2018/07/raspb ... nel-4-14-y&lt;/a&gt; to compile it (adjust the kernel version).&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>multiple questions regarding program speed</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/44cc4e9ad4/?limit=25#b963" rel="alternate"/><published>2020-02-27T17:08:36.353000Z</published><updated>2020-02-27T17:08:36.353000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com861b80966d6f1d58691d2f7284f2b956dd83251c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; phenixrb&lt;/p&gt;
&lt;p&gt;Hello everyone,&lt;/p&gt;
&lt;p&gt;As noted, originally CODESYS on raspberry is not real time,&lt;br/&gt;
in order to make programs on raspberry faster,&lt;br/&gt;
what is the best option?&lt;/p&gt;
&lt;p&gt;I saw that it is possible to do it by adding "rt-preempt" in rasbian, but with a decrease of the CPU.&lt;br/&gt;
"rt-preempt" supported by OSADL,&lt;br/&gt;
and CODESYS contributes to the OSADL group.&lt;br/&gt;
which for me, assumes that the group is serious.&lt;/p&gt;
&lt;p&gt;but is it necessary or appropriate to add "preempt-rt" to be in real time?&lt;br/&gt;
in my case I am not a raspbian _ ....&lt;br/&gt;
how not to make a mistake?&lt;/p&gt;
&lt;p&gt;or then, does the software "Control for Raspberry Pi MC SL"&lt;br/&gt;
with a good definition:&lt;br/&gt;
attributions on the core.&lt;br/&gt;
priority of tasks.&lt;br/&gt;
type of task&lt;br/&gt;
cycle time.&lt;br/&gt;
enough to approach "real time"?&lt;/p&gt;
&lt;p&gt;and what is a good task configurator setting?&lt;br/&gt;
group POUs, visualization, ....... by type, size ......&lt;/p&gt;
&lt;p&gt;for me there is so much possibility that i don't see how to optimize this.&lt;/p&gt;
&lt;p&gt;if you have ideas or tutorials, please let me know.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: MAINTASK.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=5165"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>