Skip to content

Conversation

@jqnatividad
Copy link
Collaborator

…othing())

we only need the make/model of the CPU for version, we don't need any more metadata for CPUs. Apparently, for systems with a lot of CPUs, this fetches so much metadata that it vastly increases startup time when --version is used.

resolves #3260

…othing())

we only need the make/model of the CPU for version, we don't need any more metadata for CPUs.
Apparently, for systems with a lot of CPUs, this fetches so much metadata that it vastly increases startup time when --version is used.

resolves #3260
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR optimizes the performance of the --version command by reducing CPU metadata fetching. On systems with many CPUs, the previous refresh_cpu_all() call would fetch extensive CPU metadata (frequency, usage, etc.), significantly increasing startup time when --version is used.

Key Changes

  • Replaced refresh_cpu_all() with refresh_cpu_list(CpuRefreshKind::nothing()) to fetch only the CPU brand information
  • Added a clarifying comment explaining the optimization

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jqnatividad jqnatividad merged commit 9f6dd0b into master Jan 1, 2026
15 of 16 checks passed
@jqnatividad jqnatividad deleted the 3260-version-performance branch January 1, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Slow Startup time on RHEL server from version 11.0.2

2 participants