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

doc.go resources.go

Version
v0.11.1
Published
Sep 20, 2023
Platform
js/wasm
Imports
3 packages
Last checked
4 minutes ago

Tools for package owners.