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.

DM8148 Encoder Memory Utilization Question

I'm developing on the DM8148 using the TI_EZSDK_5_05_02_00. There is 512 MB's of memory available and I've followed the directions here to make all needed changes:

http://processors.wiki.ti.com/index.php/EZSDK_Memory_Map#Changing_Memory_Map_For_512MB_DM814x_Board

The board boots and I can load the provided FW(dm814x_hdvicp.xem3 and dm814x_hdvpss.xem3) and can successfully run the sample code (encode_a8host_debug and decode_a8host_debug).

Before I run the sample code, I see I have ~91MB of RAM left.

root@dm814x-evm:~# free
              total         used         free       shared      buffers
  Mem:       167948        76500        91448            0          852
 Swap:            0            0            0
Total:       167948        76500        91448
root@dm814x-evm:~#

 

However, after I run the sample code, I see I only have ~65 MB of RAM left.

root@dm814x-evm:/mnt/nfs# free
              total         used         free       shared      buffers
  Mem:       167948       102860        65088            0          852
 Swap:            0            0            0
Total:       167948       102860        65088

 

From my understanding, I thought the hardware uses memory that's been mapped elsewhere outside of the Linux kernel, such as IPC_SR_FRAME_BUFFERS. Why is there any memory taken from Linux? The encoded files are valid and play as expected.

Can someone help me figure this out?

Thanks!

  • Hello,

    cat /proc/meminfo

    echo 1 > /proc/sys/vm/drop_caches

    or

    echo 3 > /proc/sys/vm/drop_caches

    Are you playing OMX decode_display demo?

    BR

    Margarita

  • Hello,

    root@dm814x-evm:/mnt/nfs# cat /proc/meminfo
    MemTotal:         167948 kB
    MemFree:            4380 kB
    Buffers:             512 kB
    Cached:           107784 kB
    SwapCached:            0 kB
    Active:            21176 kB
    Inactive:          88280 kB
    Active(anon):      11372 kB
    Inactive(anon):      136 kB
    Active(file):       9804 kB
    Inactive(file):    88144 kB
    Unevictable:           0 kB
    Mlocked:               0 kB
    HighTotal:             0 kB
    HighFree:              0 kB
    LowTotal:         167948 kB
    LowFree:            4380 kB
    SwapTotal:             0 kB
    SwapFree:              0 kB
    Dirty:                12 kB
    Writeback:             0 kB
    AnonPages:          1188 kB
    Mapped:             1288 kB
    Shmem:             10348 kB
    Slab:               4612 kB
    SReclaimable:       1844 kB
    SUnreclaim:         2768 kB
    KernelStack:         392 kB
    PageTables:          176 kB
    NFS_Unstable:          0 kB
    Bounce:                0 kB
    WritebackTmp:          0 kB
    CommitLimit:       83972 kB
    Committed_AS:      32132 kB
    VmallocTotal:     729088 kB
    VmallocUsed:      239404 kB
    VmallocChunk:     468988 kB
    root@dm814x-evm:/mnt/nfs# echo 1 > /proc/sys/vm/drop_caches
    root@dm814x-evm:/mnt/nfs# cat /proc/meminfo
    MemTotal:         167948 kB
    MemFree:          101120 kB
    Buffers:              36 kB
    Cached:            11860 kB
    SwapCached:            0 kB
    Active:            12624 kB
    Inactive:            424 kB
    Active(anon):      11372 kB
    Inactive(anon):      136 kB
    Active(file):       1252 kB
    Inactive(file):      288 kB
    Unevictable:           0 kB
    Mlocked:               0 kB
    HighTotal:             0 kB
    HighFree:              0 kB
    LowTotal:         167948 kB
    LowFree:          101120 kB
    SwapTotal:             0 kB
    SwapFree:              0 kB
    Dirty:                12 kB
    Writeback:             0 kB
    AnonPages:          1188 kB
    Mapped:             1292 kB
    Shmem:             10348 kB
    Slab:               4304 kB
    SReclaimable:       1536 kB
    SUnreclaim:         2768 kB
    KernelStack:         392 kB
    PageTables:          176 kB
    NFS_Unstable:          0 kB
    Bounce:                0 kB
    WritebackTmp:          0 kB
    CommitLimit:       83972 kB
    Committed_AS:      32132 kB
    VmallocTotal:     729088 kB
    VmallocUsed:      239404 kB
    VmallocChunk:     468988 kB
    root@dm814x-evm:/mnt/nfs# free
                  total         used         free       shared      buffers
      Mem:       167948        67024       100924            0           44
     Swap:            0            0            0
    Total:       167948        67024       100924

    How come the program used so much cached memory?

    I'm using the OMX decode demo, not the decode_display demo.

    Thanks,

    Shaun