3,204 questions
0 votes
0 answers
83 views
Python can't run multiprocessing while containerized [closed]
Currently transferring a Python 3.12 program from local to a container environment, while it runs and completes its task locally it crashes on Docker in the early stages of the run. /home/app/.../....
3 votes
1 answer
75 views
Accessing any object type from multiprocessing shared_memory?
Suppose I create a shared memory object: from multiprocessing import shared_memory shm_a = shared_memory.SharedMemory(create=True, size=1024) buffer = shm_a.buf and put a generic object of a generic ...
1 vote
1 answer
90 views
php Sharing data between Cli and WEB ownership problems
I have a service that execute some bash scripts based on external events, in this scripts I call php cli to execute some php code running with account "A". I have a web site that needs some ...
2 votes
2 answers
89 views
Is it possible to create numpy array in shared_memory using custom dtypes?
I can succesfully create numpy arrays with simple dtypes (int32 etc). But when i try to use something like : b_shared_memory = shared_memory.SharedMemory(create=True, name = "test235", size =...
0 votes
1 answer
183 views
How to properly use VK_KHR_external_memory for sharing memory between two processes using Vulkan API
I am trying to share memory between two Vulkan processes (using the same NVidia gpu device) using the VK_KHR_external memory extension on Linux (Ubuntu 22). I create a buffer/device memory (and ...
0 votes
1 answer
178 views
Shared memory leaks in Python 3
I experience problems with SharedMemory() in Python 3.12.0, it is not properly released. I use below context manager to handle share memory segments: @contextmanager def managed_shm(name=None, size=0, ...
2 votes
1 answer
104 views
shared red black tree among processes
I want to create a red-black tree that it is shared among different forked processes. Linking to an old question of mine old_question there cannot be resizable data structures in the shared memory (...
0 votes
0 answers
70 views
Does the mirai package use shared memory parallelism?
Does the mirai R package use shared memory parallelism? The parallel package uses shared memory parallelism with the mc* (e.g. mclapply) functions and fork clusters, in the sense that the input data ...
0 votes
0 answers
20 views
lockf for shm_open fd
Using shm_open to communicate between client and server. How to guarantee client and server will not double initialize. // server.c int main() { int shm_fd = shm_open("/my_shm", O_CREAT |...
1 vote
1 answer
87 views
Can pthread_barrier_t be used across multiple processes with shared memory?
I'm working on a C++ application that launches multiple processes. All of them load the same executable and share a memory region using shm_open + mmap. In that shared memory, we store a ...
2 votes
0 answers
111 views
Shared memory between RISCV vm (using Qemu) and host
I can't set correctly shared memory for Qemu RISCV emulation. My intention is to create a portion of shared memory between Qemu RISCV emulator and the host server. I need this because my intention ...
4 votes
1 answer
127 views
Shared memory disappears after writer process finishes, even though shmctl is not used to remove it
I am using System V shared memory in my program. The writer process successfully creates the shared memory using shmget(). When the writer process ends, I notice that the shared memory segment ...
7 votes
2 answers
571 views
Best Approach for Managing Shared Memory Cleanup on Linux?
I am trying to create a Rust library to simplify working with shared memory on Linux. Processes would only be able to request shared memory through the library, but I cannot guarantee that they won't ...
2 votes
0 answers
81 views
Memory Lock Without Atomic RMW Operations
I'm working with a fiber-optic reflective memory card (RFM2g model), which lacks atomic read-modify-write operations. My goal is to implement a spinlock across multiple processes (potentially running ...
0 votes
1 answer
88 views
shared list among processes in C modifications do not reflect in the list again
I am trying a simple programm that creates multiple processes, each process takes a pair of an int and a bool from a list changes the boolean value and reinserts it if it is found false otherwise just ...