Skip to content

/AWS1/CL_GG2SYSTEMRESRCLIMITS

Contains information about system resource limits that the IoT Greengrass Core software applies to a component's processes. For more information, see Configure system resource limits for components.

CONSTRUCTOR

IMPORTING

Optional arguments:

iv_memory TYPE /AWS1/GG2MEMORY /AWS1/GG2MEMORY

The maximum amount of RAM, expressed in kilobytes, that a component's processes can use on the core device.

iv_cpus TYPE /AWS1/RT_DOUBLE_AS_STRING /AWS1/RT_DOUBLE_AS_STRING

The maximum amount of CPU time that a component's processes can use on the core device. A core device's total CPU time is equivalent to the device's number of CPU cores. For example, on a core device with 4 CPU cores, you can set this value to 2 to limit the component's processes to 50 percent usage of each CPU core. On a device with 1 CPU core, you can set this value to 0.25 to limit the component's processes to 25 percent usage of the CPU. If you set this value to a number greater than the number of CPU cores, the IoT Greengrass Core software doesn't limit the component's CPU usage.


Queryable Attributes

memory

The maximum amount of RAM, expressed in kilobytes, that a component's processes can use on the core device.

Accessible with the following methods

Method Description
GET_MEMORY() Getter for MEMORY

cpus

The maximum amount of CPU time that a component's processes can use on the core device. A core device's total CPU time is equivalent to the device's number of CPU cores. For example, on a core device with 4 CPU cores, you can set this value to 2 to limit the component's processes to 50 percent usage of each CPU core. On a device with 1 CPU core, you can set this value to 0.25 to limit the component's processes to 25 percent usage of the CPU. If you set this value to a number greater than the number of CPU cores, the IoT Greengrass Core software doesn't limit the component's CPU usage.

Accessible with the following methods

Method Description
GET_CPUS() Getter for CPUS
ASK_CPUS() Getter for CPUS w/ exceptions if field has no value
STR_CPUS() String format for CPUS