Bug 1286221
Summary: | Tuna is not moving threads away from isolated (-i) CPUs. | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Daniel Bristot de Oliveira <daolivei> | |
Component: | tuna | Assignee: | John Kacur <jkacur> | |
Status: | CLOSED ERRATA | QA Contact: | Jiri Kastner <jkastner> | |
Severity: | urgent | Docs Contact: | ||
Priority: | high | |||
Version: | 7.3 | CC: | bhu, jkacur, jkastner | |
Target Milestone: | rc | Keywords: | ZStream | |
Target Release: | 7.3 | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: |
Before moving a thread or a process, tuna checks the stat file to see if PF_NO_SETAFFINITY is set, which means the thread/process is not migratable. This was working correctly for processes, but the location of the stat file was slightly different for threads causing the check to fail. This code has been modified to correctly handle thread migration.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1292537 1293353 (view as bug list) | Environment: | ||
Last Closed: | 2016-11-04 05:15:23 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1203710, 1274397, 1282960, 1292537, 1293353 |
Description
Daniel Bristot de Oliveira
2015-11-27 13:33:32 UTC
Upstream patch commit: https://git.kernel.org/cgit/utils/tuna/tuna.git/commit/?id=95c4e2ad2603cd29af1357c0ceb780da8dc161cc The following is the commit that caused the regression commit 29fbb6e82357c87be652c6717ef52d808ec0af78 tuna: Decide whether to isolate a thread based on PF_NO_SETAFFINITY John pointed me a tuna build with the proposed fix and I tested it. It works! Test output: # rpm -Uvh tuna-0.11.1-11.el7.noarch.rpm Preparing... ################################# [100%] Updating / installing... 1:tuna-0.11.1-11.el7 ################################# [ 50%] Cleaning up / removing... 2:tuna-0.11.1-10.el7 ################################# [100%] # tuna -c 2-6 -i # ps -eLo lwp,comm | grep " tuned" | while read lwp comm; do taskset -p $lwp; done pid 1483's current affinity mask: 3 pid 1691's current affinity mask: 3 pid 1696's current affinity mask: 3 pid 1697's current affinity mask: 3 Fixed in version tuna-0.11.1-11.el7 and up 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, 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://rhn.redhat.com/errata/RHEA-2016-2392.html |