![]() |
MySQL 9.6.0
Source Code Documentation
|
Go to the source code of this file.
Functions | |
| bool | is_running_in_cgroup () |
| Determines if the current process is running in a container. More... | |
| bool | does_cgroup_limit_resources () |
| Determines if cgroup restricts resources. More... | |
| uint64_t | my_cgroup_mem_limit () |
| Read the memory limit set by the container. More... | |
| uint32_t | my_cgroup_vcpu_limit () |
| Read the CPU limit set by the container. More... | |
| uint32_t | num_vcpus_using_affinity () |
| Find number of VCPUs as seen by the current process based on the affinity between each process and VCPU. More... | |
| uint32_t | num_vcpus_using_config () |
| Get the number of VCPUS based on system configuration. More... | |
| uint32_t | my_system_num_vcpus () |
| Get the number of VCPU. More... | |
| bool does_cgroup_limit_resources | ( | ) |
Determines if cgroup restricts resources.
| bool is_running_in_cgroup | ( | ) |
Determines if the current process is running in a container.
| uint64_t my_cgroup_mem_limit | ( | ) |
Read the memory limit set by the container.
Try cgroup v2, and then cgroup v1
| uint32_t my_cgroup_vcpu_limit | ( | ) |
Read the CPU limit set by the container.
Try cgroup v2, and then cgroup v1
| uint32_t my_system_num_vcpus | ( | ) |
Get the number of VCPU.
| uint32_t num_vcpus_using_affinity | ( | ) |
Find number of VCPUs as seen by the current process based on the affinity between each process and VCPU.
| uint32_t num_vcpus_using_config | ( | ) |
Get the number of VCPUS based on system configuration.