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

Could this OpenVZ optimization be doable/useful? #400

Open
itsjohncs opened this issue Dec 29, 2013 · 3 comments
Open

Could this OpenVZ optimization be doable/useful? #400

itsjohncs opened this issue Dec 29, 2013 · 3 comments
Labels

Comments

@itsjohncs
Copy link
Contributor

We may be able to mount most of the directories in the container's root file systems such that all the containers share much of their file systems, and only the home directories ever change. See this StackOverflow thread regarding sharing files between OpenVZ containers
.
I imagine that the mounting could be done between creating the container and actually starting it. I think this will definitely be worth playing with because it could greatly speed up our container creation time without resorting to using RAM disks.

@itsjohncs
Copy link
Contributor Author

Added this into the 4-month sprint milestone because this optimization would really be amazingly beneficial if it works out, and should be simple enough to implement and work with. I really hope it works 😟.

@itsjohncs
Copy link
Contributor Author

400th issue! Wooooo 🍰

@itsjohncs
Copy link
Contributor Author

This is looking pretty solidly viable. I'm reading about bind mounts and I'm sad I didn't know about them before since I could have used them when I was using a lot of chroot jails in the past. Creating a read-only bind mounts seems doable, though it appears there used to be some bugs in the implementation of them in the Linux kernel so I'll want to be wary. I can bind mount everything in /etc, /bin, and /usr without problems most likely. If I carefully prune the services running in the VM I can probably get some other ones as well. 👯

@itsjohncs itsjohncs removed this from the 0.3 Backend Alpha Release milestone Aug 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant