Ignite Syntax

 
Stephen Day_1
New Member

Ignite Syntax


I want to set dbc_max_pct and dbc_min_pct based on the amount of physical memory in the machine.

I have the following setup in one of my ignite config files:

--
_mem=( MEMORY / 100 )
( MEMORY > 1000MB )
{

init _dbc_max_target = 300MB
#Add one due to the following being rounded down.
#init _dbc_max = 1+( ( _dbc_max_target ) / ( MEMORY / 100 ) )
init _dbc_max = 1 + ( _dbc_max_target / _mem )
mod_kernel += "dbc_max_pct " + ${"%d" _dbc_max}

( _dbc_max < 5 )
{
mod_kernel += "dbc_min_pct " + ${"%d" _dbc_max}
}

( _dbc_max >= 5 )
{
mod_kernel += "dbc_min_pct 5"
}
--

The above works perfectly. But instl_adm -T lists an error:

--
ERROR: "/var/opt/ignite/data/DHL/Rel_B.11.11/common/base_kernel_params_cfg",
line 49: Attempt to divide by zero.
--

I'm guessing instl_adm doesn't set memory before testing. How can I get rid of this error?


P.S. I have seen the exact same problem with ignite 3.3 and 5.3. I have not tried other versions.