MySQL 8.3.0
Source Code Documentation
pfs_autosize.cc File Reference

Private interface for the server (implementation). More...

#include <assert.h>
#include <sys/types.h>
#include <algorithm>
#include "my_psi_config.h"
#include "my_thread.h"
#include "sql/sql_const.h"
#include "sql/sys_vars.h"
#include "storage/perfschema/pfs_server.h"

Classes

struct  PFS_sizing_data
 Performance schema sizing heuristics. More...
 

Functions

static PFS_sizing_dataestimate_hints (PFS_global_param *param)
 
static void apply_heuristic (PFS_global_param *p, PFS_sizing_data *h)
 
void pfs_automated_sizing (PFS_global_param *param)
 

Variables

PFS_sizing_data small_data
 
PFS_sizing_data medium_data
 
PFS_sizing_data large_data
 

Detailed Description

Private interface for the server (implementation).

Function Documentation

◆ apply_heuristic()

static void apply_heuristic ( PFS_global_param p,
PFS_sizing_data h 
)
static

◆ estimate_hints()

static PFS_sizing_data * estimate_hints ( PFS_global_param param)
static

◆ pfs_automated_sizing()

void pfs_automated_sizing ( PFS_global_param param)

Variable Documentation

◆ large_data

PFS_sizing_data large_data
Initial value:
= {
10, 10000, 10, 10000, 10, 10000, 10, 10000,
10000,
512}

◆ medium_data

PFS_sizing_data medium_data
Initial value:
= {
10, 1000, 10, 1000, 10, 1000, 10, 1000,
5000,
512}

◆ small_data

PFS_sizing_data small_data
Initial value:
= {
5, 100, 5, 100, 5, 100, 5, 100,
1000,
512}