Skip to content

Feature Question: Unshare vs Clone #776

Description

@adamsmd

Currently, bubblewrap uses the clone syscall to create a sub-process in a new namespace. However, the unshare syscall could also be used to move the current process into a namespace without having to create a sub-process. This would result in a faster startup time for bubblewrap (in my benchmarks ~30-50% less startup time) and avoids having an extra wrapper process for each bubblewrap.

  • Question 1: Is there a reason for bubblewrap to use clone instead of unshare?

  • Question 2: Would there be any issue with adding a flag for people who want to use unshare instead of clone? (I am considering implementing this for my own uses, but I wanted to check whether you would be receptive to a pull request for this and what you would want to see in such a pull request.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions