HARK FORUM › Increasing CPU load with release HARK 3.0
January 9, 2019 at 5:48 pm #698
I installed hark 3.0 and found that the network requires 6 times more CPU resources to work.
The network is used for localization and separation. ROS modules are also used. Linux is used.
Hark 2.5 CPU load – 20-40% / 800%
Hark 3.0 CPU load – 120-150% / 800%
CPU – Intel® Core ™ i7-6700 CPU @ 3.40GHz × 8
Tell me, please, what could be the reason for such an increase?January 10, 2019 at 11:43 am #699
To better assist you, would you mind providing the following information.
1. Is the increase in CPU load average or was it a peak seen in the initialization of the network file.
2. The Ubuntu and ros version used.
3. If possible, the network used when this observation was made.
c.santiagoJanuary 10, 2019 at 5:02 pm #700
1. This is the average CPU load when the network is running.
2. OS – Ubuntu 16.04.5 LTS 64-bit, ROS – kinetic
3. If by using the network you understand the presence of active sources, then on average the load is the same as in the absence of active sources. When new active sources appear, a small peak of load occurs.January 10, 2019 at 5:49 pm #701
I do apologize for not being more specific.
The network is what we referrer to as the file created and saved using hark_designer.
We have conducted a few test and have not seen a major increase on the load on our CPU when using HARK 3.0 installed on Ubuntu 16.04. For the tests, the network used localization and separation nodes, to be more specific LocalizeMUSIC and GHDSS.
We have however, found that the CPU load was increased significantly(up to 60% in our tests) when installing HARK 3.0 on Ubuntu 18.04.
The source code is the same for both Ubuntu 16.04 and Ubuntu 18.04 so, the reason for the load increase may lie somewhere else.
As you mentioned, you are currently using Ubuntu 16.04 so the sharp increase in CPU load should not have effected your environment.
To get to the bottom of the increase in CPU load you have noted, we would like to see the parameters and nodes used in your network file to see if we can replicate your results.
c.santiagoJanuary 10, 2019 at 7:26 pm #708
There may be different versions of the system kernel. I have installed Linux version 4.15.0-34-generic.
Network is attached.
First argument is device id, second argument is matrix (Localization and Separation) path.
Attachments:January 11, 2019 at 2:02 pm #714
Thank you for providing your network file.
We have found the core issue of the problem.
HARK 2.5 only supported single thread processing, HARK 3.0 on the other hand now uses blas/openblas which allows multi threading.
The workload is spread over all the available CPU which caused the load you were experiencing.
Depending on the kind of process, the threads may not be efficiently used.
To reproduce the same load you had using HARK 2.5, please limit the process to a single thread.
This can be done by running the following command.
January 11, 2019 at 4:10 pm #718
- This reply was modified 2 months, 1 week ago by c.santiago.
Thank you for the help and quick answers!
The problem is solved.
You must be logged in to reply to this topic.