Using shm_open
See original GitHub issueCurrently joblib
makes used of /dev/shm
, which is Linux specific (so not BSD or macOS). However POSIX supports shm_open
and shm_unlink
, which allows one to allocate shared memory on (any?) UNIX. Is this something we might be able to support in joblib
?
Issue Analytics
- State:
- Created 5 years ago
- Comments:17 (7 by maintainers)
Top Results From Across the Web
shm_open
The following code segment demonstrates the use of shm_open() to create a shared memory object which is then sized using ftruncate() before being...
Read more >shm_open(3) - Linux manual page - man7.org
shm_open () creates and opens a new, or opens an existing, POSIX shared memory object. · shm_unlink() function performs the converse operation, ...
Read more >How to use shm_open with mmap properly - Stack Overflow
I am trying to create a shared memory area using examples and documentation I found online. My goal is IPC , ...
Read more >shm_open
The shm_open() function returns a file descriptor that is associated with the shared "memory object" specified by name. This file descriptor is used...
Read more >POSIX shared-memory API - GeeksforGeeks
POSIX shared memory is organized using memory-mapped files, ... create a shared-memory object using the shm_open() system call, as follows:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For the record, it appears to be possible to use similar functionality in windows with CreateFileMapping.
FWIW it looks like Python 3.8 is getting support for shared memory. So that might be the best path forward at this point.