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.

Linux/DRA746: How to calculate GPU memory usage for single usecase.

Part Number: DRA746


Tool/software: Linux

Hello Team, 

Hello Team, 

We use custom h/w and software based on DRA746 and VSDK 3.04. 

Is there a tool or method for checking graphics memory usage per usecase? 

Regards,

Ikshwaku

  • Hi,

    When you press p after running the usecase to get the stats log there you can search for SCI_GPU_P1 and SCI_GPU_P2 for GPU load.

    Regards,
    Anuj
  • Hello Anuj,

    We dont have the keyboard on our setup.
    We have multiple use cases:
    1. video playback with waylandsink
    2. camera uses cases with M4 core.
    3. Mirror Link app.
    4. Hmi.

    We wants to calculate the per usecase GPU memory usage to optimize our memory allocations.
    Also could you please elaborate a bit about your previous input.

    Regards,
    Ikshwaku
  • Hi,

    You can try running any usecade with a keyboard setup and press p after running the usecase.
    After running usecase you will get some menu saying to stop usecase or print stats.
    P is for print stats.
    After pressing p you will get stats for all cores and other peripherals also.
    There you need to check for SCI_GPU_P1 to get GPU load.

    You can back trace the api calls after pressing p in our usecase to know how GPU load is being retrieved

    Regards,
    Anuj