[SERVER-34079] _test binaries take 76GB of disk space Created: 23/Mar/18 Updated: 23/Mar/18 Resolved: 23/Mar/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Build |
| Affects Version/s: | 3.6.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Dimitri John Ledkov | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Steps To Reproduce: | $ du --si -s build/opt/mongo/ |
| Participants: |
| Description |
|
Ubuntu builders by default are provisioned with 60GB of disk space, and that sizing manages to build all packages, including toolchains/web-browsers/etc. It is not large enough to build mongodb 3.6.3. Building locally, I can see that linked _test binaries are huge in size. e.g. starting from 31MB all the way, up to 825M for e.g. ./mongo/s/catalog/config_server_catalog_test. Have they always been this large? Or has something regressed recently to make them these big? A stripped mongod from this build is only 31MB. It looks like all the _test binaries have debug symbols attached. So I will try to investigate if I can make the _test binaries to be linked/compiled without debug symbols, to save on the build time disk space. |
| Comments |
| Comment by Ramon Fernandez Marina [ 23/Mar/18 ] |
|
Thanks for your report. Please note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related development discussion please post on the mongodb-dev group, where your question will reach a larger audience. A question like this involving more discussion would be best posted on the mongodb-dev group. Regards, |
| Comment by Dimitri John Ledkov [ 23/Mar/18 ] |
|
Thinking about this more, this might be due to the way Ubuntu/Debian builds are done, with debug on by default for everything. |