How To Install ulatencyd on Ubuntu 18.04

In this tutorial we learn how to install ulatencyd on Ubuntu 18.04. ulatencyd is scriptable latency regulator using cgroups (server)

Introduction

In this tutorial we learn how to install ulatencyd on Ubuntu 18.04.

What is ulatencyd

ulatencyd is:

The userspace latency daemon controls how the Linux kernel spends its resources on the running processes. It uses dynamic cgroups to give the kernel hints on how to optimize process scheduling.

It is fully scriptable in Lua, to support writing custom rules and scheduler code.

The Linux scheduler does a pretty good job of sharing available resources out to all processes, but this may not be the best user experience on the desktop. ulatencyd monitors the system and categorizes the running processes into cgroups. Processes that run wild and slow down the system will be isolated.

There are three methods to install ulatencyd on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install ulatencyd Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install ulatencyd using apt-get by running the following command:

sudo apt-get -y install ulatencyd

Install ulatencyd Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ulatencyd using apt by running the following command:

sudo apt -y install ulatencyd

Install ulatencyd Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install ulatencyd using aptitude by running the following command:

sudo aptitude -y install ulatencyd

How To Uninstall ulatencyd on Ubuntu 18.04

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

sudo apt-get remove ulatencyd

Uninstall ulatencyd And Its Dependencies

To uninstall ulatencyd and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove ulatencyd

Remove ulatencyd Configurations and Data

To remove ulatencyd configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge ulatencyd

Remove ulatencyd configuration, data, and all of its dependencies

We can use the following command to remove ulatencyd configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ulatencyd

References

Summary

In this tutorial we learn how to install ulatencyd package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.