Top "Mmap" questions

mmap is a POSIX-compliant Unix system call that maps files or devices into memory.

In linux , how to create a file descriptor for a memory region

I have some program handling some data either in a file or in some memory buffer. I want to provide …

linux mmap
appending to a memory-mapped file

I'm constantly appending to a file of stock quotes (ints, longs, doubles, etc.). I have this file mapped into memory …

c++ boost mmap
How do I choose a fixed address for mmap?

mmap() can be optionally supplied with a fixed location to place the map. I would like to mmap a file …

c linux mmap
mmap: mapping in user space a kernel buffer allocated with kmalloc

Which is the correct way to map in an user space process a buffer allocated with kmalloc? Maybe i didn't …

linux linux-kernel linux-device-driver mmap
MAP_ANONYMOUS with C99 standard

I have an application that uses the mmap system call, I was having an issue getting it to compile for …

c posix glibc mmap
Java OutOfMemory exception: mmap error on loading zip file

I run my app on production env (rhel 5.2 x64, oracle jre 1.7_05, tomcat 7.0.28) with JVM arguments: -Xms8192m -Xmx8192m -XX:…

java out-of-memory java-7 mmap
Mapping an array to a file via Mmap in Go

I'm trying to map an array to a file via Mmap, the array could be any type, like float64. In …

arrays go mmap
How would one prevent MMAP from caching values?

I've written a linux driver that ioremaps exports PCI BAR0 for a particular device to a sysfs binary attribute allowing …

c linux operating-system linux-device-driver mmap
Linux MMAP internals

I have several questions regarding the mmap implementation in Linux systems which don't seem to be very much documented: When …

linux posix mmap
Using mmap and madvise for huge pages

I want to allocate memory on the hugepages being used by a Linux machine. I see that there are two …

c linux memory-management mmap huge-pages