This is a tool to help with configuration and tuning of real-time Ubuntu.
To install the rt-conf snap:
sudo snap install rt-confThis snap is confined, which means that it can access a limited set of resources on the system. Additional access is granted via snap interfaces.
Upon installation the default rt-conf configuration file is added at: /var/snap/rt-conf/common/config.yaml.
Edit the default configuration file or a copy of it. In case of a copy, it must be placed it in a directory accessible to the snap, such as the user home directory. The copy must be owned by and writable to the root user only.
Run rt-conf to apply the configurations:
sudo rt-confSet --help for more details.
The rt-conf app runs a oneshot service on system startup. This is useful for re-applying non-persistent IRQ tuning and power management settings on boot.
By default, the service reads the default configuration file.
To change the config file path, use the config-file snap configuration. Example:
sudo snap set rt-conf config-file=/home/ubuntu/rt-conf.yamlThen, start and enable the service:
sudo snap restart rt-confVerify that it runs successfully by looking at the logs:
sudo snap logs -n 100 rt-confTo enable verbose logging, set:
--verboseflag on the CLIverbose=truesnap configuration option for the service
Firstly, clone the repository:
git clone https://github.com/canonical/rt-conf.gitIt's possible to run the rt-conf application from source by having Go installed and running:
go run cmd/rt-conf/main.goTip
For local hacking on GRUB systems, it's recommended to point to a local drop-in grub file.
Also, you may want to use the local config.yaml file provided on the root of the repository:
go run cmd/rt-conf/main.go --file=./config.yaml --grub-custom-file=./60_rt-conf.cfgRun tests:
go test ./...Firstly, build it using Snapcraft:
snapcraft -vThen, install it in dangerous mode:
sudo snap install --dangerous *.snapAfter the installation connect the following interfaces:
- cpu-control
etc-default-grubplug into the system-files interface;- hardware-observe
- home
sudo snap connect rt-conf:cpu-control
sudo snap connect rt-conf:etc-default-grub
sudo snap connect rt-conf:hardware-observe
sudo snap connect rt-conf:home