Isolate cores to VM/Dockers only when they are running


hpka

Recommended Posts

Searched and Googled this but have been reliably told this isn't currently available.

 

Description

Allow resources (VMs or Dockers) to isolate CPUs to themselves only when they are running:

  • If the resource is running: Only it can use it's designated cores
  • If the resource is not running: Anything can use them

 

Use Cases/Scenarios

  1. You have a VM that is is only used when a user is present, especially interactive VMs (desktops and gaming) which you only use when you are awake. When it's not in use, it may as well be shut down and the resources released, for example, overnight.
  2. You have a Docker that can be resource hungry, but isn't interactive and could be run during scheduled times. Backups or F@H would be a good example if you only back up nightly.
  3. You're out, and neither of the above two scenarios are occuring and you're out of the house watching Plex remotely. It might as well have all the server resources avaialble in case you have more streams than normal.
Link to comment

I don't think the feature, as you described it, will ever be implemented by Unraid.

 

It sounds simple in your head but is an extremely complicated change.

  1. On-demand CPU core isolation needs to be implemented by Linux at the kernel level e.g. creating a communication mechanism to lock and release core isolation (that is assuming core isolation is something that can be done after boot).
  2. On-demand core usage change for dockers needs to be implemented by Dockers. (remember, currently if you pin an isolated core to a docker, it will cripple the docker)
  3. IFTTT condition + GUI implemented by Limetech

(1) and (2) are not controlled by LT (nor it is within LT capabilities, to be honest).

So unless and until they are implemented by those entities, nobody (LT included) will be able to implement what you are asking.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.