EnglishУкраїнськаmRussian
Login/New
Topic with many replies

[BugFixed] Raspberry Pi 2 Configuration


| 1 | 2 | Last
Author Message
Written on: 28. 05. 2015 [14:35]
TomPaz-NTUA
Tom Paz
Topic creator
registered since: 28.05.2015
Posts: 6
Recently i installed OpenScada to a freshly bought raspberry pi 2. The installation was done using the wiki instructions concerning the compiling from sources method. Everything went smooth and openscada was up and running.

The main problem is that as far as i can see (using htop utility in raspbian) it uses only one core of the quadcore ARM processor and in fact it uses constantly and in idle mode 100% of it. As a result the interface is pretty sluggish and developement in large scale pretty much impossible, both in system configurator and operation user interface mode.

1) Is this normal and expected ?

2) How can i make it compile it and run it taking advantage of all four cores and not only one core ?

Thank you in advance!

Written on: 29. 05. 2015 [13:26]
roman
Roman Savochenko
Moderator
Contributor
Developer
registered since: 12.12.2007
Posts: 3750
"TomPaz-NTUA" wrote:

The main problem is that as far as i can see (using htop utility in raspbian) it uses only one core of the quadcore ARM processor and in fact it uses constantly and in idle mode 100% of it. As a result the interface is pretty sluggish and developement in large scale pretty much impossible, both in system configurator and operation user interface mode.
1) Is this normal and expected ?

It is normal to one core slow performance for ARMv7 up to 1500MHz, comparing to equal x86, on OpenSCADA mathematical models and DemoDB.
But here was a real problem into force setting single core number 1 at the multiprocessing checking, which just now I have fixed.
Also I have appended the generic control about the CPU/Cores set assigning.

Learn, learn and learn better than work, work and work.
Written on: 29. 05. 2015 [13:37]
TomPaz-NTUA
Tom Paz
Topic creator
registered since: 28.05.2015
Posts: 6
So now OpenScada will be able to use more than one cores of Raspberry CPU?

Do we expect to see improvements in responsiveness and usability after the changes that you made?

Where can i find the updated, corrected sources so as to recompile them and test them?

Thank you in advance.
Written on: 29. 05. 2015 [14:16]
roman
Roman Savochenko
Moderator
Contributor
Developer
registered since: 12.12.2007
Posts: 3750
"TomPaz-NTUA" wrote:

So now OpenScada will be able to use more than one cores of Raspberry CPU?

OpenSCADA was able use multiple cores always if manual the CPU/Cores allow into tab "Task": http://wiki.oscada.org/HomePageEn/Doc/ProgrammManual/part4/files?get=sys_tasks.png
But now all the CPU/Cores enabled by default.

"TomPaz-NTUA" wrote:

Do we expect to see improvements in responsiveness and usability after the changes that you made?

Sure by the high consumed mathematics model's tasks will distributed to quad cores.

"TomPaz-NTUA" wrote:

Where can i find the updated, corrected sources so as to recompile them and test them?

Into the SVN-repository certainly: http://oscada.org/websvn/listing.php?repname=OpenSCADA or tomorrow morning from the FTP-server: ftp://oscada.dlinkddns.com/OpenSCADA/Work

Learn, learn and learn better than work, work and work.
Written on: 29. 05. 2015 [14:19]
TomPaz-NTUA
Tom Paz
Topic creator
registered since: 28.05.2015
Posts: 6
I will try out the new version and share the results with the community,

thank you again and congratulations for the hard work you are putting to this extremely useful application

PS I am not really familiar with svn. How can i download the source code from the link you provided?

[This article was edited 1 times, at last 29.05.2015 at 14:50.]
Written on: 29. 05. 2015 [15:27]
roman
Roman Savochenko
Moderator
Contributor
Developer
registered since: 12.12.2007
Posts: 3750
"TomPaz-NTUA" wrote:

PS I am not really familiar with svn. How can i download the source code from the link you provided?

http://oscada.org/en/main/download

Learn, learn and learn better than work, work and work.
Written on: 29. 05. 2015 [16:05]
TomPaz-NTUA
Tom Paz
Topic creator
registered since: 28.05.2015
Posts: 6
All versions except the one in websvn are older versions ,the y seem like rev2267 but their code is not with the changes you made today, so no point in downloading them

the one in websvn cannot be dowloaded with conventional svn ckeckout methods. Is there another way to download or it would be easier to wait for the upload tommorow to ftp server?

thank you
Written on: 29. 05. 2015 [16:10]
roman
Roman Savochenko
Moderator
Contributor
Developer
registered since: 12.12.2007
Posts: 3750
"TomPaz-NTUA" wrote:

All versions except the one in websvn are older versions ,the y seem like rev2267 but their code is not with the changes you made today, so no point in downloading them

Really?
roman@mroman:~$ svn info http://oscada.org/svn/trunk/OpenSCADA/
Path: OpenSCADA
URL: http://oscada.org/svn/trunk/OpenSCADA
Relative URL: ^/trunk/OpenSCADA
Repository Root: http://oscada.org/svn
Repository UUID: 7bc60720-51fb-0310-bb35-cf765b5d350c
Revision: 2267
Node Kind: directory
Last Changed Author: roman
Last Changed Rev: 2267
Last Changed Date: 2015-05-29 13:11:10 +0300 (пт, 29 тра 2015)


Learn, learn and learn better than work, work and work.
Written on: 30. 05. 2015 [18:52]
TomPaz-NTUA
Tom Paz
Topic creator
registered since: 28.05.2015
Posts: 6
Good evening everyone,

I successfully downloaded and compiled rev 2267 of OpenScada after the changes Roman made to the code yesterday.
My compilation times reduced to 50 minutes from 4 hours(!!!!) with the previous (buggy) multicore configuration.

Congrats to Roman for this!!

Now the GUI is pretty smooth and as far as i can tell all cores are now used.

However a new problem has risen which requires our attention:

When i create a new project and try to create a new modbus output socket, no matter which port i enter (10502 for instance) in the appropriate field (Address : TCP etc) when i try to run the socket i get a "connect to internet socket error: Operation now in progress!"

But when i launch the existing AGLKS project and go to test Modbus socket i can stop and run the existing output socket without problems and also i can create new modbus output socket at 10502 port without any problem.


:roll::roll:

[This article was edited 1 times, at last 30.05.2015 at 18:53.]
Written on: 01. 06. 2015 [17:14]
roman
Roman Savochenko
Moderator
Contributor
Developer
registered since: 12.12.2007
Posts: 3750
"TomPaz-NTUA" wrote:

When i create a new project and try to create a new modbus output socket, no matter which port i enter (10502 for instance) in the appropriate field (Address : TCP etc) when i try to run the socket i get a "connect to internet socket error: Operation now in progress!"

Sure! Are you have a ModBus/TCP server on port 10502?
See to, before:
$ nmap -p10502 localhost


"TomPaz-NTUA" wrote:

But when i launch the existing AGLKS project and go to test Modbus socket i can stop and run the existing output socket without problems and also i can create new modbus output socket at 10502 port without any problem.

Sure, the DemoDB (AGLKS) provides ModBus/TCP server on port 10502 for tests and demonstrations and a new project will completely empty.

Learn, learn and learn better than work, work and work.
| 1 | 2 | Last



12266