Spaces:
Sleeping
Sleeping
Ticket Name: Linux/TDA2: Measuring load | |
Query Text: | |
Part Number: TDA2 Tool/software: Linux Hi Expert, I'm running Linux Vision SDK v03.02.00(4.4.84) on TDA2Ex. run usecase: "chains_lvdsVipMultiCam_Sgx3Dsrv" Can get the load of DSP1 and M4-2 as the picture below. But the value of A15 is fixed, How to modify? grpxSrcLink_svStandalone_layout.c Int32 GrpxSrcLink_displaySurroundViewStandaloneStats(GrpxSrcLink_Obj *pObj) Delete line 449, 450, The value of A15 is 0. Could you please give some suggestion here? Thanks in advance. | |
Responses: | |
Hi, Currently there isn't support in the VSDK-Linux framework to measure the B/W of A15. To measure the load of A15, Linux itself provides several tools such as top, htop, vmstat etc. It is feasible to monitor the CPU load while the application is running by launching a separate session (using telnet, ssh etc.) and running these commands. Regards Shravan | |
HI, It is expected to use the "load average" in the "top" command as the A15 load monitoring. But don't know how to convert "load average" to percentage(%). How does the value in the top command translate to the load percentage? Figure1,red line → load average: 0.43 Figure2,red line → load average: 14.82 Figure3,red line → load average: 157.15 Figure1,Before executing app.out. Figure2,After executing app.out Figure3,Execute many bc commands Thanks in advance. | |
Hi, You may find the script provided in this link useful. github.com/.../How-Linux-CPU-Usage-Time-and-Percentage-is-calculated Regards Shravan | |
Hi, Use the script inside the link, The result is the same as the "mpuload" command. 100% directly after opening app.out, should this be "usage rate"? I need to know if there is a load limit that has been reached? How much can be used? Figure1,executing app.out. Figure2,exit app.out Thanks in advance. | |
Hi, This means the load on the CPU is 100%. When you run apps.out, there is some code running on A15, which makes the load 100%. Regards Shravan | |
Hi, As shown below, the load is already 100% when app.out is executed, but the bc command can still be executed. It will only reduce the CPU usage of the app.out(81% → 3.8%) and bc commands. Why is the load already 100% still able to execute other commands? How do evaluate the performance of A15 on app.out? Thanks in advance. | |
Hi, I'm not sure what your exact use-case is, however, if you take the VSDK release as is, and run 'apps.out' the A15 load is expected to be 2-3%. 'bc' commands are still able to run, despite 'apps.out' being 100% load, because the scheduler in Linux, schedules processes to run on the core, using various factors. You can find more information here. To determine the load on A15, please use the top command, and the value (100-idle) (present at the head of the top command), will give you the CPU load. Regards Shravan | |
Hi, test bc command: # Echo "scale=5000; 4*a(1)" | bc -l -q As shown in Figure 1, A15 does not execute the bc command. As shown in Figure 2 below, A15 executes a bc command. As shown in Figure 3 below, A15 executes multiple bc commands. How do know how many bc commands can execute on A15? Thanks in advance. | |
Hi, Theoretically it should be possible to run as many tasks as possible, however beyond a certain number of processes more time is spend switching process than executing it. I think the issue pertaining to measuring load on A15 has been addressed. For any further queries, please create a new thread. Regards Shravan | |