- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Config file syntax.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2003 02:30 AM
тАО07-21-2003 02:30 AM
I have a number of machines with ram from 256Meg to around 6 gig.
I want to setup my ignite config such that on machines with memory over 1gig it will set dbc_max_pct to correspond to 300 Meg of RAM.
I want dbc_min_pct set to 5 or dbc_max_pct if that is lower.
I have written a config that I think should do this, instl_adm says the syntax is fine, but it sets max_dbc_pct to very high values. My config is below.
I'm using ignite B.3.6.82 on HP-UX 11.11
My config:
( memory > 1000MB )
{
_membytes = ${memory+0}
_dbc_max = ( 100 * ( 300MB / _membytes ))
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"
}
}
( memory <= 1000MB )
{
mod_kernel += "dbc_max_pct 30"
mod_kernel += "dbc_min_pct 5"
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2003 03:07 AM
тАО07-21-2003 03:07 AM
Re: Config file syntax.
Please make sure that if you want to make dbc_max_pct or dbc_min_pct available(dynamic buffer cache), you should set bufpages & nbuf to 0.
My idea, if the physical memory over 1G, you can directly set bufpages to 300M. Else, set bufpages & nbuf to 0 and dbc_max_pct to 30!
Help this can be helpful!
-ux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2003 03:17 AM
тАО07-21-2003 03:17 AM
Re: Config file syntax.
If I check on a newly ignited machine they are indeed both set to 0.
I want a dynamic buffer cache that is no bigger than 300Meg. Some database machines don't use files much so I don't really want a static 300Meg buffer cache.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2003 03:56 AM
тАО07-21-2003 03:56 AM
Re: Config file syntax.
Try this.
( MEMORY > 1000MB )
{
_memytes = MEMORY
_dbc_max = ( 100 * ( 300 / _membytes ))
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"
}
}
( MEMORY <= 1000MB )
{
mod_kernel += "dbc_max_pct 30"
mod_kernel += "dbc_min_pct 5"
}
I think that will work !!!
Roland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2003 04:01 AM
тАО07-21-2003 04:01 AM
Re: Config file syntax.
_membytes = MEMORY
not
_memytes = MEMORY
Roland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2003 04:22 AM
тАО07-21-2003 04:22 AM
Re: Config file syntax.
The point of _membytes = ${memory+0} was to make sure ignite treats _membytes as an int containing the number of bytes, not however else it may
internally store values in megabytes.
Maybe this isn't needed.
The following should divide the number of bytes I'm aiming for by the number of bytes of ram.
Above:
_dbc_max = ( 100 * ( 300 / _membytes ))
Shouldn't this be:
_dbc_max = ( 100 * ( (300*1024*1024) / _membytes ))
?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2003 04:58 AM
тАО07-21-2003 04:58 AM
SolutionSo we must use this line
_dbc_max = ( 100 * ( (300*1024) / _membytes ))
check it by yourself
set
_membytes = MEMORY
to
init _membytes = MEMORY
than open a new installation window for a system and open the Additional Button. You will see that _membytes is in kb.
Roland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2003 07:10 AM
тАО07-21-2003 07:10 AM
Re: Config file syntax.
I'm not sure that 10 points was to fast.
I'm using the same ignite version on 11.11 as you . But if I open the additonal window the variable _dbc_max is always the value 0.
Has you the same effect?
If I use this (Box with 2GB RAM)
_dbc_max = ( 100 * ( 300 * 1024 / _membytes ))
it is 0
and if I use this
_dbc_max = ( 100 * 300 * 1024 / 2097152 )
the correct value of 14 is calculated.
HHMMMMMM ?????
Roland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2003 06:20 AM
тАО07-22-2003 06:20 AM
Re: Config file syntax.
The following config works like a charm:
---
( 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 ) )
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"
}
}
( MEMORY <= 1000MB )
{
mod_kernel += "dbc_max_pct 30"
mod_kernel += "dbc_min_pct 5"
}
---
The problems I'd seen were due to three things:
Ignite changing varibles from KB to Bytes,
Interger math losing everything after the decimal point,
and numbers overflowing a 32 bit integer.
What was causing me the most confusion was the background conversion between KBytes and Bytes on any minus or plus operation.
eg. on a machine with half a gig of RAM:
MEMORY = 524288
but
MEMORY+0 = 536870912
HP - If you are reading this:
Please use 64 bit integers on a 64 bit machine running a 64 bit OS.
Please let me set the type of vars. Double and unsigned Long Int would be nice.
Otherwise, thanks for a great product.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2003 12:08 AM
тАО07-28-2003 12:08 AM
Re: Config file syntax.
I have another problem.
The above works fine, however intsl_adm gives me a divide by zero error in
the following line:
init _dbc_max = 1+( ( _dbc_max_target ) / ( MEMORY / 100 ) )
MEMORY / 100 clearly isn't zero so anyone know whats going on??