<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Raspberry Pi SL (Single Core License): Binding codesyscontrol process to core 1 (affinity)</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/19f4bfbc4f/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/19f4bfbc4f/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/19f4bfbc4f/</id><updated>2021-06-12T12:50:51.162000Z</updated><subtitle>Recent posts to Raspberry Pi SL (Single Core License): Binding codesyscontrol process to core 1 (affinity)</subtitle><entry><title>Raspberry Pi SL (Single Core License): Binding codesyscontrol process to core 1 (affinity)</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/19f4bfbc4f/?limit=250#228c" rel="alternate"/><published>2021-06-12T12:50:51.162000Z</published><updated>2021-06-12T12:50:51.162000Z</updated><author><name>aliazzz</name><uri>https://forge.codesys.com/u/aliazzz/</uri></author><id>https://forge.codesys.com962060a367789374f5705320aace2b46f65c8f44</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I only know that the main purpose of an MC license is setting up CPU core affinities (via the CodesysControl File) and enable PLC multi-threaded process programming. So I guess this anwsers your questions.&lt;/p&gt;
&lt;p&gt;PS. You can try the MC license for free (2 hrs demo, after which you need to restart the runtime)so you try out if it meets your needs. Just open the CODESYS IDE, and select the MC license instead of the Normal license. &lt;/p&gt;
&lt;p&gt;Let us know if it helped you&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry Pi SL (Single Core License): Binding codesyscontrol process to core 1 (affinity)</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/19f4bfbc4f/?limit=25#9500" rel="alternate"/><published>2021-06-10T20:11:05.526000Z</published><updated>2021-06-10T20:11:05.526000Z</updated><author><name>lefish</name><uri>https://forge.codesys.com/u/lefish/</uri></author><id>https://forge.codesys.com38e29b35729f9d44ff3f8feb281b117a0dd83feb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;So you think, a Single-Core License is bound to Core 0 - which would be a pitty as there are 0-3 cores on a RPi...&lt;/p&gt;
&lt;p&gt;I see an affinity of the codesyscontrol-process of 0 as of standard on a Single-Core License - so would it be 0-3 on a Multi-Core License?&lt;/p&gt;
&lt;p&gt;And more so: Would it be possible to set the affinity of just one process (single application in my project) to one specific core on a Multi-Core License?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry Pi SL (Single Core License): Binding codesyscontrol process to core 1 (affinity)</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/19f4bfbc4f/?limit=250#0896" rel="alternate"/><published>2021-06-10T09:59:43.581000Z</published><updated>2021-06-10T09:59:43.581000Z</updated><author><name>h-hermsen</name><uri>https://forge.codesys.com/u/hermsen/</uri></author><id>https://forge.codesys.com9a8dab992a22f238a3a43e7a365aa16623bc49c5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Shouldn't you use a CODESYS RPi MC (Multicore license) for this?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry Pi SL (Single Core License): Binding codesyscontrol process to core 1 (affinity)</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/19f4bfbc4f/?limit=25#8928" rel="alternate"/><published>2021-06-10T09:13:58.074000Z</published><updated>2021-06-10T09:13:58.074000Z</updated><author><name>lefish</name><uri>https://forge.codesys.com/u/lefish/</uri></author><id>https://forge.codesys.com230521aeb427c4c18b1b98f915469d39f50b76e4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;I am having troubles to bind the process  /opt/codesys/bin/codesyscontrol.bin /etc/CODESYSControl.cfg&lt;br/&gt;
to core 1 by evoking the following command&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;sudo taskset -pc 1 $pid&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;The process affinity changes from 0 to 1, but the process still runs on core 0.&lt;/p&gt;
&lt;p&gt;Note: I do not want any Multi-Core usage. Just Single-Core on a different core than 0.&lt;/p&gt;
&lt;p&gt;Not even after altering the script /etc/init.d/codesyscontrol in line 115 from&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;while ! pidof -s $EXEC &amp;gt;$PIDFILE 2&amp;gt;/dev/null; do&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;to&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;while ! pidof -s taskset -c 1 $EXEC &amp;gt;$PIDFILE 2&amp;gt;/dev/null; do&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;the process actually runs on core 1...&lt;/p&gt;
&lt;p&gt;Does anyone know the trick?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>