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

report out-of-memory usefully #1498

Closed
zookozcash opened this issue Oct 7, 2016 · 6 comments
Closed

report out-of-memory usefully #1498

zookozcash opened this issue Oct 7, 2016 · 6 comments
Labels
I-error-handling Problems and improvements related to error handling M-user-support User support issue memory management usability
Milestone

Comments

@zookozcash
Copy link

A very frequent issue among our users currently is that they run out of RAM, get a mysterious error message like St13runtime_exception, and start asking on our community channels for help.

To close this ticket, make it so at startup it tries to allocate 8 GB of RAM (or whatever), and write to it, and if it can't, then it emits a useful error message that explains to the user "You appear to have too little RAM to run this. We need at least 8 GB of RAM."

Then free the RAM. (Don't worry, the operating system won't let any other processes use it anyway, and later in this process when it tries to allocate that much again, it will work.)

@zookozcash
Copy link
Author

Related: #1083

@zookozcash
Copy link
Author

Example of frustrated user who would be helped by fixing this issue: https://ravibhojwani.wordpress.com/digital-ecomony/

@daira daira added usability memory management I-error-handling Problems and improvements related to error handling labels Oct 18, 2016
@daira daira added this to the Wishlist - Soon After 1.0.1 milestone Oct 18, 2016
@ioptio
Copy link
Contributor

ioptio commented Oct 18, 2016

8GB of RAM? I was able to compile with less as far as I remember.

@ageis
Copy link
Contributor

ageis commented Oct 18, 2016

@ioptio I think this ticket refers to runtime, not build-time.

@ioptio
Copy link
Contributor

ioptio commented Oct 18, 2016

Oh... I get a different error message which is documented on Beta Guide when I run out of RAM on run-time: std::bad_alloc

Ok, sorry. I was directed at this topic with reference to compiling memory problems but that outputs a different error.

Confirming that I see the following when my node runs out of memory:
terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc

@tromer
Copy link
Contributor

tromer commented Dec 23, 2016

Related to #1966, "Reduce memory consumption due to proving key" and #1940, "multi-core proof time & memory measurements".

@str4d str4d removed this from the Wishlist - Soon After 1.0.[Soon] milestone May 25, 2017
@daira daira added this to Work Queue in User Support Jun 12, 2017
@ioptio ioptio moved this from Work Queue to Blocked in User Support Jul 25, 2017
@braddmiller braddmiller added the M-user-support User support issue label Apr 16, 2018
@str4d str4d added this to the v1.1.1 milestone Apr 26, 2018
@str4d str4d added this to In Progress in Arborist Team Apr 26, 2018
zkbot added a commit that referenced this issue May 1, 2018
Terminate immediately when allocation fails

Backport of bitcoin/bitcoin#9856

Closes #1498.
User Support automation moved this from Blocked to Complete May 1, 2018
@str4d str4d moved this from In Progress to Complete in Arborist Team May 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-error-handling Problems and improvements related to error handling M-user-support User support issue memory management usability
Projects
Arborist Team
  
Complete
User Support
  
Complete
Security and Stability
  
Work Queue
Development

No branches or pull requests

7 participants