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.0-rc0
Published
Sep 14, 2021
Platform
linux/amd64
Imports
18 packages
Last checked
1 second ago

Tools for package owners.