Questions tagged [shared-memory]
The shared-memory tag has no summary.
82 questions
0
votes
0
answers
49
views
shared mem synchronization with xen
I use xen with a buildroot on the CPU0 and a baremetal written in C on the CPU1.
The arch is ARM64.
The shared mem works with 1k of pages (an array of 4096 values).
I am trying to send data from the ...
0
votes
0
answers
43
views
share memory between Linux and baremetal C apps with XEN on ARM64
with XEN 4.20.0 on the CPU0: Linux (buildroot), on the CPU1 a baremetal project written in C.
I have to share data between Linux <-> baremetal
The best solution I found is to use shared memory ...
1
vote
0
answers
49
views
Ubuntu keeps remounting /dev/shm with different mounting options periodically
I have a Ubuntu 24.04.2 system where /dev/shm gets remounted (I assume) every now and then (roughly each 10 seconds), but I have no idea why. There's no mention of that mounting point in /etc/fstab ...
2
votes
0
answers
265
views
Which consistency guarantees do POSIX shared memory objects have?
On Linux, POSIX shared memory objects [1] use a tmpfs via /dev/shm. A tmpfs in turn is said to "live completely in the page cache" [2] (I'm assuming swap has not been enabled). I am ...
0
votes
1
answer
145
views
Can mmap be used to create a file which references memory subset of another file?
I'm interested in writing a program that can create two files, second file would be a "view" of first file and if modified, the first file would also be modified. Is this possible to do with ...
0
votes
2
answers
965
views
Why does ftruncate with a shared memory object not use memory?
I've observed that I can create a shared memory object and give it ostensibly any size with ftruncate, regardless of the resource limits on my system. The code below sets the size to 262 TB, and ...
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
6k
views
How to Add some System Memory to be shared with the GPU in Linux?
I have switched from Windows 10 to linux mint 21.1
I tried playing GTA 5 on lutris (wine emulation) however the game is almost unplayable on linux as big parts of the map will not load because of my ...
1
vote
1
answer
324
views
Using IPC_CREAT with an already created shared memory segment
I am trying to figure out what will happen if I use the IPC_CREAT flag with shmget(). I have used a key of an already created shared memory segment from another process. When I did so, the calling ...
0
votes
1
answer
299
views
Shared Memory using shmget() and shmat()
We can create and attach a shared memory to a process using shmget() and shmat(). What will happen if we don't destroy and detach the shared memory in Ubuntu OS ? According to my understanding it will ...
0
votes
1
answer
560
views
shmget() and shmat()
Using shmget(), we can allocate a shared memory block of certain size in bytes and using shmat(), we attach this shared memory block to the address space of the calling process.
I need to check my ...
1
vote
1
answer
162
views
What shared memory is not controlled by SHMAX/SHMALL?
We are debugging a situation where the cached/shared memory increase and increase until the system reach OOM-killer.
We have set shmax and shmall in sysctl.conf but without any visible effect. Do we ...
0
votes
1
answer
1k
views
Issues Using GPSD as Source for Chronyd
I am attempting to use a USB GPS without PPS dongle as the sole time source on Ubuntu 18.04. GPSD appears to be working correctly since cgps reports a 3D fix. However, I can't get chrony to see the ...
0
votes
0
answers
529
views
How pass a queue of data from kernel to user space?
I'm currently writing a module for Linux, and I want to pass a queue of data from kernel to user space (my program in userland being responsible for read this data - and then responsible for writing ...
2
votes
1
answer
818
views
Browser (Opera, Chromium...) start causing Permission denied (13) error for shared memory
Using Manjaro / Arch linux, I wanted to install another browser. However, no matter whether I installed Opera or Chromium (via pacman) I always get an error when executing it (from both Application ...