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

Using all host resources? (CPU, RAM) #296

Open
bachrc opened this issue Sep 29, 2023 · 1 comment
Open

Using all host resources? (CPU, RAM) #296

bachrc opened this issue Sep 29, 2023 · 1 comment

Comments

@bachrc
Copy link

bachrc commented Sep 29, 2023

Hello! I love using nix-on-droid, and it works really well! Though, I'd have a question.

When developing on nix-on-droid, sometimes this is quite slow, even on a high end phone (12GB of RAM, etc.). What are resources limitations, and is there a way to unlock this?

Thanks in advance!

@t184256
Copy link
Collaborator

t184256 commented Sep 29, 2023

IO is quite slow and CPU-intensive because it goes through proot, which we use for unprivileged mounting. If devices will support unprivileged mount namespaces one day, they could be used instead, but I'm not sure what's happening first, this or proper VMs =) If you have root, there is a theoretical possibility to not use proot, but nobody has explored that so far AFAIK.

Non-IO CPU-heavy tasks should have native performance, RAM consumption should behave the same as on other non-NixOS Linux with Nix and an equivalent config.

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

No branches or pull requests

2 participants