Skip to content

Improve the performance of Ceph builds and rebuilds. - #70129

Merged
chardan merged 1 commit into
mainfrom
jfw-wip-build-performance-improvement
Aug 20, 2026
Merged

chardan merged 1 commit into
mainfrom
jfw-wip-build-performance-improvement

Conversation

@chardan

@chardan chardan commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

This set of changes tries to improve the incremental build modeling as
well as focus on comparatively "easy wins" hopefully without TOO much
churn. I tried to avoid changing build invocations and focus soley on
CMake alterations.

Initial results were measured on a single machine with 8 cores and a single
SSD (a fairly vanilla desktop). Some targeted expensive compile paths improved
substantially, with a much more modest "actual time" improvement of about 3.4%.

Assisted-by: Codex:GPT-5

Signed-off-by: Jesse Williamson [email protected]

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@chardan

chardan commented Jul 12, 2026

Copy link
Copy Markdown
Contributor Author

jenkins make check

@adamemerson

Copy link
Copy Markdown
Contributor

Make check is failing with:

-- crypto soname: libcrypto.so.3
CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Python3 (missing: Python3_EXECUTABLE Interpreter) (found
  suitable exact version "3.10.12")

      Reason given by package: 
          Interpreter: Cannot use the interpreter "/usr/bin/python3.10"

Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.22/Modules/FindPython/Support.cmake:3180 (find_package_handle_standard_args)
  /usr/share/cmake-3.22/Modules/FindPython3.cmake:490 (include)
  CMakeLists.txt:706 (find_package)


-- Configuring incomplete, errors occurred!
See also "/ceph/build/CMakeFiles/CMakeOutput.log".
See also "/ceph/build/CMakeFiles/CMakeError.log".
+ exit 1
2026-07-11 16:07:15,749: INFO: step done: configure failed in 00:12:47

@chardan
chardan force-pushed the jfw-wip-build-performance-improvement branch from cfcb7da to 0d2d39b Compare July 13, 2026 18:37
@chardan

chardan commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

jenkins make check

1 similar comment
@chardan

chardan commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

jenkins make check

@adamemerson

Copy link
Copy Markdown
Contributor

jenkins make check

It's not going to work, look at the error.

@chardan
chardan force-pushed the jfw-wip-build-performance-improvement branch from 0d2d39b to 8bb13bc Compare July 14, 2026 00:27
@chardan

chardan commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test api

@chardan

chardan commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard

3 similar comments
@chardan

chardan commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard

@chardan

chardan commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard

@chardan

chardan commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard

@chardan
chardan force-pushed the jfw-wip-build-performance-improvement branch from 8bb13bc to 216a4ff Compare July 14, 2026 19:30
@chardan

chardan commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard

@chardan
chardan requested a review from idryomov August 3, 2026 23:30
@chardan

chardan commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

jenkins make test dashboard

@chardan

chardan commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard

@idryomov

idryomov commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Initial results were measured on a single machine with 8 cores and a single SSD (a fairly vanilla desktop). Overall build time improved about 17% against baseline.

A 17% improvement is pretty impressive! Is it for the initial build (i.e. a fresh build directory, right after running do_cmake.sh) or a rebuild? The PR title mentions both builds and rebuilds, the PR description only incremental builds and the commit message is pretty sparse, so it's not clear.

Do you have a sense for where the bulk of the improvement is coming from? Hopefully it's not all from src/pybind/mgr/dashboard/frontend/CMakeLists.txt change.

It would be good to see your do_cmake.sh and ninja invocations as well as before and after time captures.

@idryomov
idryomov removed their request for review August 9, 2026 17:22
@chardan

chardan commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor Author

@idryomov Thank you for having a look! Sadly, the more dramatic numbers were from us not including all the debugging information in binaries, which as you'll recall we (I think rightly) decided was too surprising to be acceptable-- it might make a good future "fastdebug" target or something, though. While the numbers without that aren't as impressive, they're still a win -- about enough time to go and grab a copy of coffee if you're done waiting for it to brew! ;-)

I've attached a file with methodology and measured data.

ceph-build-gopher.txt

@chardan
chardan requested a review from idryomov August 9, 2026 18:45
@chardan

chardan commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard

4 similar comments
@chardan

chardan commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard

@chardan

chardan commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard

@chardan

chardan commented Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard

@chardan

chardan commented Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard

@afreen23 afreen23 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dashboard CMakeLists.txt changes look good - proper use of stamp files for better incremental builds and improved dependency tracking.

@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard Aug 10, 2026
@chardan

chardan commented Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard

4 similar comments
@chardan

chardan commented Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard

@chardan

chardan commented Aug 11, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard

@chardan

chardan commented Aug 11, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard

@chardan

chardan commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard

@chardan

chardan commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard cephadm

@chardan
chardan requested a review from afreen23 August 15, 2026 01:32
@chardan

chardan commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard cephadm

1 similar comment
@chardan

chardan commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard cephadm

@chardan

chardan commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard

@chardan

chardan commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard cephadm

1 similar comment
@chardan

chardan commented Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard cephadm

@chardan
chardan merged commit 68487bb into main Aug 20, 2026
19 checks passed
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Aug 20, 2026
@chardan
chardan deleted the jfw-wip-build-performance-improvement branch August 20, 2026 20:42
@djgalloway djgalloway mentioned this pull request Sep 10, 2026
4 of 14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants