Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-97808

replication_coordinator_impl.cpp uses too much ram to compile

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • Fully Compatible
    • Repl 2024-12-23

      Our remote compilation environment is limited to 3.5GB of ram per compilation by default. With SERVER-97735, it is pushed over that limit and gets killed. It is possible that even without that change it was getting close to the limit and possibly swapping out the compiler leading to much slower compiles that it should have. Therefore it was moved to the "high memory" pool which is twice as expensive. Either:

      • Try to split up that cpp file into smaller files that are cheaper to compile. This should also speed up compilation by making it more parallelizable and having less to rebuild when editing the smaller cpp. If you do this, remove the exec_properties block in the BUILD.bazel file.
      • Pull that cpp file out to its own library, and move the exec_properties to the new library. While it won't reduce the resources used to compile it, it will avoid using the more expensive instances to compile the other files in its library.

            Assignee:
            solomon.lifshits@mongodb.com Solomon Lifshits
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: