Even on large libraries, a 2 M alignment does not help. If a library maps a section larger than 2 M then it will still be able to use large pages for that mapping, even if its alignment requirement for the section is only 1 byte. The alignment requirement just reserves extra address space that goes unused ( and won't be converted to a large page since part of that 2 M space maps to nothing ).
Basically there is absolutely no reason to ever force an alignment larger than 4k. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/24692 Title: Amd64 ubuntu build hogs memory due to libs built with excessive alignment requirement To manage notifications about this bug go to: https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/24692/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
