package hcsoci

import "github.com/Microsoft/hcsshim/internal/hcsoci"

Index

Functions

func NormalizeMemorySize

func NormalizeMemorySize(ctx context.Context, cid string, requestedSizeMB uint64) uint64

NormalizeMemorySize returns the requested memory size in MB aligned up to an even number

func NormalizeProcessorCount

func NormalizeProcessorCount(ctx context.Context, cid string, requestedCount, hostCount int32) int32

NormalizeProcessorCount returns the `Min(requested, logical CPU count)`.

Source Files

devices.go network.go resources.go

Version
v0.9.3
Published
May 20, 2022
Platform
js/wasm
Imports
19 packages
Last checked
1 minute ago

Tools for package owners.