Improve Velox build to use less memory #8657
Replies: 3 comments 3 replies
-
|
@majetideepak : Thanks for bringing this up. This is something we are aware about and are working towards. Short term: In the very short term, I will send a PR shortly that reduces memory footprint for ArthmeticRegistrations.cpp. Compiling this has been quite memory intensive and one relatively easy fix is to split into smaller files. @assignUser did some analysis using clang-build-analyzer , which I am going to continue. Long term: A more long term thing we are planning to do with is try and use conbench to store build metrics. Currently we plan to setup a nightly job that builds from scratch and gets metrics on memory/space/cpu etc and upload them to conbench. Again we plan to use clang-build-analyzer for this. This will give us metrics on which TU's are most at fault and that can help us drive down memory footprint etc. I will keep you folks in the loop should you be interested. |
Beta Was this translation helpful? Give feedback.
-
|
@kgpai @assignUser how is the cmake modernization effort going? I suppose building shared libraries will significantly reduce linking time and memory consumption, no? |
Beta Was this translation helpful? Give feedback.
-
|
Based on the discussion from the Velox monthly yesterday, I see the following next steps.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Recently, we had to reduce the build parallelism since CI was running out of memory. #8592
This is an indication that Velox build is consuming more memory over time.
This is expected as we add more source code, but I believe there are many opportunities to improve
existing code and reduce the memory footprint.
Some factors I can think of
I want to brainstorm other approaches, and tools to identify such issues and improve the build.
CC: @assignUser, @kgpai, @czentgr, @pedroerp, @mbasmanova
Beta Was this translation helpful? Give feedback.
All reactions