You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ms/release/0.1]Backport annotation, vNUMA, and GPU device changes (#2493)
* Organize annotations; change annotation expansions. (#2449)
Break out `pkg\annotations\annotations.go` constants into sections for
easier searching and readability.
Deprecate `AnnotationExpansions` and instead provide
`AnnotationExpansionMap()`, which returns the same value, but provides a
new copy every call, so the `map` cannot be modified.
Cannot delete it or change its type, since it is technically public.
Signed-off-by: Hamza El-Saawy <[email protected]>
(cherry picked from commit ffcf48b)
Signed-off-by: Hamza El-Saawy <[email protected]>
* Warn on incomplete vNUMA setting, clarify field names (#2466)
Warn if vNUMA is not completely specified in uVM creation options, as
this is likely a user error.
Rename `"uvm".Opts.MaxSizePerNode` to `MaxMemorySizePerNumaNode` and
clarify that it is measured in MiB. Similarly, rename
`"annotations".NumaMaximumSizePerNode` to
`NumaMaximumMemorySizePerNode`.
Format `prepareVNumaTopology` doc comment to display appropriately.
Related: switch to using `"logrus".IsLevelEnabled` rather than explicit
logging level comparison, and fix bug where `--debug` flag was not added
to runc if logging level is greater than `Debug` (i.e., `Trace`).
Signed-off-by: Hamza El-Saawy <[email protected]>
(cherry picked from commit 0842153)
Signed-off-by: Hamza El-Saawy <[email protected]>
* Fix CUDA for non-privileged containers (#2492)
CUDA initialization for GPUs fails for non-privileged containers.
Experimenting shows that adding `rw` for all character devices fixes the
error, so expand the
[default `c *:* m` permissions](https://github.com/opencontainers/runc/blob/6bae6cad4759a5b3537d550f43ea37d51c6b518a/libcontainer/specconv/spec_linux.go#L205-L222)
to `c *:* rwm`.
Add `"gpu"` string constant and streamline device assignment logic.
Signed-off-by: Hamza El-Saawy <[email protected]>
(cherry picked from commit 144c633)
Signed-off-by: Hamza El-Saawy <[email protected]>
---------
Signed-off-by: Hamza El-Saawy <[email protected]>
0 commit comments