Replies: 6 comments 3 replies
-
try this https://github.com/rui314/mold |
Beta Was this translation helpful? Give feedback.
-
@yurivict what is your compilation command and could you share with the compilation logs with the error report? |
Beta Was this translation helpful? Give feedback.
-
Here is the log. |
Beta Was this translation helpful? Give feedback.
-
I was able to link the application with this patch:
|
Beta Was this translation helpful? Give feedback.
-
Great. I'll move this ticket to open-ended discussion for its visibility and this is not a certain issue to resolve, but a continuous effort to reduce the compilation memory consumption - it's good for developer experience, although we might prioritize the runtime efficiency. It's somehow a Rust Philosophical issue, see - https://pingcap.medium.com/the-rust-compilation-model-calamity-1a8ce781cf6c |
Beta Was this translation helpful? Give feedback.
-
By default, rust spawn N jobs for compile and linking, where N is the number of your cpu cores. You can change this behaviour by using |
Beta Was this translation helpful? Give feedback.
-
What type of bug is this?
Other
What subsystems are affected?
Other
Minimal reproduce step
Compilation runs out of memory.
The final link step keeps growing to 28GB+ and is being killed.
How to reduce the memory?
What did you expect to see?
n/a
What did you see instead?
see above
What operating system did you use?
FreeBSD 14.0
What version of GreptimeDB did you use?
0.6.0
Relevant log output and stack trace
Beta Was this translation helpful? Give feedback.
All reactions