Question regarding pinning of memory
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi, We have written an application that would open a device and then mmap it. In the kernel module the memory is allocated using vmalloc (don't require contiguous physical memory) and in mmap we are calling remap_pfn_range to map the memory to user space. The question is would this mechanism be enough that the memory would be pinned (neither swappable nor the page migration would happen) ? Thanks,Sunil Bhargo
Quoted 7 lines · sunil bhargo
Hi,
We have written an application that would open a device and then
mmap it.
In the kernel module the memory is allocated using vmalloc (don't
require contiguous physical memory) and in mmap we are callingremap_pfn_rangeto map the memory to user space.
The question is would this mechanism be enough that the memory would
be pinned (neither swappable nor the page migration would happen) ?
Recent related question:
https://lore.kernel.org/linux-mm/[email protected]/T/
Signature · 3 lines
Cheers, David / dhildenb