question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Currently 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?

ref: http://man7.org/linux/man-pages/man3/shm_open.3.html

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
tomMoralcommented, Jun 24, 2018

For the record, it appears to be possible to use similar functionality in windows with CreateFileMapping.

0reactions
jakirkhamcommented, May 29, 2019

FWIW it looks like Python 3.8 is getting support for shared memory. So that might be the best path forward at this point.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found