-
Notifications
You must be signed in to change notification settings - Fork 842
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
Running out of memory on stack setup
#1479
Comments
I've recently made some changes that change the way that the fork system call determines out of memory conditions. I'll give you repro steps a try and see if things are better on a build with my change (which is not yet released to insiders yet). @KitFreddura - can you clarify what you mean by How are you determining how much ram is being used? |
@benhillis Will there be one more build this year? |
@fpqc - Good question, I honestly don't know. |
Time to bug Dona on Twitter =O! |
@benhillis I used task manager to monitor my memory usage while running |
Yes that should be accurate. And it was showing 4 / 8 gigs in use? |
Yes, exactly that |
Ok, I have confirmed that I was successfully able to run "stack setup" on a build that has my memory fix. How long does that operation typically take on native Ubuntu? It took quite a long time (over an hour) but that could be because I was using a debug driver which has a lot of extra checks and validation. Once I've configured the Haskell tool stack do you have a pointer to some unit tests or other commands I can run to validate everything is functional? |
If you want to smoke-test the hell out of your stack installation, you could try building Pandoc and then running an example or two.
|
Thanks for the pointer. I'll try it again on a non-debug build. |
The memory usage reporting is unrelated. That's related to procfs files not containing actual memory usage info. That issue is being fixed right now. |
I encountered exactly the same problem with 14986. Switching to 15007 solved the problem, however |
As of 15058, I am able to |
I'm getting huge lag when running "stack setup". I left it on for 30 minutes, and while using another terminal, basic command line utilities(ls, cd, git) started taking a very long time(over 10s). Perhaps it is a memory allocation problem.. |
@alandao - The performance issue is being tracked by #1671 - @stehufntdev is working on a fix. |
Please use the following bug reporting template to help produce actionable and reproducible issues. Please try to ensure that the reproduction is minimal so that the team can go through more bugs!
A brief description
I installed ghc and stack on build 14986 and attempted to run
stack setup
.Expected results
This should setup and install the latest version of ghc globally.
Actual results (with terminal output if applicable)
stack setup
runs out of memory when making ghc. However, only 4 GBs of RAM are being used when I have 8. The output from stack:Your Windows build number
14986
Steps / All commands required to reproduce the error from a brand new installation
ghc, stack
The text was updated successfully, but these errors were encountered: