If you want ulatencyd start on boot add ulatencyd in DAEMONS section in /etc/rc.conf.

+

If you want ulatencyd start on boot, enable the service file as follows:

+

{{bc|# systemctl enable ulatencyd.service}}

To verify that it works:

To verify that it works:

−

ulatency tree

+

{{hc|$ ulatency tree|

+

/sys/fs/cgroup/cpu

+

└─┬»cpu«

+

├ 2 kthreadd

+

├─┬»s_ul«

+

│ └ 4975 ulatencyd

+

├─┬»sys_bg«

+

│ └ 1928 cron

+

├─┬»sys_idle«

+

│ └ 3036 preload

+

...}}

== Configuration ==

== Configuration ==

Some settings are adjustable in /etc/ulatencyd/ulatencyd.conf and the cgroups that will be used can be changed in /etc/ulatencyd/cgroups.conf

Some settings are adjustable in /etc/ulatencyd/ulatencyd.conf and the cgroups that will be used can be changed in /etc/ulatencyd/cgroups.conf

+

+

Ulatencyd by default changes the io scheduler for all devices to cfq, to disable this behavior (for if you configure your schedulers yourself), simply edit /etc/ulatencyd/rules/io.lua and comment out the lines:

Configuration

Some settings are adjustable in /etc/ulatencyd/ulatencyd.conf and the cgroups that will be used can be changed in /etc/ulatencyd/cgroups.conf

Ulatencyd by default changes the io scheduler for all devices to cfq, to disable this behavior (for if you configure your schedulers yourself), simply edit /etc/ulatencyd/rules/io.lua and comment out the lines:

if self.first_run == true then
self:set_scheduler(dev, ulatency.get_config("io", "scheduler") or "cfq")
end