This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

question about system loading

hi,

I use rdk3.0 and  function Vsys_printDetailedStatistics() 

I can see the performance as below

 [m3video]
 [m3video]  161406027: LOAD: CPU: 23.5% HWI: 1.4%, SWI:1.6%
 [m3video]
 [m3video]  161406027: LOAD: TSK: IPC_IN_M30          : 1.0%
 [m3video]  161406027: LOAD: TSK: IPC_BITS_OUT0       : 2.4%
 [m3video]  161406027: LOAD: TSK: ENC0                : 3.9%
 [m3video]  161406028: LOAD: TSK: DEC0                : 0.6%
 [m3video]  161406028: LOAD: TSK: ENC_PROCESS_TSK_0   : 12.1%
 [m3video]  161406028: LOAD: TSK: MISC                : 0.5%
 [m3video]

if I want to see the system loading for each HDVICP, how could I do that?

  • You will see statistics like:

    [m3video]  264820: HDVICP-ID:0
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]    totalAcquire2wait :6 %
     [m3video]    totalWait2Isr :64 %
     [m3video]    totalIsr2Done :0 %
     [m3video]    totalWait2Done :64 %
     [m3video]    totalDone2Release :0 %
     [m3video]    totalAcquire2Release :76 %
     [m3video]    totalAcq2acqDelay :23 %
     [m3video]    totalElapsedTime in msec :  227838
     [m3video]    numAccessCnt:   98428
     [m3video]   IVA-FPS :     433
     [m3video]   Average time spent per frame in microsec:    1480
     [m3video]  264821: HDVICP-ID:1
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]    totalAcquire2wait :5 %
     [m3video]    totalWait2Isr :60 %
     [m3video]    totalIsr2Done :0 %
     [m3video]    totalWait2Done :60 %
     [m3video]    totalDone2Release :0 %
     [m3video]    totalAcquire2Release :72 %
     [m3video]    totalAcq2acqDelay :27 %
     [m3video]    totalElapsedTime in msec :  227840
     [m3video]    numAccessCnt:   87493
     [m3video]   IVA-FPS :     385
     [m3video]   Average time spent per frame in microsec:    1562
     [m3video]  264822: HDVICP-ID:2
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]    totalAcquire2wait :5 %
     [m3video]    totalWait2Isr :62 %
     [m3video]    totalIsr2Done :0 %
     [m3video]    totalWait2Done :63 %
     [m3video]    totalDone2Release :0 %
     [m3video]    totalAcquire2Release :74 %
     [m3video]    totalAcq2acqDelay :25 %
     [m3video]    totalElapsedTime in msec :  227840
     [m3video]    numAccessCnt:   92702
     [m3video]   IVA-FPS :     408
     [m3video]   Average time spent per frame in microsec:    1523
     [m3video]   

     

    which gives loading of each HDVICP.

    Total loading is given by

    totalAcquire2Release value

     

  • Q1. By your speaking, each HDVICP's loading of our following case is (HDVICP-0)9%, (HDVICP-1)0%, (HDVICP-2)0%. Right?

     [m3video]      161403506: HDVICP-ID:0
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]               totalAcquire2wait :9 %
     [m3video]               totalWait2Isr :42 %
     [m3video]               totalIsr2Done :0 %
     [m3video]               totalWait2Done :43 %
     [m3video]               totalDone2Release :0 %
     [m3video]               totalAcquire2Release :9 %
     [m3video]               totalAcq2acqDelay :1 %
     [m3video]               totalElapsedTime in msec :96919440
     [m3video]               numAccessCnt:78892920
     [m3video]              IVA-FPS :     814
     [m3video]              Average time spent per frame in microsec:      12
     [m3video]      161403507: HDVICP-ID:1
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]               totalAcquire2wait :0 %
     [m3video]               totalWait2Isr :0 %
     [m3video]               totalIsr2Done :0 %
     [m3video]               totalWait2Done :0 %
     [m3video]               totalDone2Release :0 %
     [m3video]               totalAcquire2Release :0 %
     [m3video]               totalAcq2acqDelay :0 %
     [m3video]               totalElapsedTime in msec :       0
     [m3video]               numAccessCnt:       0
     [m3video]              IVA-FPS :       0
     [m3video]              Average time spent per frame in microsec:       0
     [m3video]      161403508: HDVICP-ID:2
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]               totalAcquire2wait :0 %
     [m3video]               totalWait2Isr :0 %
     [m3video]               totalIsr2Done :0 %
     [m3video]               totalWait2Done :0 %
     [m3video]               totalDone2Release :0 %
     [m3video]               totalAcquire2Release :0 %
     [m3video]               totalAcq2acqDelay :0 %
     [m3video]               totalElapsedTime in msec :       0
     [m3video]               numAccessCnt:       0
     [m3video]              IVA-FPS :       0
     [m3video]              Average time spent per frame in microsec:       0
     [m3video]

    Q2. Could you explain the meaning of each the above item? Thanks.

  • There is something wrong with the stats you have shared. acquire2Release = SUM of acquire2Wait + Wait2Done + Delta. You can see it in the stats I shared. The only item you should care abt from system load is acquire2release. You don't have to understand the other numbers. They are for debug purpose.

  • There is something wrong with the stats you have shared.
    - how did I know what's up with my system?

    acquire2Release = SUM of acquire2Wait + Wait2Done + Delta. You can see it in the stats I shared.
    - where's "Delta"? I can't find it.

  • Hi Badri,

      Any idea about my two above question?

  • Delta is system overhead which cannot be measured. It is not printed.

    You should see

    acquire2Release >= SUM of acquire2Wait + Wait2Done

    in IVA stats.If this is not the case the stats are wrong.

    I don't know what is wrong with your stats as I have not seen any such issue. If you have done any changes to RDK undo them and check the stats. Also try checking the stats every 10 seconds and see if they are correct.

     

  • Hi badri,

    By my testing and I got following,  totalAcquire2Release for HDVICP0 is almost full.

     [m3video]      153426: HDVICP-ID:0
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]               totalAcquire2wait :9 %
     [m3video]               totalWait2Isr :87 %
     [m3video]               totalIsr2Done :0 %
     [m3video]               totalWait2Done :87 %
     [m3video]               totalDone2Release :0 %
     [m3video]               totalAcquire2Release :98 %
     [m3video]               totalAcq2acqDelay :1 %
     [m3video]               totalElapsedTime in msec :   69059
     [m3video]               numAccessCnt:   56352
     [m3video]              IVA-FPS :     816
     [m3video]              Average time spent per frame in microsec:    1065
     [m3video]      153426: HDVICP-ID:1
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]               totalAcquire2wait :0 %
     [m3video]               totalWait2Isr :0 %
     [m3video]               totalIsr2Done :0 %
     [m3video]               totalWait2Done :0 %
     [m3video]               totalDone2Release :0 %
     [m3video]               totalAcquire2Release :0 %
     [m3video]               totalAcq2acqDelay :0 %
     [m3video]               totalElapsedTime in msec :       0
     [m3video]               numAccessCnt:       0
     [m3video]              IVA-FPS :       0
     [m3video]              Average time spent per frame in microsec:       0
     [m3video]      153427: HDVICP-ID:2
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]               totalAcquire2wait :0 %
     [m3video]               totalWait2Isr :0 %
     [m3video]               totalIsr2Done :0 %
     [m3video]               totalWait2Done :0 %
     [m3video]               totalDone2Release :0 %
     [m3video]               totalAcquire2Release :0 %
     [m3video]               totalAcq2acqDelay :0 %
     [m3video]               totalElapsedTime in msec :       0
     [m3video]               numAccessCnt:       0
     [m3video]              IVA-FPS :       0
     [m3video]              Average time spent per frame in microsec:       0

    And I found the CPU loading below is just 23% instead of 33%,  did you know why? what's the relationship between the following and the above?

     [m3video]
     [m3video]  155948: LOAD: CPU: 23.0% HWI: 1.4%, SWI:1.5%
     [m3video]
     [m3video]  155948: LOAD: TSK: IPC_IN_M30          : 1.0%
     [m3video]  155948: LOAD: TSK: IPC_BITS_OUT0       : 2.3%
     [m3video]  155948: LOAD: TSK: ENC0                : 4.1%
     [m3video]  155948: LOAD: TSK: DEC0                : 0.7%
     [m3video]  155948: LOAD: TSK: ENC_PROCESS_TSK_0   : 11.6%
     [m3video]  155948: LOAD: TSK: MISC                : 0.4%
     [m3video]

     

  • If HDVICP loading is 100% it will cause frames to be dropped as system will no longer be realtime. This will result in lesser CPU load as less frames per second will be processed.