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.

关于pool的分配

Other Parts Discussed in Thread: DM3730

您好,我用的DM3730的平台在loadmodules.sh修改关于pools的部分,

#CMEM_MODPARAMS="phys_start=0x91000000 phys_end=0x92000000 pools=20x4096,10x131072,2x1048576"
CMEM_MODPARAMS="phys_start=0x91000000 phys_end=0x92000000 pools=2x1310720 "

然后执行app端程序返回如下,按照串口返回的heap的信息,我应该已经成功分配了2*1310720的pool,为什么还是fail to fit呢?求给点建议,app端我在

#define NSAMPLES    1310720  /* must be multiple of 128 for cache/DMA reasons */   将原本的1024改成了1310720,原因是我需要处理的图片较大,而且需要边缘提取的操作需要整体读入,

allocated heap buffer 0xd1000000 of size 0xd80000
cmemk initialized
DSPLINK Module (1.65.01.05_eng) created on Date: Jun 7 2016 Time: 00:36:00
root@dm37x-evm:/media/sda1# ./app_remote.xv5T
@0x0007b751:[T:0x4001e320] ti.sdCMEMK Error: Failed to find a pool which fits 1310720
o.ce.examples.apps.video_copy - main> ti.sdo.ce.examples.apps.video_copy
@0x0007b8bf:[T:0x4001e320] ti.sdo.ce.examples.apps.video_copy - App-> Application started.
CMEM Error: getPool: Failed to get a pool fitting a size 1310720

  • Xu Bin,

    会不会系统代码在其他地方也申请了cmem的pool,因为你配置里面就只有两个pool,导致的错误?

    你能否保留原来的pool,添加两个1310720的pool,看看是有效?

  • 昨天已按照你的方法修改生效,感谢你的回答!

  • 您好 我也遇到了这个问题 想问下您相关的问题
    Pipeline state changed from NULL to READY:
    dynamic_addpad In dynamic ADDING PAD
    dynamic_addpad In dynamic ADDING PAD2
    [ 124.310000] CMEMK Error: Failed to find a pool which fits 1843200
    CMEM Error: getPool: Failed to get a pool fitting a size 1843200
    Failed to allocate memory.
    Segmentation fault

    这是我的打印信息,

    insmod cmemk.ko phys_start=0x85000000 phys_end=0x88000000 pools=1x384,1x384,1x896,1x2688,64x4096,1x5632,2x6656,1x10240,1x13184,2x30720,1x58144,1x65792,1x91138,1x190474,1x193756,1x197016,1x282624,1x2097152,1x6500000,1x13000000,1x19000000 allowOverlap=1 phys_start_1=0x00001000 phys_end_1=0x00008000 pools_1=1x28672
    这是CMEM的配置信息

    有两个问题请教 这个pool的大小是怎么算的 pool是怎么选择的

    谢谢您了
  • 您好 我同样也遇到了这个问题 想请教下您的解决办法 谢谢啦