Ulatency is a daemon that controls how the Linux kernel will spend it's resources on the running processes. It uses dynamic cgroups to give the kernel hints and limitations on processes.
It strongly supports the lua scripting language for writing rules and the scheduler code.
yaourt -S ulatencyd
Default config file is /etc/ulatencyd/ulatencyd.conf. Rules is /etc/ulatencyd/rules/