<a href="https:&#x2F;&#x2F;wiki.archlinux.org&#x2F;index.php&#x2F;cgroups" rel="nofollow">https:&#x2F;&#x2F;wiki.archlinux.org&#x2F;index.php&#x2F;cgroups</a><p>This post has an example on how to limit a process (in this instance it&#x27;s Matlab) regarding it&#x27;s memory use an the CPUs it will allow to be scheduled.<p>To limit the CPU further, you might want to use the &quot;userspace&quot; cpufreq governor and allow down your CPU clock.