How To Install tuna on CentOS 8

tuna is Application tuning GUI & command line utility

Introduction

In this tutorial we learn how to install tuna on CentOS 8.

What is tuna

Provides interface for changing scheduler and IRQ tunables, at whole CPU and at per thread/IRQ level. Allows isolating CPUs for use by a specific application and moving threads and interrupts to a CPU by just dragging and dropping them. Operations can be done on CPU sockets, understanding CPU topology. Can be used as a command line utility without requiring the GUI libraries to be installed.

We can use yum or dnf to install tuna on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install tuna.

Install tuna on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install tuna using dnf by running the following command:

sudo dnf -y install tuna

Install tuna on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install tuna using yum by running the following command:

sudo yum -y install tuna

How To Uninstall tuna on CentOS 8

To uninstall only the tuna package we can use the following command:

sudo dnf remove tuna

tuna Package Contents on CentOS 8

/etc/tuna.conf
/etc/tuna/example.conf
/usr/bin/tuna
/usr/lib/python3.6/site-packages/tuna
/usr/lib/python3.6/site-packages/tuna-0.15-py3.6.egg-info
/usr/lib/python3.6/site-packages/tuna/__init__.py
/usr/lib/python3.6/site-packages/tuna/__pycache__
/usr/lib/python3.6/site-packages/tuna/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tuna/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/tuna/__pycache__/config.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tuna/__pycache__/config.cpython-36.pyc
/usr/lib/python3.6/site-packages/tuna/__pycache__/help.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tuna/__pycache__/help.cpython-36.pyc
/usr/lib/python3.6/site-packages/tuna/__pycache__/oscilloscope.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tuna/__pycache__/oscilloscope.cpython-36.pyc
/usr/lib/python3.6/site-packages/tuna/__pycache__/sysfs.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tuna/__pycache__/sysfs.cpython-36.pyc
/usr/lib/python3.6/site-packages/tuna/__pycache__/tuna.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tuna/__pycache__/tuna.cpython-36.pyc
/usr/lib/python3.6/site-packages/tuna/__pycache__/tuna_gui.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tuna/__pycache__/tuna_gui.cpython-36.pyc
/usr/lib/python3.6/site-packages/tuna/__pycache__/tuna_sched.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tuna/__pycache__/tuna_sched.cpython-36.pyc
/usr/lib/python3.6/site-packages/tuna/config.py
/usr/lib/python3.6/site-packages/tuna/gui
/usr/lib/python3.6/site-packages/tuna/gui/__init__.py
/usr/lib/python3.6/site-packages/tuna/gui/__pycache__
/usr/lib/python3.6/site-packages/tuna/gui/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tuna/gui/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/tuna/gui/__pycache__/commonview.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tuna/gui/__pycache__/commonview.cpython-36.pyc
/usr/lib/python3.6/site-packages/tuna/gui/__pycache__/cpuview.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tuna/gui/__pycache__/cpuview.cpython-36.pyc
/usr/lib/python3.6/site-packages/tuna/gui/__pycache__/irqview.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tuna/gui/__pycache__/irqview.cpython-36.pyc
/usr/lib/python3.6/site-packages/tuna/gui/__pycache__/procview.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tuna/gui/__pycache__/procview.cpython-36.pyc
/usr/lib/python3.6/site-packages/tuna/gui/__pycache__/profileview.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tuna/gui/__pycache__/profileview.cpython-36.pyc
/usr/lib/python3.6/site-packages/tuna/gui/__pycache__/util.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/tuna/gui/__pycache__/util.cpython-36.pyc
/usr/lib/python3.6/site-packages/tuna/gui/commonview.py
/usr/lib/python3.6/site-packages/tuna/gui/cpuview.py
/usr/lib/python3.6/site-packages/tuna/gui/irqview.py
/usr/lib/python3.6/site-packages/tuna/gui/procview.py
/usr/lib/python3.6/site-packages/tuna/gui/profileview.py
/usr/lib/python3.6/site-packages/tuna/gui/util.py
/usr/lib/python3.6/site-packages/tuna/help.py
/usr/lib/python3.6/site-packages/tuna/oscilloscope.py
/usr/lib/python3.6/site-packages/tuna/sysfs.py
/usr/lib/python3.6/site-packages/tuna/tuna.py
/usr/lib/python3.6/site-packages/tuna/tuna_gui.py
/usr/lib/python3.6/site-packages/tuna/tuna_sched.py
/usr/share/doc/tuna
/usr/share/doc/tuna/ChangeLog
/usr/share/locale/ja/LC_MESSAGES/tuna.mo
/usr/share/locale/pt_BR/LC_MESSAGES/tuna.mo
/usr/share/locale/zh_CN/LC_MESSAGES/tuna.mo
/usr/share/man/man8/tuna.8.gz
/usr/share/polkit-1/actions/org.tuna.policy
/usr/share/tuna
/usr/share/tuna/help
/usr/share/tuna/help/kthreads
/usr/share/tuna/help/kthreads/events-
/usr/share/tuna/help/kthreads/group_balance
/usr/share/tuna/help/kthreads/kblockd-
/usr/share/tuna/help/kthreads/khelper
/usr/share/tuna/help/kthreads/kjournald
/usr/share/tuna/help/kthreads/kondemand-
/usr/share/tuna/help/kthreads/krcupreemptd
/usr/share/tuna/help/kthreads/ksoftirqd-
/usr/share/tuna/help/kthreads/kthreadd
/usr/share/tuna/help/kthreads/lockd
/usr/share/tuna/help/kthreads/migration-
/usr/share/tuna/help/kthreads/posix_cpu_timer
/usr/share/tuna/help/kthreads/rpciod-
/usr/share/tuna/help/kthreads/sirq-block-
/usr/share/tuna/help/kthreads/sirq-high-
/usr/share/tuna/help/kthreads/sirq-net-rx-
/usr/share/tuna/help/kthreads/sirq-net-tx-
/usr/share/tuna/help/kthreads/sirq-rcu-
/usr/share/tuna/help/kthreads/sirq-sched-
/usr/share/tuna/help/kthreads/sirq-tasklet-
/usr/share/tuna/help/kthreads/sirq-timer-
/usr/share/tuna/help/kthreads/usb-storage
/usr/share/tuna/help/kthreads/watchdog-
/usr/share/tuna/tuna_gui.glade

References

Summary

In this tutorial we learn how to install tuna on CentOS 8 using yum and dnf.