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

nix-env beginner problem: can't run on AWS t2.micro EC2 node #2536

Open
rgeary1 opened this issue Nov 13, 2018 · 3 comments
Open

nix-env beginner problem: can't run on AWS t2.micro EC2 node #2536

rgeary1 opened this issue Nov 13, 2018 · 3 comments

Comments

@rgeary1
Copy link

rgeary1 commented Nov 13, 2018

Most tutorials on nix start with "nix-env -qa". However if you run this on a standard AWS free-tier t2.micro node it runs out of memory and kills the machine.
"unable to fork: Cannot allocate memory"...
When the node dies, it requires a hard reboot.

This type of issue has been reported before (#421 NixOS/nixpkgs#12019) but does not specifically address the issue from the perspective of new Nix users like me.

Is there a hard technical reason why "nix-env -qa" requires more than 500Mb of RAM? Or is it possible to significantly improve the memory consumption?

Maybe it is possible to modify nix-env to detect that you are running low on RAM and terminate itself before it kills the machine?

If "nix-env -qA " is considered the right way to query, why not reach out to tutorial writers?

@stale
Copy link

stale bot commented Feb 21, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Feb 21, 2021
@stale
Copy link

stale bot commented Apr 28, 2022

I closed this issue due to inactivity. → More info

@stale stale bot closed this as completed Apr 28, 2022
@thufschmitt thufschmitt reopened this Feb 24, 2023
@vimkim
Copy link

vimkim commented Jan 11, 2024

Still having this problem

@stale stale bot removed the stale label Jan 11, 2024
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

3 participants