[SERVER-16229] Executable file sizes much larger than 2.6 when not stripped Created: 18/Nov/14 Updated: 19/Nov/14 Resolved: 19/Nov/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Build |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Thijs Cadier | 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: | Compile core executables. |
| Participants: |
| Description |
|
The file sizes of the core executables are much larger than in earlier releases, in my environment on Ubuntu 14.04: 150M mongo Is this expected of a RC build? |
| Comments |
| Comment by Thijs Cadier [ 19/Nov/14 ] | |||||||||||||||||||||||
|
Thanks, works like a charm. One for the docs I guess?
| |||||||||||||||||||||||
| Comment by Scott Hernandez (Inactive) [ 19/Nov/14 ] | |||||||||||||||||||||||
|
Looks like your files aren't strip'd. If you strip the binaries the file sizes on your custom build will match the mongodb release binaries. Without striping the files contain debug symbols and other diagnostic information. Example:
| |||||||||||||||||||||||
| Comment by Thijs Cadier [ 19/Nov/14 ] | |||||||||||||||||||||||
|
These are the executable sizes of 2.6.5, compiled on the same machine with the same scons command. So there does seem to be a big difference? I'm compiling with: scons core -j 8 --64 --ssl --cc=gcc-4.7 --cxx=g++-4.7
| |||||||||||||||||||||||
| Comment by Ramon Fernandez Marina [ 19/Nov/14 ] | |||||||||||||||||||||||
|
thijs, which exact versions are you comparing? Also, what tarballs/packages did you use to install those versions? I'm asking because I don't see larger sizes than 2.6.5 – in fact executable sizes for 2.8.0-rc0 are smaller than in 2.6.5:
|