[SERVER-74732] mcpu=native flag for arm Created: 09/Mar/23  Updated: 25/Mar/23  Resolved: 14/Mar/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Alex Neben Assignee: Alex Neben
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot 2023-03-14 at 11.04.41 AM.png     PNG File Screenshot 2023-03-14 at 11.10.11 AM.png    
Issue Links:
Related
is related to SERVER-75012 Consider providing target-specific bi... Closed
Assigned Teams:
Server Development Platform
Backwards Compatibility: Fully Compatible
Participants:

 Description   

During the talk on 3/9 James Greenhalgh recommend we compile with "-O3 -mcpu=native". We should see what kinds of improvements we can unlock by building with those flags.



 Comments   
Comment by Alex Neben [ 14/Mar/23 ]

All graphs show no difference for each combination. So I am going to close this as no change.

Comment by Alex Neben [ 13/Mar/23 ]

https://spruce.mongodb.com/version/640f735d0ae606b6d14935a2/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC

https://spruce.mongodb.com/version/640faa3d1e2d17d19b7f8250/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC

https://spruce.mongodb.com/version/640f98c50305b9bea040aac7/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC

Tried -mcpu=native, -mcpu=native + O3, -mcpu=native + Ofast. Unclear if we can use Ofast because it does some math things. Just getting some data before figuring out if i need to talk to other teams about possibly enabling it for real.

Comment by Geert Bosch [ 10/Mar/23 ]

-O3 enables more aggressive inlining and loop unrolling among other things, and tends to make the code larger, often resulting in overall slowdown when indiscriminately applied to a large project, while often being beneficial on small synthetic tests such as our tests based on the Google Benchmark framework. If anything, there might be specific objects/libraries that could benefit.

Generated at Thu Feb 08 06:28:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.