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

remove upper bounds on the number of creatable VMs over corectld (session) lifetime #77

Open
AntonioMeireles opened this issue Jul 5, 2016 · 0 comments
Labels

Comments

@AntonioMeireles
Copy link
Member

there have been so far identified two sets of issues:

  • one derived from how the macOS' vmnet.framework is implemented implies that one only "can create a maximum of 32 interfaces with a limit of 4 per guest operating system" which in practice means that a given Pid/corectld instance in aggregate can't create more than
    128 VMs (interfaces).
  • the other is that if in /var/db/dhcpd_leases there are too many leases once they fill the guest's network block things go (very) wrong.
AntonioMeireles added a commit to AntonioMeireles/corectl that referenced this issue Jul 5, 2016
…ssion

according to https://developer.apple.com/library/mac/documentation/DriversKernelHardware/Reference/vmnet/
one only "can create a maximum of 32 interfaces with a limit of 4 per guest
operating system" which in practice means that a given Pid/corectld instance in
aggregate can't create more than 128 VMs (interfaces).
by doing the UUIDs lookup/validation as an external process "unrelated" from its
parent we get around this limitation and so each corectld session stops having
an 2ˆ7 upper bound on the number the VMs it can create over its lifetime

this commit handles the first part of TheNewNormal#77

Signed-off-by: António Meireles <[email protected]>
AntonioMeireles added a commit that referenced this issue Jul 5, 2016
…ssion

according to https://developer.apple.com/library/mac/documentation/DriversKernelHardware/Reference/vmnet/
one only "can create a maximum of 32 interfaces with a limit of 4 per guest
operating system" which in practice means that a given Pid/corectld instance in
aggregate can't create more than 128 VMs (interfaces).
by doing the UUIDs lookup/validation as an external process "unrelated" from its
parent we get around this limitation and so each corectld session stops having
an 2ˆ7 upper bound on the number the VMs it can create over its lifetime

this commit handles the first part of #77

Signed-off-by: António Meireles <[email protected]>
@AntonioMeireles AntonioMeireles changed the title remove upper bounds on the number of creatable VMs over correctly (session) lifetime remove upper bounds on the number of creatable VMs over corectld (session) lifetime Jul 10, 2016
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