Bug 866919

Summary: Big delay when stopping tuned service
Product: [Fedora] Fedora Reporter: Jaroslav Škarvada <jskarvad>
Component: tunedAssignee: Jan Vcelak <jvcelak>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: jkaluza, jskarvad, jvcelak, pknirsch, tsmetana, twoerner
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tuned-2.1.0-1.fc18 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-12 01:25:54 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:

Description Jaroslav Škarvada 2012-10-16 10:13:11 UTC
Description of problem:
There is big delay when stopping tuned service.

Version-Release number of selected component (if applicable):
tuned-2.0.2-1

How reproducible:
Always

Steps to Reproduce:
1. systemctl start tuned.service
2. tuned-adm profile powersave
3. systemctl stop tuned.service
  
Actual results:
Big delay (timeout) until systemctl returns.

Expected results:
No delay.

Additional info:
Maybe systemd issue, will investigate more deep.

Comment 1 Jan Vcelak 2012-11-07 11:55:52 UTC
This seems to happen if the tuning thread dies due to unhandled exception.

I believe this is already fixed upstream. Package update is coming soon.

Comment 2 Jan Vcelak 2012-11-07 12:40:58 UTC
Hm... the problem still appears from time to time after the update. And sometimes there is a large timeout even when starting the service. Maybe there is something wrong with creating/deleting the PID file.

Comment 3 Jan Vcelak 2012-11-08 17:37:26 UTC
Should be resolved with my last commit, I cleaned up everything around forking:
http://git.fedorahosted.org/cgit/tuned.git/commit/?id=000e82f

Comment 4 Fedora Update System 2012-12-03 11:04:05 UTC
tuned-2.1.0-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/tuned-2.1.0-1.fc18

Comment 5 Jan Vcelak 2012-12-03 11:10:45 UTC
Resolved in:
tuned-2.1.0-1.fc18
tuned-2.1.0-1.fc19

Comment 6 Fedora Update System 2012-12-03 21:32:45 UTC
Package tuned-2.1.0-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing tuned-2.1.0-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-19556/tuned-2.1.0-1.fc18
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2012-12-06 10:31:35 UTC
tuned-2.1.1-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/tuned-2.1.1-1.fc18

Comment 8 Fedora Update System 2013-01-12 01:25:56 UTC
tuned-2.1.1-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.