Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider putting a tmpfs at /dev/shm, to support shm_open and friends. #3196

Closed
zenhack opened this issue Jan 31, 2020 · 6 comments · Fixed by #3263
Closed

Consider putting a tmpfs at /dev/shm, to support shm_open and friends. #3196

zenhack opened this issue Jan 31, 2020 · 6 comments · Fixed by #3263
Labels
app-platform App/Sandstorm integration features

Comments

@zenhack
Copy link
Collaborator

zenhack commented Jan 31, 2020

background: yesterday @orblivion hit an issue where postgres wouldn't start because it was trying to open something in /dev/shm, which doesn't currently exist in the sandbox. It may be possible to work around this, but it seems sensible to make a tmpfs available to grains at /dev/shm to generally improve compatibility with software that expects it.

@ocdtrekkie ocdtrekkie added the app-platform App/Sandstorm integration features label Jan 31, 2020
@ocdtrekkie
Copy link
Collaborator

This sounds plausibly harmless, after I read what /dev/shm is. Are there any downsides you can think of? Postgres support is pretty important, I think, there's several interesting apps that expect it as their sole supported database.

@orblivion
Copy link
Contributor

orblivion commented Jan 31, 2020 via email

@kentonv
Copy link
Member

kentonv commented Feb 3, 2020

Yeah this would be fine, and should be easy. I believe /dev in the sandbox is already a tmpfs, so probably we just need one extra mkdir() in there to create shm.

@zenhack
Copy link
Collaborator Author

zenhack commented Feb 3, 2020 via email

@kentonv
Copy link
Member

kentonv commented Feb 15, 2020

@zenhack I mean we should add a mkdir() to the supervisor to create this directory at the same time as it creates the rest of dev's contents.

zenhack added a commit to zenhack/sandstorm that referenced this issue Mar 10, 2020
...To get shm_open() and friends working.

Fixes sandstorm-io#3196.
zenhack added a commit to zenhack/sandstorm that referenced this issue Mar 10, 2020
...To get shm_open() and friends working.

Fixes sandstorm-io#3196.
zenhack added a commit to zenhack/sandstorm that referenced this issue Mar 27, 2020
...To get shm_open() and friends working.

Fixes sandstorm-io#3196.
zenhack added a commit to zenhack/sandstorm that referenced this issue Mar 27, 2020
...To get shm_open() and friends working.

Fixes sandstorm-io#3196.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app-platform App/Sandstorm integration features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants