Docker has basic cpu and memory limits available, and they are used in tmpnb:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;jupyter&#x2F;tmpnb&#x2F;blob&#x2F;44ff714e6e65897547dac5e0f3d73c070546617d&#x2F;dockworker.py#L101-L111" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jupyter&#x2F;tmpnb&#x2F;blob&#x2F;44ff714e6e65897547dac5...</a><p>I&#x27;m pretty sure you can also tweak IO scheduling with cgroups.