Bug 1440663

Summary: tuned-profiles-nfv: accommodate new ktimersoftd thread
Product: Red Hat Enterprise Linux 7 Reporter: Jaroslav Reznik <jreznik>
Component: tunedAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED ERRATA QA Contact: Tereza Cerna <tcerna>
Severity: unspecified Docs Contact:
Priority: high    
Version: 7.3CC: atragler, bhu, fbaudin, hhuang, jeder, jherrman, jscotka, jskarvad, lcapitulino, lmiksik, olysonek, ovasik, pezhang, psklenar, sgordon, sherold, smazziot, tcerna, thozza, williams
Target Milestone: rcKeywords: Patch, Upstream, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tuned-2.7.1-3.el7_3.2 Doc Type: Enhancement
Doc Text:
If this bug requires documentation, please select an appropriate Doc Type value.
Story Points: ---
Clone Of: 1332563 Environment:
Last Closed: 2017-05-25 15:37:42 UTC Type: ---
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: 1332563    
Bug Blocks:    

Description Jaroslav Reznik 2017-04-10 08:38:39 UTC
This bug has been copied from bug #1332563 and has been proposed
to be backported to 7.3 z-stream (EUS).

Comment 4 Tereza Cerna 2017-04-12 09:14:36 UTC
This is sanity check that tuned can set priority of ktimersoftd process.


I did these steps:

# tuned-adm profile realtime-virtual-host

# cat ktimersoftd 
#!/bin/bash
while true
do
sleep 3600
done

# chmod a+rx ktimersoftd

# ./ktimersoftd &


=============================================
Verified in:
    tuned-2.7.1-3.el7_3.2.noarch
    tuned-profiles-nfv-2.7.1-3.el7_3.2.noarch
PASS
=============================================

# ps axo pid,class,rtprio,comm | grep ktimersoft
17361 FF       3 ktimersoftd

# ps axo pid,class,rtprio,comm | grep softirq
    3 FF       2 ksoftirqd/0
   13 FF       2 ksoftirqd/1
   17 FF       2 ksoftirqd/2
   21 FF       2 ksoftirqd/3


=============================================
Reproduced in:
    tuned-2.7.1-3.el7_3.1.noarch
    tuned-profiles-nfv-2.7.1-3.el7_3.1.noarch
FAIL
=============================================

# ps axo pid,class,rtprio,comm | grep ktimersoft
17361 TS       - ktimersoftd

# ps axo pid,class,rtprio,comm | grep softirq
    3 FF       2 ksoftirqd/0
   13 FF       2 ksoftirqd/1
   17 FF       2 ksoftirqd/2
   21 FF       2 ksoftirqd/3

Comment 6 Pei Zhang 2017-04-24 12:31:01 UTC
Based on https://bugzilla.redhat.com/show_bug.cgi?id=1332563#c25, cancel needinfo from me.

Comment 9 Tereza Cerna 2017-04-26 11:00:30 UTC
Tested manually (see c#4) and by automated test case  /CoreOS/tuned/Regression/create-new-nfv-profiles 

 
Verified in:
    tuned-2.7.1-3.el7_3.2.noarch
    tuned-profiles-nfv-2.7.1-3.el7_3.2.noarch
PASS

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: Set priority of ktimersoftd process [BZ#1332563, BZ#1440663]
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Command 'chmod +x ktimersoftd' (Expected 0, got 0)
:: [   PASS   ] :: Command './ktimersoftd &' (Expected 0, got 0)
:: [ 06:59:16 ] :: Priority of ktimersoft process is '3'
:: [ 06:59:16 ] :: Priority of ksoftirqd process is '2'
:: [   PASS   ] :: Ksoftirqd process shoud have bigger priority than ktimersoft process. (Assert: "3" should be greater than "2")
:: [   PASS   ] :: Command 'kill -9 1793' (Expected 0, got 0)
:: [   PASS   ] :: Command 'killall sleep' (Expected 0, got 0)




Reproduced in:
    tuned-2.7.1-3.el7_3.1.noarch
    tuned-profiles-nfv-2.7.1-3.el7_3.1.noarch
FAIL

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: Set priority of ktimersoftd process [BZ#1332563, BZ#1440663]
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Command 'chmod +x ktimersoftd' (Expected 0, got 0)
:: [   PASS   ] :: Command './ktimersoftd &' (Expected 0, got 0)
:: [ 06:48:47 ] :: Priority of ktimersoft process is '-'
:: [ 06:48:47 ] :: Priority of ksoftirqd process is '2'
/usr/share/beakerlib/testing.sh: line 289: [: -: integer expression expected
:: [   FAIL   ] :: Ksoftirqd process shoud have bigger priority than ktimersoft process. (Assert: "-" should be greater than "2")
:: [   PASS   ] :: Command 'kill -9 145964' (Expected 0, got 0)
:: [   PASS   ] :: Command 'killall sleep' (Expected 0, got 0)

Comment 11 errata-xmlrpc 2017-05-25 15:37:42 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, 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/RHEA-2017:1307