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.10
Published
Jul 20, 2023
Platform
linux/amd64
Imports
19 packages
Last checked
8 seconds ago

Tools for package owners.