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

java.lang.OutOfMemoryError: GC overhead limit exceeded #613

Closed
lorenzoditucci opened this issue May 18, 2017 · 3 comments
Closed

java.lang.OutOfMemoryError: GC overhead limit exceeded #613

lorenzoditucci opened this issue May 18, 2017 · 3 comments

Comments

@lorenzoditucci
Copy link

Hello,

I am trying to generate the Verilog from a design that is composed of multiple Modules, but after some minutes of computation (~10), a java.lang.OutOfMemoryError: GC overhead limit exceeded exception is thrown.

Reducing the dimension for the input of the modules chisel is able to generate Verilog, is there any workaround to this issue?

Thanks

@jackkoenig
Copy link
Contributor

You can increase the java heap size. If you are using sbt, you can try sbt -mem 4096 (or some other amount)

@lorenzoditucci
Copy link
Author

Thanks, I managed to generate the Verilog using:
export _JAVA_OPTIONS='-XX:-UseGCOverheadLimit -Xmx10g '

I was wondering, is this the correct behavior, it is a problem of my design that it is too complicated or it is something that depends on the "translator"?

@jackkoenig
Copy link
Contributor

Larger designs require more heap space. It's not really a "problem", it just seems that the JVM decides not to allocate all that much space by default. We could probably be more efficient with memory in chisel and firrtl but there's still the fundamental issue that larger designs will always need more heap space.

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