[tuned] #29: error route of tuned-adm profile if tuned isn't running
by fedora-badges
#29: error route of tuned-adm profile if tuned isn't running
-----------------------+-----------------------
Reporter: moriwaka | Owner:
Type: defect | Status: new
Priority: major | Component: utilities
Version: 2.0 | Keywords:
Blocked By: | Blocking:
-----------------------+-----------------------
reproducer:
1. systemctl stop tuned.service
2. tuned-adm profile latency-performance
this shows two type of error.
case 1. invalid pid file
----------------------------
Traceback (most recent call last):
File "/usr/sbin/tuned-adm", line 145, in <module>
tuned_adm.run(args)
File "/usr/sbin/tuned-adm", line 69, in run
self.set_active_profile(args[1])
File "/usr/sbin/tuned-adm", line 129, in set_active_profile
os.kill(pid, signal.SIGHUP)
OSError: [Errno 3] No such process
----------------------------
case 2. no pid file (this caused if /var/run/tuned/tuned.pid isn't there)
-----------------------------------------------------------
Cannot read /var/run/tuned/tuned.pid: [Errno 2] No such file or directory:
'/var/run/tuned/tuned.pid'
-----------------------------------------------------------
description:
- case 1 can be problem if same pid is reused in other process than tuned.
mix with https://bugzilla.redhat.com/show_bug.cgi?id=845336, this can be a
security flaw. pid file should be removed when it found to be invalid.
- case 2 is less problematic, but adding some advisory message is nice to
have. "Please run tuned daemon to configure profile"
--
Ticket URL: <https://fedorahosted.org/tuned/ticket/29>
tuned <https://fedorahosted.org/tuned/>
A daemon that performs monitoring and adaptive configuration of devices in the system.
10 years, 5 months
[tuned] #32: tuned-adm list, active, profile should work even if the daemon is stopped
by fedora-badges
#32: tuned-adm list, active, profile should work even if the daemon is stopped
-----------------------+--------------------
Reporter: jskarvad | Owner:
Type: defect | Status: new
Priority: major | Component: daemon
Version: 2.0 | Keywords:
Blocked By: | Blocking:
-----------------------+--------------------
Currently it is not possible to set the profile before the daemon is
started. You need to start the daemon (with unwanted profile) and then
change to required profile. There is the same problem if you need to only
observe which profiles are available on your system - you need to start
the daemon. This is weird. Proposal:
- the tuned-adm should query the data on filesystem directly if the dbus
call fail.
- for set_profile there should be locking, i.e. during the initialization
of the daemon, if there is tuned-adm running, the daemon should wait for
tuned-adm completion.
--
Ticket URL: <https://fedorahosted.org/tuned/ticket/32>
tuned <https://fedorahosted.org/tuned/>
A daemon that performs monitoring and adaptive configuration of devices in the system.
10 years, 5 months
Fedora 18 Resume and suspend scripts.. How do I do this.
by Kevin Daly
I need to run a script that fixes a problem with the backlight on my
laptop..
The script works when I suspend and resume using pm-suspend from the
command line, but it does not work when I press the power button to suspend
or when I close the laptop lid..
Where are the event scripts for these events handled in the file system..
I've tried to look for gnome-power-manager scripts and acpi scripts, but I
can't seem to find any information.
--
============================
Kevin Daly
(416) 953-8330
11 years, 1 month
tuned-2.2.1 released
by Jaroslav Skarvada
This is to announce tuned-2.2.1, a stable release.
Tuned is a tool that performs monitoring and adaptive configuration
of the system according to selected profile.
The 2.2.1 is mostly a bug fix release, but it also introduce new features.
Noteworthy changes since previous release:
- audio plugin: fixed error handling in _get_timeout
- removed cpupower dependency, added sysfs fallback
- powertop2tuned: fixed parser crash on binary garbage
resolves: rhbz#914933
- cpu plugin: dropped multicore_powersave as kernel upstream already did
- plugins: options manipulated by dynamic tuning are now correctly saved and restored
- powertop2tuned: added alias -e for --enable option
- powertop2tuned: new option -m, --merge-profile to select profile to merge
- prefer transparent_hugepage over redhat_transparent_hugepage
- recommend: use recommend.conf not autodetect.conf
- tuned.service: switched to dbus type service
resolves: rhbz#911445
- tuned: new option --pid, -P to write PID file
- tuned, tuned-adm: added new option --version, -v to show version
- disk plugin: use APM value 254 for cleanup / APM disable instead of 255
resolves: rhbz#905195
- tuned: new option --log, -l to select log file
- powertop2tuned: avoid circular deps in include (one level check only)
- powertop2tuned: do not crash if powertop is not installed
- net plugin: added support for wake_on_lan static tuning
resolves: rhbz#885504
- loader: fixed error handling
- spec: used systemd-rpm macros
resolves: rhbz#850347
Download:
http://fedorahosted.org/releases/t/u/tuned/tuned-2.2.1.tar.bz2
Upstream homepage:
http://fedorahosted.org/tuned/
11 years, 1 month