我要评分
获取效率
正确性
完整性
易理解

Checking Resources

Kbox_maintainer provides the resource check function. It collects information about the memory, CPU, storage, and GPU of the Kbox cloud phone container and server. To query information about a specific item, refer to the commands in the Details in Table 1. Alternatively, you can batch collect data using Kbox_maintainer.

Table 1 Checking resources using Kbox_maintainer

Category

Details

Memory

Run dumpsys meminfo to obtain the memory information.

CPU

Run top to collect the top 10 processes with the highest CPU usage.

Run /proc/cpuinfo to obtain basic CPU information.

Storage

Run df -h to obtain the storage usage.

GPU

Run /sys/kernel/debug/dri/*/amdgpu_pm_info to obtain the GPU temperature information.

Run lspci to obtain GPU PCI device information.

Kbox_maintainer can collect resource information about a single container or all containers, and pack the collected information. It provides the resource field. You can add a container ID or container name after the field to collect resource information of the specified container. If no container ID is specified, information about all container resources is collected by default. Example:

1
2
python3 kbox_maintainer.py resource
python3 kbox_maintainer.py resource kbox_1