I wanted to know if it possible to limit the default thread count used when running the ControlWin x64 PLC? At this time it hogging my all available (per default) threads. Can this be overridden somehow?
Thank you!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have found the way to do bind the softPLC to a specific CPU Core (actually a thread)
Find the directory where your ControlWin x64 instance runs, which is something like;
So now the SoftPLC isn't hogging all threads anymore.
Reason is that I strongly suspect that the the overall performance of the ControlWin x64 PLC is not going to benefit from big threadcounts.
I noticed that the machine I work on gets slower to the point of irritation if the SoftPLC is enabled with the default setting ( = use all cores) while my machine has more than sufficient free resources for a few dedicated PLC core(s).
So changing the default setting (use all cores) to manually bind the softcontroller to a (few) cores has benefited me.
** Did some more testing on this and it seems that my assumption is valid unless offcourse someone can show me otherwise
π
1
Last edit: aliazzz 2020-07-24
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I wanted to know if it possible to limit the default thread count used when running the ControlWin x64 PLC? At this time it hogging my all available (per default) threads. Can this be overridden somehow?
Thank you!
I have found the way to do bind the softPLC to a specific CPU Core (actually a thread)
Find the directory where your ControlWin x64 instance runs, which is something like;
C:\ProgramData\CODESYS\CODESYSControlWinV3x64\F11FFF3A
Now open the CODESYSControl.cfg and search for the following section
Now uncomment line which says: BindProcess.CoreID=-1
or edit it like I did so you can always undo the change quickly;
Which results after a restart of ControlWin x64 in;
So now the SoftPLC isn't hogging all threads anymore.
Reason is that I strongly suspect that the the overall performance of the ControlWin x64 PLC is not going to benefit from big threadcounts.
I noticed that the machine I work on gets slower to the point of irritation if the SoftPLC is enabled with the default setting ( = use all cores) while my machine has more than sufficient free resources for a few dedicated PLC core(s).
So changing the default setting (use all cores) to manually bind the softcontroller to a (few) cores has benefited me.
** Did some more testing on this and it seems that my assumption is valid unless offcourse someone can show me otherwise
Last edit: aliazzz 2020-07-24