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': { '_smm_px_max_size': {
'default': 300000, '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 fields['default'] = False
if fields['name'].lower() == 'optimizer_dynamic_sampling': if fields['name'].lower() == 'optimizer_dynamic_sampling':
fields['tunable'] = True fields['tunable'] = True
fields['minval'] = 0 fields['minval'] = 2
fields['maxval'] = 11 fields['maxval'] = 10
fields['default'] = 2 fields['default'] = 2
if fields['name'].lower() == 'optimizer_adaptive_plans': if fields['name'].lower() == 'optimizer_adaptive_plans':
fields['tunable'] = True fields['tunable'] = True
@ -232,6 +254,12 @@ def set_field(fields):
fields['maxval'] = None fields['maxval'] = None
fields['default'] = True fields['default'] = True
fields['vartype'] = 4 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': if fields['name'].lower() == 'optimizer_features_enable':
fields['tunable'] = True fields['tunable'] = True
fields['minval'] = None 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' 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': if fields['name'].upper() == 'DISK_ASYNCH_IO':
fields['tunable'] = True 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['vartype'] = 5
fields['enumvals'] = 'TRUE,FALSE' fields['enumvals'] = 'asynch,directio,none,setall'
fields['default'] = 'TRUE'
COLNAMES = ("NAME", "TYPE", "DEFAULT_VALUE", "DESCRIPTION") 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", "model": "website.KnobCatalog",
"fields": { "fields": {
@ -1708,10 +1746,10 @@
"unit": 3, "unit": 3,
"tunable": false, "tunable": false,
"description": "", "description": "",
"minval": null, "minval": 1,
"maxval": null, "maxval": 10,
"vartype": 2, "vartype": 2,
"default": "1", "default": 1,
"summary": "number of background database writer processes to start" "summary": "number of background database writer processes to start"
} }
}, },
@ -1874,15 +1912,15 @@
"scope": "global", "scope": "global",
"dbms": 121, "dbms": 121,
"category": "", "category": "",
"enumvals": "TRUE,FALSE", "enumvals": null,
"context": "", "context": "",
"unit": 3, "unit": 3,
"tunable": true, "tunable": true,
"description": "", "description": "",
"minval": null, "minval": null,
"maxval": null, "maxval": null,
"vartype": 5, "vartype": 4,
"default": "TRUE", "default": true,
"summary": "Use asynch I/O for random access devices" "summary": "Use asynch I/O for random access devices"
} }
}, },
@ -2216,15 +2254,15 @@
"scope": "global", "scope": "global",
"dbms": 121, "dbms": 121,
"category": "", "category": "",
"enumvals": null, "enumvals": "asynch,directio,none,setall",
"context": "", "context": "",
"unit": 3, "unit": 3,
"tunable": false, "tunable": false,
"description": "", "description": "",
"minval": null, "minval": null,
"maxval": null, "maxval": null,
"vartype": 1, "vartype": 5,
"default": "NULL", "default": "none",
"summary": "IO operations on filesystem files" "summary": "IO operations on filesystem files"
} }
}, },
@ -2628,6 +2666,44 @@
"summary": "instant repopulation of datafiles" "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", "model": "website.KnobCatalog",
"fields": { "fields": {
@ -5038,8 +5114,8 @@
"unit": 3, "unit": 3,
"tunable": true, "tunable": true,
"description": "", "description": "",
"minval": 0, "minval": 2,
"maxval": 11, "maxval": 10,
"vartype": 2, "vartype": 2,
"default": 2, "default": 2,
"summary": "optimizer dynamic sampling" "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", "model": "website.KnobCatalog",
"fields": { "fields": {
@ -1993,10 +2031,10 @@
"unit": 3, "unit": 3,
"tunable": false, "tunable": false,
"description": "", "description": "",
"minval": null, "minval": 1,
"maxval": null, "maxval": 10,
"vartype": 2, "vartype": 2,
"default": "0", "default": 1,
"summary": "number of background database writer processes to start" "summary": "number of background database writer processes to start"
} }
}, },
@ -2197,15 +2235,15 @@
"scope": "global", "scope": "global",
"dbms": 12, "dbms": 12,
"category": "", "category": "",
"enumvals": "TRUE,FALSE", "enumvals": null,
"context": "", "context": "",
"unit": 3, "unit": 3,
"tunable": true, "tunable": true,
"description": "", "description": "",
"minval": null, "minval": null,
"maxval": null, "maxval": null,
"vartype": 5, "vartype": 4,
"default": "TRUE", "default": true,
"summary": "Use asynch I/O for random access devices" "summary": "Use asynch I/O for random access devices"
} }
}, },
@ -2634,15 +2672,15 @@
"scope": "global", "scope": "global",
"dbms": 12, "dbms": 12,
"category": "", "category": "",
"enumvals": null, "enumvals": "asynch,directio,none,setall",
"context": "", "context": "",
"unit": 3, "unit": 3,
"tunable": false, "tunable": false,
"description": "", "description": "",
"minval": null, "minval": null,
"maxval": null, "maxval": null,
"vartype": 1, "vartype": 5,
"default": "asynch", "default": "none",
"summary": "IO operations on filesystem files" "summary": "IO operations on filesystem files"
} }
}, },
@ -3122,6 +3160,44 @@
"summary": "instant repopulation of datafiles" "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", "model": "website.KnobCatalog",
"fields": { "fields": {
@ -5644,12 +5720,12 @@
"enumvals": null, "enumvals": null,
"context": "", "context": "",
"unit": 3, "unit": 3,
"tunable": false, "tunable": true,
"description": "", "description": "",
"minval": null, "minval": null,
"maxval": null, "maxval": null,
"vartype": 4, "vartype": 4,
"default": "FALSE", "default": true,
"summary": "controls all types of adaptive statistics" "summary": "controls all types of adaptive statistics"
} }
}, },
@ -5684,8 +5760,8 @@
"unit": 3, "unit": 3,
"tunable": true, "tunable": true,
"description": "", "description": "",
"minval": 0, "minval": 2,
"maxval": 11, "maxval": 10,
"vartype": 2, "vartype": 2,
"default": 2, "default": 2,
"summary": "optimizer dynamic sampling" "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", "model": "website.KnobCatalog",
"fields": { "fields": {
@ -2088,10 +2126,10 @@
"unit": 3, "unit": 3,
"tunable": false, "tunable": false,
"description": "", "description": "",
"minval": null, "minval": 1,
"maxval": null, "maxval": 10,
"vartype": 2, "vartype": 2,
"default": "0", "default": 1,
"summary": "number of background database writer processes to start" "summary": "number of background database writer processes to start"
} }
}, },
@ -2292,15 +2330,15 @@
"scope": "global", "scope": "global",
"dbms": 19, "dbms": 19,
"category": "", "category": "",
"enumvals": "TRUE,FALSE", "enumvals": null,
"context": "", "context": "",
"unit": 3, "unit": 3,
"tunable": true, "tunable": true,
"description": "", "description": "",
"minval": null, "minval": null,
"maxval": null, "maxval": null,
"vartype": 5, "vartype": 4,
"default": "TRUE", "default": true,
"summary": "Use asynch I/O for random access devices" "summary": "Use asynch I/O for random access devices"
} }
}, },
@ -2729,15 +2767,15 @@
"scope": "global", "scope": "global",
"dbms": 19, "dbms": 19,
"category": "", "category": "",
"enumvals": null, "enumvals": "asynch,directio,none,setall",
"context": "", "context": "",
"unit": 3, "unit": 3,
"tunable": false, "tunable": false,
"description": "", "description": "",
"minval": null, "minval": null,
"maxval": null, "maxval": null,
"vartype": 1, "vartype": 5,
"default": "asynch", "default": "none",
"summary": "IO operations on filesystem files" "summary": "IO operations on filesystem files"
} }
}, },
@ -3350,6 +3388,44 @@
"summary": "instant repopulation of datafiles" "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", "model": "website.KnobCatalog",
"fields": { "fields": {
@ -5967,12 +6043,12 @@
"enumvals": null, "enumvals": null,
"context": "", "context": "",
"unit": 3, "unit": 3,
"tunable": false, "tunable": true,
"description": "", "description": "",
"minval": null, "minval": null,
"maxval": null, "maxval": null,
"vartype": 4, "vartype": 4,
"default": "FALSE", "default": true,
"summary": "controls all types of adaptive statistics" "summary": "controls all types of adaptive statistics"
} }
}, },
@ -6007,8 +6083,8 @@
"unit": 3, "unit": 3,
"tunable": true, "tunable": true,
"description": "", "description": "",
"minval": 0, "minval": 2,
"maxval": 11, "maxval": 10,
"vartype": 2, "vartype": 2,
"default": 2, "default": 2,
"summary": "optimizer dynamic sampling" "summary": "optimizer dynamic sampling"