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

Use memfd_create() to create shared memory region on Linux. #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

digit-google
Copy link

These Linux-specific memory regions are significantly better than
/dev/shm ones since they are automatically reclaimed when all
file descriptors pointing to them are closed. Moreover, they do
not have a real filesystem name, so they cannot conflicts when
multiple commands with the same key are launched.

For context, see this bug entry for the Fuchsia build which is
experiencing fsatrace-related issues:

https://bugs.fuchsia.dev/p/fuchsia/issues/detail?id=95360

These Linux-specific memory regions are significantly better than
/dev/shm ones since they are automatically reclaimed when all
file descriptors pointing to them are closed. Moreover, they do
not have a real filesystem name, so they cannot conflicts when
multiple commands with the same key are launched.

For context, see this bug entry for the Fuchsia build which is
experiencing fsatrace-related issues:

  https://bugs.fuchsia.dev/p/fuchsia/issues/detail?id=95360
@jacereda jacereda mentioned this pull request Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants