Top "Mmap" questions

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

Shmem vs tmpfs vs mmap

Does someone know how well the following 3 compare in terms of speed: shared memory tmpfs (/dev/shm) mmap (/dev/shm) …

c++ linux mmap
Why use shm_open?

What's the advantage of doing: shm_open followed a mmap? Why not create a regular file, and then pass that …

c linux buffer shared-memory mmap
mmap and memory usage

I am writing a program that receives huge amounts of data (in pieces of different sizes) from the network, processes …

linux memory memory-management mmap
How does mmap work?

I am working on programs in Linux which needs mmap file from harddrive, but i have a question, what can …

linux memory malloc mmap
Python mmap 'Permission denied' on Linux

I have a really large file I'm trying to open with mmap and its giving me permission denied. I've tried …

python mmap permission-denied
Examining mmaped addresses using GDB

I'm using the driver I posted at Direct Memory Access in Linux to mmap some physical ram into a userspace …

gdb mmap
Do I need to keep a file open after calling mmap on it?

I have a program that maps quite a few (100's) of sizable files 10-100MB each. I need them all …

c mmap
Does malloc() use brk() or mmap()?

c code: // program break mechanism // TLPI exercise 7-1 #include <stdio.h> #include <stdlib.h> void program_…

c memory-management malloc mmap sbrk
What if I allocate memory using mmap instead of malloc?

What are the disadvantages of allocating memory using mmap (with MAP_PRIVATE and MAP_ANONYMOUS) than using malloc? For data …

c linux memory-management malloc mmap
Print the symbol table of an ELF file

I have a program which uses the mmap system call: map_start = mmap(0, fd_stat.st_size, PROT_READ | PROT_…

c elf mmap symbol-table