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.

TDA2PXEVM: TDA2PXEVM

Part Number: TDA2PXEVM

On performance statistics analysis it is observed that VPE link have frame drop.

The number of input channel is 4.

In  channel id 1 and 3 the received FPS is 31 and  Processed FPS also 31.

while in other two channel id 0 and 2, received FPS is 31 but processed FPS is 7 and 8 respectively.

The Vision SDK link VPE is used.

Next issue is with the SYNC node in Vision SDK. The SYNC node is used right after VPE, but received FPS for channel id 0,1,2 and 3 is 0.16, 0.13,0.16, 0.9 and Processed 0.9 FPS.

Why this much of frame drop is happening in these nodes?

Use case is :

UseCase: chains_nullSrc_Display

NullSource (A15) -> Decode -> VPE -> Sync (A15) -> Alg_SurroundView3d (DSP1) -> SgxCarDisplay (A15)


//
SgxCarDisplay -> Display_M4 (IPU1_0)


// Graphics overlay display
//
GrpxSrc -> Display_Grpx

SDK Version 03.07.00.00.

 Please help in solving the issue.

  • Hi,

    1) Share the log with statistics in a text file.

    2) Follow the suggestions mentioned in the below thread.

    Thanks

    Gaviraju

  • [HOST] [HOST ] p: Print Performance Statistics
    [HOST] [HOST ]
    [HOST] [HOST ] Enter Choice:
    [HOST] [HOST ]
    [HOST] [DSP1 ] 143.071768 s:
    [HOST] [DSP1 ] 143.071798 s: [ IPC_IN_0 ] Link Statistics,
    [HOST] [DSP1 ] 143.071829 s: ******************************
    [HOST] [DSP1 ] 143.071829 s:
    [HOST] [DSP1 ] 143.071829 s: Elapsed time = 27878 msec
    [HOST] [DSP1 ] 143.071859 s:
    [HOST] [DSP1 ] 143.071890 s: Get Full Buf Cb = 0.17 fps
    [HOST] [DSP1 ] 143.071890 s: Put Empty Buf Cb = 0.17 fps
    [HOST] [DSP1 ] 143.071920 s: Driver/Notify Cb = 33.50 fps
    [HOST] [DSP1 ] 143.071951 s:
    [HOST] [DSP1 ] 143.071951 s: Input Statistics,
    [HOST] [DSP1 ] 143.071951 s:
    [HOST] [DSP1 ] 143.071981 s: CH | In Recv | In Drop | In User Drop | In Process
    [HOST] [DSP1 ] 143.071981 s: | FPS | FPS | FPS | FPS
    [HOST] [DSP1 ] 143.072012 s: --------------------------------------------------
    [HOST] [DSP1 ] 143.072042 s: 0 | 0.17 0. 0 0. 0 0.17
    [HOST] [DSP1 ] 143.072103 s:
    [HOST] [DSP1 ] 143.072103 s: Output Statistics,
    [HOST] [DSP1 ] 143.072103 s:
    [HOST] [DSP1 ] 143.072134 s: CH | Out | Out | Out Drop | Out User Drop
    [HOST] [DSP1 ] 143.072134 s: | ID | FPS | FPS | FPS
    [HOST] [DSP1 ] 143.072164 s: ---------------------------------------------
    [HOST] [DSP1 ] 143.072195 s: 0 | 0 0.17 0. 0 0. 0
    [HOST] [DSP1 ] 143.072225 s:
    [HOST] [DSP1 ] 143.072256 s: [ IPC_IN_0 ] LATENCY,
    [HOST] [DSP1 ] 143.072256 s: ********************
    [HOST] [DSP1 ] 143.072286 s: Local Link Latency : Avg = 18 us, Min = 0 us, Max = 31 us,
    [HOST] [DSP1 ] 143.072317 s: Source to Link Latency : Avg = 2351433 us, Min = 45058 us, Max = 6769323 us,
    [HOST] [DSP1 ] 143.072347 s:
    [HOST] [DSP1 ] 143.072347 s: [ IPC_IN_0 ] Detailed IPC Latency Statistics [ HOST -> DSP1 ] ,
    [HOST] [DSP1 ] 143.072378 s: ***************************************************************
    [HOST] [DSP1 ] 143.072408 s: IPC One-way Buffer Passing Latency (usecs) : Avg = 91, Min = 91, Max = 92
    [HOST] [DSP1 ] 143.072439 s: IPC One-way Notify Interrupt Latency (usecs) : Avg = 61, Min = 61, Max = 61
    [HOST] [DSP1 ] 143.072591 s:
    [HOST] [DSP1 ] 143.072622 s: [ ALG_SURROUNDVIEW3D ] Link Statistics,
    [HOST] [DSP1 ] 143.072622 s: ******************************
    [HOST] [DSP1 ] 143.072652 s:
    [HOST] [DSP1 ] 143.072652 s: Elapsed time = 27878 msec
    [HOST] [DSP1 ] 143.072683 s:
    [HOST] [DSP1 ] 143.072683 s: New data Recv = 0.14 fps
    [HOST] [DSP1 ] 143.072713 s:
    [HOST] [DSP1 ] 143.072713 s: Input Statistics,
    [HOST] [DSP1 ] 143.072744 s:
    [HOST] [DSP1 ] 143.072744 s: CH | In Recv | In Drop | In User Drop | In Process
    [HOST] [DSP1 ] 143.072774 s: | FPS | FPS | FPS | FPS
    [HOST] [DSP1 ] 143.072805 s: --------------------------------------------------
    [HOST] [DSP1 ] 143.072835 s: 0 | 0.17 0. 0 0. 0 0.17
    [HOST] [DSP1 ] 143.072866 s:
    [HOST] [DSP1 ] 143.072866 s: Output Statistics,
    [HOST] [DSP1 ] 143.072866 s:
    [HOST] [DSP1 ] 143.072896 s: CH | Out | Out | Out Drop | Out User Drop
    [HOST] [DSP1 ] 143.072927 s: | ID | FPS | FPS | FPS
    [HOST] [DSP1 ] 143.072927 s: ---------------------------------------------
    [HOST] [DSP1 ] 143.072957 s: 0 | 0 0.17 0. 0 0. 0
    [HOST] [DSP1 ] 143.072988 s:
    [HOST] [DSP1 ] 143.073018 s: [ ALG_SURROUNDVIEW3D ] LATENCY,
    [HOST] [DSP1 ] 143.073049 s: ********************
    [HOST] [DSP1 ] 143.073049 s: Local Link Latency : Avg = 1719630 us, Min = 461630 us, Max = 6750412 us,
    [HOST] [DSP1 ] 143.073079 s: Source to Link Latency : Avg = 4071149 us, Min = 968668 us, Max = 7231685 us,
    [HOST] [DSP1 ] 143.073110 s:
    [HOST] [DSP1 ] 143.073262 s:
    [HOST] [DSP1 ] 143.073262 s: [ IPC_OUT_0 ] Link Statistics,
    [HOST] [DSP1 ] 143.073293 s: ******************************
    [HOST] [DSP1 ] 143.073323 s:
    [HOST] [DSP1 ] 143.073323 s: Elapsed time = 21129 msec
    [HOST] [DSP1 ] 143.073354 s:
    [HOST] [DSP1 ] 143.073354 s: New data Recv = 0.23 fps
    [HOST] [DSP1 ] 143.073384 s: Release data Recv = 0.23 fps
    [HOST] [DSP1 ] 143.073384 s: Driver/Notify Cb = 33.60 fps
    [HOST] [DSP1 ] 143.073415 s:
    [HOST] [DSP1 ] 143.073415 s: Input Statistics,
    [HOST] [DSP1 ] 143.073445 s:
    [HOST] [DSP1 ] 143.073445 s: CH | In Recv | In Drop | In User Drop | In Process
    [HOST] [DSP1 ] 143.073476 s: | FPS | FPS | FPS | FPS
    [HOST] [DSP1 ] 143.073506 s: --------------------------------------------------
    [HOST] [DSP1 ] 143.073506 s: 0 | 0.23 0. 0 0. 0 0.23
    [HOST] [DSP1 ] 143.073537 s:
    [HOST] [DSP1 ] 143.073567 s: Output Statistics,
    [HOST] [DSP1 ] 143.073567 s:
    [HOST] [DSP1 ] 143.073598 s: CH | Out | Out | Out Drop | Out User Drop
    [HOST] [DSP1 ] 143.073598 s: | ID | FPS | FPS | FPS
    [HOST] [DSP1 ] 143.073628 s: ---------------------------------------------
    [HOST] [DSP1 ] 143.073659 s: 0 | 0 0.23 0. 0 0. 0
    [HOST] [DSP1 ] 143.073689 s:
    [HOST] [DSP1 ] 143.073689 s: [ IPC_OUT_0 ] LATENCY,
    [HOST] [DSP1 ] 143.073720 s: ********************
    [HOST] [DSP1 ] 143.073720 s: Local Link Latency : Avg = 0 us, Min = 0 us, Max = 0 us,
    [HOST] [DSP1 ] 143.073750 s: Source to Link Latency : Avg = 4071363 us, Min = 968790 us, Max = 7231868 us,
    [HOST] [DSP1 ] 143.073781 s:

    This is the log file.

  • Hi, 

    Someone please help in solving the issue.

  • Hi,

    Form the log we analyzed, the custom link running on DSP is taking more time to process the frame. So please optimize your custom link algorithm.

    FPS =  (1000 ms ) / (The link taking maximum time) 

    FPS = 1000 / 1719

    FPS ~= 0.5

    Conclusion: This use-case can process 0.5FPS only, so optimize the custom algorithm running on the DSP.

    Thanks

    Gaviraju

  • How can we optimise the algorithm running in DSP core?