<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Linux Realtime Scheduler</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/5f6058b284/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/5f6058b284/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/5f6058b284/</id><updated>2020-02-27T15:48:27.878000Z</updated><subtitle>Recent posts to Linux Realtime Scheduler</subtitle><entry><title>Linux Realtime Scheduler</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/5f6058b284/?limit=25#9d31" rel="alternate"/><published>2020-02-27T15:48:27.878000Z</published><updated>2020-02-27T15:48:27.878000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.coma0bc8de2d182b296e36b811b48baa947b255d504</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
i have done no Tests with the CM3 so far,&lt;br/&gt;
bubt even around 200 us is not so bad and for most Things good enough.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Zitat:&lt;/strong&gt;&lt;br/&gt;
If I already have a License is there a possibility to purchase only a upgrade to multicore if deemed needed or do I need to buy a new license again&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;No this is not possible - this is a different product with different price.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Linux Realtime Scheduler</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/5f6058b284/?limit=25#8f44" rel="alternate"/><published>2020-02-27T15:48:25.702000Z</published><updated>2020-02-27T15:48:25.702000Z</updated><author><name>hence.persson</name><uri>https://forge.codesys.com/u/hence-persson/</uri></author><id>https://forge.codesys.com4c9f668fdca57feeb313153c289fa7cdb6a8af1a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The problem may be that I am using a device Pigeon RB-300 which is based on a Rpi CM3.?&lt;br/&gt;
The kernel is based on Raspbian Stretch Lite with kernel version 4.9.80 with Preempt RT patch.&lt;/p&gt;
&lt;p&gt;I am getting on a empty project in the Jitter colum a jitter value of 414us(-208/+206) in my task with prio 1.&lt;/p&gt;
&lt;p&gt;I tried to disable GPIO, SPI master etc no difference.&lt;/p&gt;
&lt;p&gt;So I guess with this hardware this is the best I can get.&lt;/p&gt;
&lt;p&gt;Another question..&lt;br/&gt;
If I already have a License is there a possibility to purchase only a upgrade to multicore if deemed needed or do I need to buy a new license again?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Linux Realtime Scheduler</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/5f6058b284/?limit=25#7d75" rel="alternate"/><published>2020-02-27T15:48:24.788000Z</published><updated>2020-02-27T15:48:24.788000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.come59a25a903b3d873683247eee3ed3cc836b145fd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
you just need to apply and rt_prempt kernel patch for your Linux kernel this is mandatory to have realtime and less jitter.&lt;br/&gt;
That's it.&lt;br/&gt;
You will see then on you Pi jitter &amp;lt;150us and even better in the highest prio task.&lt;br/&gt;
An additional option is the muclticore version of the PI. &lt;br/&gt;
This will improve the jitter additional and a lot ( depending on how you distribute the application in the CODESYS project to your cores see the screen captures attached)&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Multicore2.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4560"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Multicore1.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4559"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Linux Realtime Scheduler</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/5f6058b284/?limit=25#5eee" rel="alternate"/><published>2020-02-27T15:48:22.379000Z</published><updated>2020-02-27T15:48:22.379000Z</updated><author><name>hence.persson</name><uri>https://forge.codesys.com/u/hence-persson/</uri></author><id>https://forge.codesys.comc79ebf96c2c0d87eb4890ce4f3a211c8b6d8d81a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;I have seen in the device description file that you have texts like these: &amp;gt;&lt;strong&gt;Zitat:&lt;/strong&gt;&lt;br/&gt;
realtime priority (SCHED FIFO 66)&lt;/p&gt;
&lt;p&gt;I was wondering when i have a realtime kernel does Codesys automatically create processes for the tasks that runs with SCHED_FIFO according to the device description?&lt;/p&gt;
&lt;p&gt;Because when looking with ps in the linux shell I can only see two codesys processes that are SCHED_OTHER. &lt;br/&gt;
And I read on another forum a tip that I should schedule the two codesys processes as SCHED_RR to make Codesys run with lower Jitter... But that doesnt seem to change anything if I try It and that setting is lost when rebooting.&lt;/p&gt;
&lt;p&gt;Is there anything you can do to try and improve the jitter? I am not having any problems at the moment but I like to know these things so that when it becomes a problem I know what to do.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>