Skip to content

Update LinuxMemoryPolicy requirements #317

@nayuta723

Description

@nayuta723

Overview

Update LinuxMemoryPolicy requirements

  • Change nodes field to be required as per v1.3.0 specification

Runtime Spec Reference

Implemented in runtime-spec as follows:

Found in https://github.com/opencontainers/runtime-spec/blob/main/specs-go/config.go:

LinuxMemoryPolicy

// LinuxMemoryPolicy represents input for the set_mempolicy syscall.
type LinuxMemoryPolicy struct {
	// Mode for the set_mempolicy syscall.
	Mode MemoryPolicyModeType `json:"mode"`

	// Nodes representing the nodemask for the set_mempolicy syscall in comma separated ranges format.
	// Format: "<node0>-<node1>,<node2>,<node3>-<node4>,..."
	Nodes string `json:"nodes"`

	// Flags for the set_mempolicy syscall.
	Flags []MemoryPolicyFlagType `json:"flags,omitempty"`
}

Related to #309

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions