Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [memory-mapped-file]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
15 views

How to analyse cause of memory usage not shown by htop

How can I best debug the following issue from here on? I have a python application running in a podman container which has plenty disk I/O due to a numpy memmap of two huge files, one input file ...
Semnodime's user avatar
  • 367
1 vote
1 answer
2k views

Is it possible for two processes to use the same shared-memory without resorting to a file to obtain it, be it a memory-mapped file or /dev/shm file?

I'm curious because today the only way I know how to give two different processes the same shared-memory is through a memory-mapped file, in other words, both processes open the same memory-mapped ...
ThreadFrank's user avatar
1 vote
1 answer
112 views

Why does linux freezes when trying to access peripherals connected to the lightweight hps-to-fpga bridge (or any bridge)?

I have been working on a Altera DE1-SoC Development Board for 8 months. The system I was working on includes a Cyclone V FPGA chip, particularly the 5CSEMA5F31C6N. It was running an embedded Linux ...
SMAero22's user avatar
0 votes
1 answer
2k views

Trying to understand memory-mapping with C++ in Linux environment

I've been tasked at worked to explore memory mapping to see if we can utilize it. I'm trying to wrap my head around the concept and how to write the code. I've been trying out the code in the ...
Many Questions's user avatar
-1 votes
1 answer
844 views

What is the path of data transfer when using memory mapped file?

Is there any difference between the data transfer paths using read()/write() and using mmap() on a file? What does "kernel" mean in https://stackoverflow.com/a/41419353? mmap doesn't ...
Tim's user avatar
  • 102k
1 vote
1 answer
422 views

Memory map to process for a large code segment

I know that pmap of a process shows how the memory mapping is done. For example, the first lines of pmap output shows the memory mapping to the text segment of the process' executable. Assume I have a ...
Franc's user avatar
  • 289
1 vote
1 answer
2k views

Allow partial memory mapping of /dev/mem

I have a SoC-FPGA(DE0-nano-soc) which contains an ARM-Cortex-A9 cpu with a Cyclone V FPGA on a single chip. the CPU has access to 1gb of DDR3 memory but the FPGA can also access this memory so they ...
John Smith's user avatar
5 votes
2 answers
4k views

Is memory mapped I/O only used internally by OS, not exposed to and used by programmers on top of Linux?

In Operating System Concepts, memory mapped files and memory mapped I/O are two different things. See below about memory mapped I/O. To use memory mapped files, we have mmap(). To use memory ...
Tim's user avatar
  • 102k
4 votes
2 answers
9k views

Are sharing a memory-mapped file and sharing a memory region implemented based on each other?

Are sharing a memory-mapped file and sharing a memory region implemented based on each other? The following two quotes seem to say so, and seem a chicken-egg problem to me. Operating System Concepts ...
Tim's user avatar
  • 102k