|
Allocating physically contiguous memory below/above/across 4 GB boundary
|
12/23/2010 11:37 AM
post80250
|
Allocating physically contiguous memory below/above/across 4 GB boundary
Hi All
x86 archi, I am playing around with some memory blocks being excahnged between processes (and hardware DMA-capable).
I always used mmap64() with (MAP_PHYS | MAP_ANON | MAP_NOINIT) flags for asking some physically contiguous memory, but
now I'm running on a machine with more than 4 GB of RAM, and I want to exploit all the available memory, launching
processes with "on -P".
Is there a way to control mmap64() for forcing allocation below 4GB? Processes where 32-bit DMA hardware is managed need
it.
And conversely, it there a way for leaving the kernel free to look for available phys memory also above (or crossing) 4
GB ?
Thanks in advance.
Davide
|
|
|