[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
tuned autoprofile
by Igor Gnatenko
How I change profile automatically to powersave on battery and to other
on ac ?
--
Best Regards,
Brain.
11 years
Fedora 19 Power Management Test Day
by Jaroslav Skarvada
Fedora 19 power management test day will start this Wednesday (2013-04-17).
The event will be mainly focused on laptops, but even desktop machines
can be tested. There are also prepared three test cases which are suitable
for secondary architectures, thus e.g. if you are running Fedora 19
pre-release on your ARM box, please join us and share your numbers. There
are also prepared special test cases targeting aggressive power-savings on
Intel, Nvidia and ATI / AMD (Radeon) graphics cards.
This is also on-site event that is running along with the Redhat Open House
event. So if you are near Brno, feel free to join us in person. You can
bring your hardware and test it there. There will be available calibrated
digital power meter (Chroma 66202) so you will be able to measure power
consumption of your hardware. Live USB/CD will be available so you can
participate in the test day without affecting your production machine.
There is also prepared new web application which you can use for
submitting your results, but if you prefer the wiki, you can still submit
your results through the wiki as usual. Everybody is welcome to attend this
event and your attendance will help us to make the Fedora better. Going
through all test cases take less an hour, but you don't need to finish
them all - just select test cases you are interested in, partial results
are also valuable for us. Just visit the PM test day WWW page [1] and
follow on-site instructions or join us in person [2]
thanks & regards
Jaroslav
[1] http://fedoraproject.org/wiki/Test_Day:2013-04-17_Power_Management
[2] http://redhatopenhouse.shdlr.com/grid
11 years