neclib.core.security.load_check#

class LoadChecker[source]#

Bases: object

cpu_count = 4#

Number of logical processors.

Number of threads that can be handled simultaneously. Normally this is the same as the number of CPU cores. If simultaneous multi-threading is enabled (e.g., Intel’s Hyper-Threading technology), this value would be larger than the number of CPU cores.

cpu_usage()[source]#

Mean CPU usage since last call.

This method averages the usage from last call or class initialization.

Return type:

Quantity

loadavg()[source]#

Load average per processor.

Returns:

  • Number of processes using or waiting to use the processor, averaged over all

  • logical processors. The load is averaged over time duration of 1min, 5min, and

  • 15min.

Return type:

Tuple[float, float, float]

memory_available()[source]#

Available memory.

Return type:

Quantity

disk_usage()[source]#

Disk (storage) usage.

Return type:

Quantity

network_amount()[source]#

Network communication amount.

This method averages the data rate from last call or class initialization.

Return type:

Dict[str, Quantity]