added new oracle knobs

This commit is contained in:
dvanaken 2019-12-15 16:53:27 +01:00 committed by Dana Van Aken
parent 38f44848af
commit fc4cf0e18b
4 changed files with 309 additions and 41 deletions

View File

@ -46,6 +46,28 @@ EXTRA_KNOBS = {
'_smm_px_max_size': {
'default': 300000,
},
'_optimizer_use_feedback': {
'default': True,
'minval': None,
'maxval': None,
'vartype': 4,
},
'ioseektim': {
'default': 10,
'minval': 1,
'maxval': 10,
},
'iotfrspeed': {
'default': 4096,
'minval': 4096,
'maxval': 190000,
},
'_enable_numa_optimization': {
'default': False,
'minval': None,
'maxval': None,
'vartype': 4,
},
}
@ -223,8 +245,8 @@ def set_field(fields):
fields['default'] = False
if fields['name'].lower() == 'optimizer_dynamic_sampling':
fields['tunable'] = True
fields['minval'] = 0
fields['maxval'] = 11
fields['minval'] = 2
fields['maxval'] = 10
fields['default'] = 2
if fields['name'].lower() == 'optimizer_adaptive_plans':
fields['tunable'] = True
@ -232,6 +254,12 @@ def set_field(fields):
fields['maxval'] = None
fields['default'] = True
fields['vartype'] = 4
if fields['name'].lower() == 'optimizer_adaptive_statistics':
fields['tunable'] = True
fields['minval'] = None
fields['maxval'] = None
fields['default'] = True
fields['vartype'] = 4
if fields['name'].lower() == 'optimizer_features_enable':
fields['tunable'] = True
fields['minval'] = None
@ -241,9 +269,21 @@ def set_field(fields):
fields['enumvals'] = '11.2.0.1,11.2.0.2,11.2.0.3,11.2.0.4,12.1.0.1,12.1.0.2,12.2.0.1'
if fields['name'].upper() == 'DISK_ASYNCH_IO':
fields['tunable'] = True
fields['vartype'] = 4
fields['default'] = True
fields['minval'] = None
fields['maxval'] = None
if fields['name'].lower() == 'db_writer_processes':
fields['tunable'] = False
fields['minval'] = 1
fields['maxval'] = 10
fields['default'] = 1
if fields['name'].lower() == 'filesystemio_options':
fields['default'] = 'none'
fields['minval'] = None
fields['maxval'] = None
fields['vartype'] = 5
fields['enumvals'] = 'TRUE,FALSE'
fields['default'] = 'TRUE'
fields['enumvals'] = 'asynch,directio,none,setall'
COLNAMES = ("NAME", "TYPE", "DEFAULT_VALUE", "DESCRIPTION")

View File

@ -1,4 +1,42 @@
[
{
"model": "website.KnobCatalog",
"fields": {
"name": "global._enable_numa_optimization",
"scope": "global",
"dbms": 121,
"category": "",
"enumvals": null,
"context": "",
"unit": 3,
"tunable": false,
"description": "",
"summary": "",
"vartype": 4,
"minval": null,
"maxval": null,
"default": false
}
},
{
"model": "website.KnobCatalog",
"fields": {
"name": "global._optimizer_use_feedback",
"scope": "global",
"dbms": 121,
"category": "",
"enumvals": null,
"context": "",
"unit": 3,
"tunable": false,
"description": "",
"summary": "",
"vartype": 4,
"minval": null,
"maxval": null,
"default": true
}
},
{
"model": "website.KnobCatalog",
"fields": {
@ -1708,10 +1746,10 @@
"unit": 3,
"tunable": false,
"description": "",
"minval": null,
"maxval": null,
"minval": 1,
"maxval": 10,
"vartype": 2,
"default": "1",
"default": 1,
"summary": "number of background database writer processes to start"
}
},
@ -1874,15 +1912,15 @@
"scope": "global",
"dbms": 121,
"category": "",
"enumvals": "TRUE,FALSE",
"enumvals": null,
"context": "",
"unit": 3,
"tunable": true,
"description": "",
"minval": null,
"maxval": null,
"vartype": 5,
"default": "TRUE",
"vartype": 4,
"default": true,
"summary": "Use asynch I/O for random access devices"
}
},
@ -2216,15 +2254,15 @@
"scope": "global",
"dbms": 121,
"category": "",
"enumvals": null,
"enumvals": "asynch,directio,none,setall",
"context": "",
"unit": 3,
"tunable": false,
"description": "",
"minval": null,
"maxval": null,
"vartype": 1,
"default": "NULL",
"vartype": 5,
"default": "none",
"summary": "IO operations on filesystem files"
}
},
@ -2628,6 +2666,44 @@
"summary": "instant repopulation of datafiles"
}
},
{
"model": "website.KnobCatalog",
"fields": {
"name": "global.ioseektim",
"scope": "global",
"dbms": 121,
"category": "",
"enumvals": null,
"context": "",
"unit": 3,
"tunable": false,
"description": "",
"summary": "",
"vartype": 2,
"minval": 1,
"maxval": 10,
"default": 10
}
},
{
"model": "website.KnobCatalog",
"fields": {
"name": "global.iotfrspeed",
"scope": "global",
"dbms": 121,
"category": "",
"enumvals": null,
"context": "",
"unit": 3,
"tunable": false,
"description": "",
"summary": "",
"vartype": 2,
"minval": 4096,
"maxval": 190000,
"default": 4096
}
},
{
"model": "website.KnobCatalog",
"fields": {
@ -5038,8 +5114,8 @@
"unit": 3,
"tunable": true,
"description": "",
"minval": 0,
"maxval": 11,
"minval": 2,
"maxval": 10,
"vartype": 2,
"default": 2,
"summary": "optimizer dynamic sampling"

View File

@ -1,4 +1,42 @@
[
{
"model": "website.KnobCatalog",
"fields": {
"name": "global._enable_numa_optimization",
"scope": "global",
"dbms": 12,
"category": "",
"enumvals": null,
"context": "",
"unit": 3,
"tunable": false,
"description": "",
"summary": "",
"vartype": 4,
"minval": null,
"maxval": null,
"default": false
}
},
{
"model": "website.KnobCatalog",
"fields": {
"name": "global._optimizer_use_feedback",
"scope": "global",
"dbms": 12,
"category": "",
"enumvals": null,
"context": "",
"unit": 3,
"tunable": false,
"description": "",
"summary": "",
"vartype": 4,
"minval": null,
"maxval": null,
"default": true
}
},
{
"model": "website.KnobCatalog",
"fields": {
@ -1993,10 +2031,10 @@
"unit": 3,
"tunable": false,
"description": "",
"minval": null,
"maxval": null,
"minval": 1,
"maxval": 10,
"vartype": 2,
"default": "0",
"default": 1,
"summary": "number of background database writer processes to start"
}
},
@ -2197,15 +2235,15 @@
"scope": "global",
"dbms": 12,
"category": "",
"enumvals": "TRUE,FALSE",
"enumvals": null,
"context": "",
"unit": 3,
"tunable": true,
"description": "",
"minval": null,
"maxval": null,
"vartype": 5,
"default": "TRUE",
"vartype": 4,
"default": true,
"summary": "Use asynch I/O for random access devices"
}
},
@ -2634,15 +2672,15 @@
"scope": "global",
"dbms": 12,
"category": "",
"enumvals": null,
"enumvals": "asynch,directio,none,setall",
"context": "",
"unit": 3,
"tunable": false,
"description": "",
"minval": null,
"maxval": null,
"vartype": 1,
"default": "asynch",
"vartype": 5,
"default": "none",
"summary": "IO operations on filesystem files"
}
},
@ -3122,6 +3160,44 @@
"summary": "instant repopulation of datafiles"
}
},
{
"model": "website.KnobCatalog",
"fields": {
"name": "global.ioseektim",
"scope": "global",
"dbms": 12,
"category": "",
"enumvals": null,
"context": "",
"unit": 3,
"tunable": false,
"description": "",
"summary": "",
"vartype": 2,
"minval": 1,
"maxval": 10,
"default": 10
}
},
{
"model": "website.KnobCatalog",
"fields": {
"name": "global.iotfrspeed",
"scope": "global",
"dbms": 12,
"category": "",
"enumvals": null,
"context": "",
"unit": 3,
"tunable": false,
"description": "",
"summary": "",
"vartype": 2,
"minval": 4096,
"maxval": 190000,
"default": 4096
}
},
{
"model": "website.KnobCatalog",
"fields": {
@ -5644,12 +5720,12 @@
"enumvals": null,
"context": "",
"unit": 3,
"tunable": false,
"tunable": true,
"description": "",
"minval": null,
"maxval": null,
"vartype": 4,
"default": "FALSE",
"default": true,
"summary": "controls all types of adaptive statistics"
}
},
@ -5684,8 +5760,8 @@
"unit": 3,
"tunable": true,
"description": "",
"minval": 0,
"maxval": 11,
"minval": 2,
"maxval": 10,
"vartype": 2,
"default": 2,
"summary": "optimizer dynamic sampling"

View File

@ -1,4 +1,42 @@
[
{
"model": "website.KnobCatalog",
"fields": {
"name": "global._enable_numa_optimization",
"scope": "global",
"dbms": 19,
"category": "",
"enumvals": null,
"context": "",
"unit": 3,
"tunable": false,
"description": "",
"summary": "",
"vartype": 4,
"minval": null,
"maxval": null,
"default": false
}
},
{
"model": "website.KnobCatalog",
"fields": {
"name": "global._optimizer_use_feedback",
"scope": "global",
"dbms": 19,
"category": "",
"enumvals": null,
"context": "",
"unit": 3,
"tunable": false,
"description": "",
"summary": "",
"vartype": 4,
"minval": null,
"maxval": null,
"default": true
}
},
{
"model": "website.KnobCatalog",
"fields": {
@ -2088,10 +2126,10 @@
"unit": 3,
"tunable": false,
"description": "",
"minval": null,
"maxval": null,
"minval": 1,
"maxval": 10,
"vartype": 2,
"default": "0",
"default": 1,
"summary": "number of background database writer processes to start"
}
},
@ -2292,15 +2330,15 @@
"scope": "global",
"dbms": 19,
"category": "",
"enumvals": "TRUE,FALSE",
"enumvals": null,
"context": "",
"unit": 3,
"tunable": true,
"description": "",
"minval": null,
"maxval": null,
"vartype": 5,
"default": "TRUE",
"vartype": 4,
"default": true,
"summary": "Use asynch I/O for random access devices"
}
},
@ -2729,15 +2767,15 @@
"scope": "global",
"dbms": 19,
"category": "",
"enumvals": null,
"enumvals": "asynch,directio,none,setall",
"context": "",
"unit": 3,
"tunable": false,
"description": "",
"minval": null,
"maxval": null,
"vartype": 1,
"default": "asynch",
"vartype": 5,
"default": "none",
"summary": "IO operations on filesystem files"
}
},
@ -3350,6 +3388,44 @@
"summary": "instant repopulation of datafiles"
}
},
{
"model": "website.KnobCatalog",
"fields": {
"name": "global.ioseektim",
"scope": "global",
"dbms": 19,
"category": "",
"enumvals": null,
"context": "",
"unit": 3,
"tunable": false,
"description": "",
"summary": "",
"vartype": 2,
"minval": 1,
"maxval": 10,
"default": 10
}
},
{
"model": "website.KnobCatalog",
"fields": {
"name": "global.iotfrspeed",
"scope": "global",
"dbms": 19,
"category": "",
"enumvals": null,
"context": "",
"unit": 3,
"tunable": false,
"description": "",
"summary": "",
"vartype": 2,
"minval": 4096,
"maxval": 190000,
"default": 4096
}
},
{
"model": "website.KnobCatalog",
"fields": {
@ -5967,12 +6043,12 @@
"enumvals": null,
"context": "",
"unit": 3,
"tunable": false,
"tunable": true,
"description": "",
"minval": null,
"maxval": null,
"vartype": 4,
"default": "FALSE",
"default": true,
"summary": "controls all types of adaptive statistics"
}
},
@ -6007,8 +6083,8 @@
"unit": 3,
"tunable": true,
"description": "",
"minval": 0,
"maxval": 11,
"minval": 2,
"maxval": 10,
"vartype": 2,
"default": 2,
"summary": "optimizer dynamic sampling"