Huge buffer allocation: best place

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi ml,

I need to allocate a huge contiguous buffer (~6MByte) shared with a secondary cpu (a packet processor). Which is the best place and the best way to do this?

The main problem is that using a simple kmalloc at module init time there isn't sufficient contiguous memory to cover the request. I should use (I suppose) the alloc_bootmem_* macros but I'm not sure where is the best place to reserve my memory.

For now I defined a global bad huge vector... but I'm not happy for this solution...

thanks in advance.

luigi

--

Luigi Mantellini

R&D - Software

Industrie Dial Face S.p.A.

Via Canzo, 4

20068 Peschiera Borromeo (MI), Italy

Tel.: +39 02 5167 2813

Fax: +39 02 5167 2459

Email: luigi.mantellini@xxxxxxxxxxx


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux