Questions tagged [memory-mapped-file]
The memory-mapped-file tag has no summary.
9 questions
0
votes
1
answer
273
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 ...
3
votes
1
answer
5k
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 ...
1
vote
1
answer
258
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 ...
0
votes
1
answer
4k
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 ...
-1
votes
1
answer
965
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 ...
1
vote
1
answer
499
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 ...
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 ...
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 ...
5
votes
2
answers
10k
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 ...