mirror of
https://github.com/unraid/webgui.git
synced 2026-01-25 02:58:58 -06:00
46 lines
2.1 KiB
Plaintext
46 lines
2.1 KiB
Plaintext
Menu="CPUset:2"
|
|
Title="CPU Pinning Docker"
|
|
Tag="icon-cpu"
|
|
---
|
|
<?PHP
|
|
/* Copyright 2005-2018, Lime Technology
|
|
* Copyright 2012-2018, Bergware International.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License version 2,
|
|
* as published by the Free Software Foundation.
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*/
|
|
?>
|
|
<?if ($dockerd):?>
|
|
<form name="ct">
|
|
<input type="hidden" name="names" id="names-ct" value="">
|
|
<table class='tablesorter shift' style='width:auto'>
|
|
<thead><tr><th><i class="fa fa-list"></i> Container</th><?create()?></tr></thead>
|
|
<tbody id="table-ct"><?=$spinner?></tbody>
|
|
</table>
|
|
<input type="button" value="Apply" onclick="apply(this.form)" disabled><input type="button" value="Done" onclick="done()"><span id="wait-ct" class="red-text" style="display:none"><i class="fa fa-spinner fa-spin"></i> Please wait...</span>
|
|
</form>
|
|
<?else:?>
|
|
<div class="notice">No CPU pinning available. Docker service must be started</div>
|
|
<?endif;?>
|
|
|
|
> This page gives a total view of the current CPU pinning assignments for Docker containers.<br>
|
|
> It also allows to modify these assignments.
|
|
>
|
|
> Running containers are **stopped first** and restarted after the modification.<br>
|
|
> Stopped containers are instantly modified and new assignments become active when the user manually starts the container.
|
|
>
|
|
> When ***Apply*** is pressed a scan is performed to find the changes, subsequently containers which have changes are modified in parallel.
|
|
>
|
|
> *Important: Please wait until all updates are finished before leaving this page*.
|
|
>
|
|
> By default NO cores are selected for a Docker container, which means it uses all available cores.<br>
|
|
> Do not select **ALL** cores for containers, just select **NO** cores if you want unrestricted core use.
|
|
>
|
|
> Do not select cores for containers which are *isolated*.
|
|
> By design a container will only use a single core (the lowest numbered core) when multiple isolated cores are selected.<br>
|
|
> Usually this is not what a user wants when selecting multiple cores.
|