-
Notifications
You must be signed in to change notification settings - Fork 231
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
Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS macaulay #500
Comments
The problem is that if you are using the Boehm garbage collector that comes with your packaging system (the default for many systems), it often is compiled for small memory use. Here is one relevant environment variable for controlling the garbage collector:
For example, try running (in bash, or in emacs, by using meta-f12 to reset the M2 command line):
or, as you suggest:
I had a similar problem where I hit the same issue (even compiled with large memory use), which I think gives the error message you obtained at about 130 GB, so I set this environment variable to 300G, and M2 then ran to completion (the machine had 512 GB of RAM, and ended up using most of it) — mike |
You may also see some settings this way:
|
This solution works. With it now writes to my swap space which is about 50G after having filled up all RAM. Thank you! |
Dear All, the code "export GC_INITIAL_HEAP_SIZE=50G" works for me too. But it just works in terminal, not in Aquamacs. Any suggestion? Best wishes, |
Here is one way that should solve this problem:
In emacs, if you hit: control-u, followed by f12, you get to change the command line for M2. Change the line to look something like this:
GC_INITIAL_HEAP_SIZE=50G M2
(Followed by the commands line options for M2 that it is using).
Best regards,
Mike
… On Jan 17, 2018, at 10:43 AM, Iman Bahmani ***@***.***> wrote:
Dear All,
the code "export GC_INITIAL_HEAP_SIZE=50G" works for me too. But it just works in terminal, not in Aquamacs. Any suggestion?
Best wishes,
Iman.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#500 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAGPR9OlphDltTjBWSEezQ2TtV6MiuFuks5tLhUkgaJpZM4JQv0Y>.
|
I'm having the "Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS macaulay"-problem, when calculating a Gröbner basis with Macaulay2.
The program fills up all 8GB of RAM and then only a little fraction of my swap space before prompting this error and exiting. I tried setting "export MAX_HEAP_SECTS=1000000000000" just before running ./M2 which didn't help.
I have the 64 bit version from github compiled on a 64 bit Ubuntu.
How exactly can I increase MAX_HEAP_SECTS?
The text was updated successfully, but these errors were encountered: