Document Type | Technical Information
Category | Administration/Configuration
Applicable Product Versions | Tibero 6, 7
Document Number | TADTI107
Overview
This document provides guidance on the types and attribute values of key parameters related to Tibero Block and Memory.
Note
For more detailed Tibero parameter information, please refer to the attached file.
Method
Block
- DB_BLOCK_SIZE
This parameter sets the block size of the database. It must be set during the database creation stage and cannot be modified afterward.
Data block sizes typically used are 4KB for pure OLTP, 8KB for OLTP + batch processing, and 16KB or larger for DW, but generally 8KB is used.
However, it must be set to be greater than or equal to the OS block size.
The following explains advantageous block size settings depending on the situation.
| Category | Situation |
| Set Block Size Larger | - When large volumes of data are entered into tables or when there is no write contention, using a larger block size allows more data to fit in one block, which is advantageous.
|
| Set Block Size Smaller | In applications that frequently access data within the same block, while more blocks need to be read from disk, the possibility of contention can be reduced. |
Note
To check the filesystem block size on UNIX (or Linux), use the following command:
perl -e '$a=(stat ".")[11]; print $a'
Detailed information about the DB_BLOCK_SIZE parameter is as follows.
| Category | Description |
| Type | Integer |
| Default Value | 8 * 1024 (Configurable values: 2K~32K) |
| Attributes | Optional, Persistent, Static, System |
| How to Set | Set in TIP file and restart. |
| Syntax | DB_BLOCK_SIZE = <block size> |
- DB_FILE_MULTIBLOCK_READ_COUNT
This parameter sets the number of blocks that can be read in one I/O operation.
Detailed information about the DB_FILE_MULTIBLOCK_READ_COUNT parameter is as follows.
| Category | Description |
| Type | Integer |
| Default Value | 64 (Configurable values: 1~1024) |
| Attributes | Optional, Adjustable, Dynamic, Session |
| How to Set | Set in TIP file and restart. |
| Syntax | - TIP file
|
- DB_MULTIBLOCK_PREFETCH_COUNT
This parameter sets the number of blocks to prefetch when reading disk blocks.
Detailed information about the DB_MULTIBLOCK_PREFETCH_COUNT parameter is as follows.
| Category | Description |
| Type | Integer |
| Default Value | 1 |
| Attributes | Optional, Adjustable, Dynamic, System |
| How to Set | Set in TIP file and restart or change with ALTER statement. |
| Syntax | - TIP file
|
Memory
- DB_CACHE_SIZE
This parameter sets the size of the database cache buffer.
Generally, for single instances, it is set to about two-thirds of TOTAL_SHM_SIZE, and for TAC instances, about half. The appropriateness of the size is judged by the buffer cache hit rate.
Typically, an OLTP system is considered good if the hit rate is over 90%, DSS or DW systems over 80-85%, and purely batch processing systems may still function well even if the hit rate is below 50%.
Detailed information about the DB_CACHE_SIZE parameter is as follows.
| Category | Description |
| Type | Integer |
| Default Value | SINGLE / HA: TOTAL_SHM_SIZE * (2/3) TAC: TOTAL_SHM_SIZE / 2 |
| Attributes | Optional, Adjustable, Static, System |
| How to Set | Set in TIP file and restart. |
| Syntax | DB_CACHE_SIZE = <buffer size> |
- MEMORY_TARGET
This parameter sets the total memory used by the instance in bytes.
It is the sum of total shared memory and memory used by each process, calculated as TOTAL_SHM_SIZE + (total memory used by processes).
Detailed information about the MEMORY_TARGET parameter is as follows.
| Category | Description |
| Type | Integer |
| Default Value | 0 (Configurable values: 1M~) |
| Attributes | Optional, Adjustable, Dynamic, System |
| How to Set | Set in TIP file and restart or change with ALTER statement. |
| Syntax | - TIP file
|
- TOTAL_SHM_SIZE
This parameter sets the total shared memory size used by the instance.
It consists of database buffers, redo log buffers, SQL cache, and data dictionary cache, and a certain level of memory must be allocated for the application to function properly.
Tibero typically configures TOTAL_SHM_SIZE to about 60-70% of the system's physical memory and adjusts it through monitoring later.
Detailed information about the TOTAL_SHM_SIZE parameter is as follows.
| Category | Description |
| Type | Integer |
| Default Value | 0 (Configurable values: 1M~) |
| Attributes | Optional, Adjustable, Dynamic, System |
| How to Set | Set in TIP file and restart or change with ALTER statement. |
| Syntax | - TIP file
|
- LOG_BUFFER
This parameter sets the size of the memory area used to store logs.
Detailed information about the LOG_BUFFER parameter is as follows.
| Category | Description |
| Type | Integer |
| Default Value | 10 * 1024 * 1024 |
| Attributes | Optional, Adjustable, Static, System |
| How to Set | Set in TIP file and restart. |
| Syntax | LOG_BUFFER = <buffer size> |