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.
Bug 1752512 - rteval can't enforce stress load on specified cpu list with --loads-cpulist
Summary: rteval can't enforce stress load on specified cpu list with --loads-cpulist
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rteval
Version: 7.9
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: 7.9
Assignee: John Kacur
QA Contact: Mike Stowell
URL:
Whiteboard:
Depends On:
Blocks: 1755603 1781947
TreeView+ depends on / blocked
 
Reported: 2019-09-16 13:51 UTC by jianzzha
Modified: 2020-09-29 20:00 UTC (History)
5 users (show)

Fixed In Version: rteval-2.14-17.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1755603 (view as bug list)
Environment:
Last Closed: 2020-09-29 20:00:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
loads-hackbench-Fix-number-of-jobs-calculation.patch (1.56 KB, patch)
2020-03-27 15:14 UTC, John Kacur
no flags Details | Diff
loads-hackbench-Don-t-run-on-nodes-with-no-CPUs-avai (1.70 KB, patch)
2020-03-27 15:15 UTC, John Kacur
no flags Details | Diff
rteval-Fix-modules-thread-accounting (1.28 KB, patch)
2020-03-27 15:16 UTC, John Kacur
no flags Details | Diff
loads-kcompile-Don-t-run-on-nodes-with-no-CPUs-avail (3.42 KB, patch)
2020-03-27 15:16 UTC, John Kacur
no flags Details | Diff
loads-kcompile-Respect-cpulist-settings (3.41 KB, patch)
2020-03-27 15:17 UTC, John Kacur
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:3937 0 None None None 2020-09-29 20:00:34 UTC

Description jianzzha 2019-09-16 13:51:14 UTC
Description of problem:
rteval appears not able to take --loads-cpulist option and restrict the stress load on cpus specified on this list. For example, when I use this command:
rteval -v --loads-cpulist=2,4,6,8 --onlyload -d 300


in stead of running load on cpu 2,4,6,8, it actually runs on 1,3,5,7,9,...
 

Version-Release number of selected component (if applicable):
rteval-2.14-12.el7.noarch

3.10.0-957.rt56.910.el7.x86_64

Comment 2 John Kacur 2019-09-25 19:51:24 UTC
(In reply to jianzzha from comment #0)
> Description of problem:
> rteval appears not able to take --loads-cpulist option and restrict the
> stress load on cpus specified on this list. For example, when I use this
> command:
> rteval -v --loads-cpulist=2,4,6,8 --onlyload -d 300
> 
> 
> in stead of running load on cpu 2,4,6,8, it actually runs on 1,3,5,7,9,...
>  
> 
> Version-Release number of selected component (if applicable):
> rteval-2.14-12.el7.noarch
> 
> 3.10.0-957.rt56.910.el7.x86_64

Is it possible that what you are seeing are the rteval processes instead of the loads running on the other cpus?
In any case, I am not convinced that the code is correct everywhere for the loads.

The code that uses taskset instead of numactl for kcompile looks correct, but numactl is preferred.
I'm not sure that hackbench is correct at all.

I'm working on a solution, will take a bit of reworking.

Comment 8 John Kacur 2020-03-27 15:14:06 UTC
Created attachment 1674097 [details]
loads-hackbench-Fix-number-of-jobs-calculation.patch

Comment 9 John Kacur 2020-03-27 15:15:38 UTC
Created attachment 1674098 [details]
loads-hackbench-Don-t-run-on-nodes-with-no-CPUs-avai

Comment 10 John Kacur 2020-03-27 15:16:12 UTC
Created attachment 1674100 [details]
rteval-Fix-modules-thread-accounting

Comment 11 John Kacur 2020-03-27 15:16:45 UTC
Created attachment 1674101 [details]
loads-kcompile-Don-t-run-on-nodes-with-no-CPUs-avail

Comment 12 John Kacur 2020-03-27 15:17:38 UTC
Created attachment 1674102 [details]
loads-kcompile-Respect-cpulist-settings

Comment 15 errata-xmlrpc 2020-09-29 20:00:25 UTC
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 (rteval 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:3937


Note You need to log in before you can comment on or make changes to this bug.