Skip to content
Snippets Groups Projects

Draft: Add stop_housekeeping_cpuslocked()

Open Costa Shulyupin requested to merge makelinux/centos-stream-10:my-centos-stream-10 into main

Merge Request Required Information

Summary of Changes

CPU hotplug interferes with CPU isolation and introduces latency to real-time tasks.

The test:

  rtla timerlat hist -c 1 -a 500 &
  echo 0 > /sys/devices/system/cpu/cpu2/online

The RTLA tool reveals the following blocking thread stack trace:

               -> multi_cpu_stop
               -> cpu_stopper_thread
               -> smpboot_thread_fn

This happens because multi_cpu_stop() disables interrupts for EACH online CPU since takedown_cpu() indirectly invokes take_cpu_down() through stop_machine_cpuslocked(). I'm omitting the detailed description of the call chain.

Proposal: Limit the stop operation to housekeeping CPUs.

Approved Development Ticket(s)

All submissions to CentOS Stream must reference a ticket in Red Hat Jira.

Click for formatting instructions Please follow the CentOS Stream contribution documentation for how to file this ticket and have it approved.

List tickets each on their own line of this description using the format "Resolves: RHEL-1234", "Related: RHEL-2345" or "Reverts: RHEL-3456", as appropriate.

Edited by Costa Shulyupin

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading