MySQL 9.3.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
my_system_api_solaris.cc File Reference

Functions to fetch the number of VCPUs from the system. More...

#include "my_config.h"
#include <sys/pset.h>
#include <sys/types.h>
#include <cstdint>
#include <unistd.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...
 

Detailed Description

Functions to fetch the number of VCPUs from the system.

APIs retrieve this information using the affinity between the process and the VCPU or by reading the system configuration

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.