Restricting the CPU or Memory Usage of a Process

If you want to limit the CPU or memory usage when Ascend DMI is running on the physical machine, refer to this section.

Control groups (cgroups) are a mechanism provided by the Linux kernel to limit the resources used by a single or multiple processes. They can implement refined control on resources such as the CPU and memory. By restricting the CPU and memory usage when Ascend DMI is running, you can prevent Ascend DMI from occupying too many resources. If Ascend DMI occupies too many resources, other programs cannot run properly. The operations are as follows: