Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
Timer migration enabled migrates timer work to CPUs which should be minimally interrupted.
Version-Release number of selected component (if applicable):
How reproducible: Easily
Steps to Reproduce:
1. reboot with cpu-partitioning
2. run something like sysjitter to characterize latency
3. collect ftrace if necessary to see timer work on nohz_full CPUs.
Actual results:
Higher spikes in latency because of extra timer work on CPUs
Expected results:
Lower spikes in latency because of no extra timer work on CPUs
Additional info:
The original motivation for enabling timers was:
"As the cpu-partitioning profile does not use isolcpus=,
the kernel can end up creating long living timers on
nohz_full CPUs during early boot. Those timers will
fire later, causing jitter.
However, recent Linux kernel will always try to migrate
unpinned timers away from nohz_full CPUs when timer
migration is enabled which is what we want."
To deal with log lived timers, the cpu-partitioning profile now modifies the kernel workqueue early in the boot, before drivers are started, so long lived timers are not set on the isolated CPUs. So the original motivation to enable timer_migration should not exist.
Also, I am not sure the actual behavior of timer_migration is what's described as above in the quotation. The timer_migration should be moving timers from idle CPUs to active CPUs, and that might include active CPUs with nohz_full. It would help to clarify exactly how this feature works with both RHEL8 and RHEL7 kernels.
Finally, timer_migration is disabled in the realtime tuned profiles, and we want the same timer behavior in both the cpu-partitioning and the realtime profiles.
Comment 8Jaroslav Škarvada
2020-04-29 15:09:17 UTC
Andrew, there is bug 1779719 requesting the opposite for the realtime profiles. So do you want the timer migration to be disabled in realtime and cpu-partitining profiles? Or enabled in realtime profiles and disabled in the cpu-partitining? Could you elaborate?
Discussed with Luiz, the other BZ will be closed; we don't want timer_migration enabled even in realtime virt profiles. And so we still want to disable migration in cpu-partitioning
(In reply to Jaroslav Škarvada from comment #8)
> Andrew, there is bug 1779719 requesting the opposite for the realtime
> profiles. So do you want the timer migration to be disabled in realtime and
> cpu-partitining profiles? Or enabled in realtime profiles and disabled in
> the cpu-partitining? Could you elaborate?
Very good catch Jaroslav!
We discussed this on a meeting today, the conclusion is to disable it in
all profiles. In detail we want:
1. Disable it in the cpu-partition profile (this BZ)
2. Keep it disabled in the real-time profiles (I'll follow up in bug 1779719)
The reason being, having timer_migration enabled causes timers to be
migrated to busy CPUs, which is going to be the CPUs running DPDK threads.
This in turn will cause interruptions to DPDK threads.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (tuned bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2020:4559