1
0
Fork 0
Tuning Profile Delivery Mechanism for Linux
Find a file
Jaroslav Škarvada 047a7335b0 bootloader: add support for initrd overlays
The bootloader plugin now supports the following options:
  initrd_add_img=IMAGE
  initrd_add_dir=DIR
  initrd_dst_img=PATHNAME

The 'initrd_add_img' adds initrd overlay named IMAGE. The IMAGE is
added from the current profile directory. If IMAGE begins with '/' it's
taken as absolute path (e.g. initrd_add_img="/root/overlay.img").

The 'initrd_add_dir' creates initrd image from the DIR at first and then
adds the image as a overlay. The DIR is taken from the current profile
directory. If DIR begins with '/' it's taken as absolute path.

The 'initrd_dst_img' sets the name and location of the resulting initrd
image. Usually it is not needed to set it. By default the location of
initrd images is /boot and the name of the image is taken as a basename
of IMAGE or DIR. This can be overridden by 'initrd_dst_img'

Currently grub2-mkconfig doesn't support initrd overlays, so the initrd
settings are lost after 'grub2-mkconfig -o /boot/grub2/grub.cfg' is
issued. There is grub2 RFE bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=1427899

Resolves: rhbz#1414098

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2017-03-01 15:56:17 +01:00
contrib added upstart file to contrib 2015-04-28 17:25:21 +02:00
doc move manual pages to "man" directory 2012-03-12 17:53:02 +01:00
experiments powertop2tuned: fixed KeyError exception 2015-01-09 15:51:00 +01:00
icons Added tuned icon and desktop file for GUI 2016-03-22 17:11:42 +01:00
libexec defirqaffinity: fixed exit on wrong place 2016-09-01 13:17:24 +02:00
man man: report bugs pointed to Red Hat bugzilla 2017-02-08 12:16:11 +01:00
profiles cpu-partitioning: disable kvmclock sync and ple 2017-01-10 13:56:56 +01:00
systemtap misc: bumped year in copyright to 2013 2013-11-27 09:30:07 +01:00
tests tests: added basic functionality test 2014-10-17 00:46:53 +02:00
tuned bootloader: add support for initrd overlays 2017-03-01 15:56:17 +01:00
.gitignore update gitignore 2012-03-12 17:53:14 +01:00
00_tuned bootloader: add support for initrd overlays 2017-03-01 15:56:17 +01:00
AUTHORS Added tuned icon and desktop file for GUI 2016-03-22 17:11:42 +01:00
bootcmdline bootloader: add support for initrd overlays 2017-03-01 15:56:17 +01:00
com.redhat.tuned.gui.policy polkit: consolidated polkit action IDs to match DBus names 2016-06-08 17:36:00 +02:00
com.redhat.tuned.policy Implemented polkit authorization 2016-06-10 11:57:33 +02:00
COPYING update GPLv2 license text (new FSF address) 2012-03-12 17:53:24 +01:00
dbus.conf Implemented polkit authorization 2016-06-10 11:57:33 +02:00
INSTALL install instructions 2012-03-12 17:53:02 +01:00
Makefile Print path to affected files on 'make lint' 2017-02-16 14:41:04 +01:00
modules.conf Added missing modules.conf 2017-01-11 15:45:23 +01:00
README Moved project git to GitHub 2016-11-10 15:10:11 +01:00
recommend.conf recommend: profile can be specified multiple times by using suffix 2015-07-31 18:30:36 +02:00
tuned-adm.bash bash-completion: added support for 'tuned-adm verify' 2015-07-10 16:00:34 +02:00
tuned-adm.py tuned-adm: simplified no_deamon check regarding DBus 2016-07-14 18:09:46 +02:00
tuned-gui.desktop tuned-gui: fixed pkexec to work from GNOME Shell 2016-09-21 16:43:39 +02:00
tuned-gui.glade Added tuned-gui 2014-10-01 16:16:45 +02:00
tuned-gui.py Raise NotImplementedError instead of NotImplemented 2017-02-13 16:28:33 +01:00
tuned-main.conf Implement instance priority 2017-02-17 15:56:11 +01:00
tuned.py tuned: fixed profile switching in no_daemon mode 2016-07-14 17:31:02 +02:00
tuned.service Added polkit and dbus to the requirements 2016-06-15 13:24:14 +02:00
tuned.spec spec: muted error if there is no selinux support 2017-01-25 09:55:57 +01:00
tuned.tmpfiles Use /run instead of /var/run 2012-10-25 12:05:16 +02:00

Tuned: Daemon for monitoring and adaptive tuning of system devices.

(This is tuned 2.0 with a new code base. If you are looking for the older
version, please check out branch '1.0' in our Git repository.)

How to use it
-------------

In Fedora, Red Hat Enterprise Linux, and their derivates install tuned package
(optionally tuned-utils, tuned-utils-systemtap, and tuned-profiles-compat):

# yum install tuned

After the installation, start the tuned service:

# systemctl start tuned

You might also want to run tuned whenever your machine starts:

# systemctl enable tuned

If the daemon is running you can easily control it using 'tuned-adm' command
line utility. This tool communicates with the daemon over DBus. Any user can
list the available profiles and see which one is active. But the profiles can
be switched only by root user or by any user with physical console allocated
on the machine (X11, physical tty, but no SSH).

To see the current active profile, run:

$ tuned-adm active

To list all available profiles, run:

$ tuned-adm list

To switch to a different profile, run:

# tuned-adm profile <profile-name>

And to disable all tunings, run:

# tuned-adm recommend
Recommend profile suitable for your system. Currently only static detection is
implemented - it decides according to data in /etc/system-release-cpe and
virt-what output. The rules for autodetection are defined in recommend.conf
in profile directory. They can be overriden by user by putting the
recommend.conf into /etc/tuned. The default rules recommends profiles targeted
to the best performance or balanced profile if unsure.

# tuned-adm off

Your profile choice is also written into /etc/tuned/active_profile and this
choice is used when the daemon is restarted (e.g. with the machine reboot).


Available tunings
-----------------

We are currenlty working on many new tuning features. Some are described in
the manual pages, some are yet undocumented.


Authors
-------

The best way to contact the authors of the project is to use our mailing list:
power-management@lists.fedoraproject.org

In case you want to contact individual author, you will find the e-mail
address in every commit message in our Git repository:
https://github.com/redhat-performance/tuned.git

You can also join #fedora-power IRC channel on Freenode.


License
-------

Copyright (C) 2008-2016 Red Hat, Inc.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Full text of the license is enclosed in COPYING file.


The icon:

The Tuned icon was created by Mariia Leonova <mleonova@redhat.com> and it is
licensed under Creative Commons Attribution-ShareAlike 3.0 license
(http://creativecommons.org/licenses/by-sa/3.0/legalcode).