brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: pinning a container to cores is not the same as isolating them

Docker
~/tips/tip-unraid-cpu-pinning-vs-isolating

cat ~/tips/tip-unraid-cpu-pinning-vs-isolating.md

Explains the difference between pinning and isolating CPU cores on Unraid's CPU Pinning page.

The CPU Pinning page has two similar options, and they do different things.

You find the page under Settings, CPU Pinning. The Unraid docs say that pinning reserves a core for a VM or container, but Unraid can still use that core for the WebGUI, parity checks and btrfs. Isolating makes the core dedicated, so Unraid can no longer use it. Changing isolation needs a restart, pinning does not.

The older way is a flag in Extra Parameters. The Docker docs describe --cpuset-cpus as a comma-separated list or a range of CPUs, counted from 0, for example 0-3 or 1,3.

The caveat comes from forum users and is not official: the page and a leftover --cpuset-cpus flag can conflict, so use one of the two for a container. I would only isolate cores when a VM really needs them to itself.

Further reading: Unraid docs: Customize Unraid settings, Docker docs: Resource constraints, On this site: use Previous Apps to bring back every container after deleting docker.img, On this site: give Docker containers a wait time in the Unraid autostart column

More Docker tips ONBUILD RUN /usr/local/bin/python-build --dir /app/src SHELL ["/bin/bash", "-c"] docker commit <container> myname/testimage:version3 docker import /path/to/exampleimage.tgz docker compose events All Docker tips (192) All topics

Link