MySQL 9.3.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
my_system_api_freebsd.cc File Reference
#include <cstdint>
#include <unistd.h>
#include <sys/cpuset.h>
#include <sys/sysctl.h>
#include "my_system_api.h"

Functions

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...
 

Function Documentation

◆ num_vcpus_using_affinity()

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.

◆ num_vcpus_using_config()

uint32_t num_vcpus_using_config ( )

Get the number of VCPUS based on system configuration.