Автор |
Повідомлення |
Повідомлення створено: 28. 05. 2015 [14:35]
|
TomPaz-NTUA
Tom Paz
Автор теми
Зареєстрован(а) с: 28.05.2015
Повідомлення: 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!
|
Повідомлення створено: 29. 05. 2015 [13:26]
|
roman
Roman Savochenko
Moderator Contributor Developer
Зареєстрован(а) с: 12.12.2007
Повідомлення: 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.
|
Повідомлення створено: 29. 05. 2015 [13:37]
|
TomPaz-NTUA
Tom Paz
Автор теми
Зареєстрован(а) с: 28.05.2015
Повідомлення: 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.
|
Повідомлення створено: 29. 05. 2015 [14:16]
|
roman
Roman Savochenko
Moderator Contributor Developer
Зареєстрован(а) с: 12.12.2007
Повідомлення: 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.
|
Повідомлення створено: 29. 05. 2015 [14:19]
|
TomPaz-NTUA
Tom Paz
Автор теми
Зареєстрован(а) с: 28.05.2015
Повідомлення: 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?
[Повідомлення редагувалось 1 раз(ів), останній раз 29.05.2015 в 14:50.]
|
Повідомлення створено: 29. 05. 2015 [15:27]
|
roman
Roman Savochenko
Moderator Contributor Developer
Зареєстрован(а) с: 12.12.2007
Повідомлення: 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.
|
Повідомлення створено: 29. 05. 2015 [16:05]
|
TomPaz-NTUA
Tom Paz
Автор теми
Зареєстрован(а) с: 28.05.2015
Повідомлення: 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
|
Повідомлення створено: 29. 05. 2015 [16:10]
|
roman
Roman Savochenko
Moderator Contributor Developer
Зареєстрован(а) с: 12.12.2007
Повідомлення: 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.
|
Повідомлення створено: 30. 05. 2015 [18:52]
|
TomPaz-NTUA
Tom Paz
Автор теми
Зареєстрован(а) с: 28.05.2015
Повідомлення: 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:
[Повідомлення редагувалось 1 раз(ів), останній раз 30.05.2015 в 18:53.]
|
Повідомлення створено: 01. 06. 2015 [17:14]
|
roman
Roman Savochenko
Moderator Contributor Developer
Зареєстрован(а) с: 12.12.2007
Повідомлення: 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.
|