- IBM DB2 9.7 Advanced Administration Cookbook
- Adrian Neagu Robert Pelletier
- 471字
- 2021-08-20 15:33:24
Configuring Fast Communication Manager
The Fast Communication Manager (FCM) is an internal component of DB2 that plays a crucial role in inter-partition communication and parallel execution. On non-partitioned databases, it is activated if the INTRA_PARALLEL
database manager parameter is set to YES
. Depending on the database partition configuration, it can use shared memory or socket communication. The first case is applicable if we have logical partitioning (every partition is located on the same server); socket communication is used if we have separated servers or physical partitions. It being an important performance factor, you should be careful with setting FCM-related parameters.
Getting ready
An important component of FCM is the FCM buffer. An FCM buffer is actually a structure that holds data that is going to be passed between agents. The communication ports used by FCM are defined in the /etc/services
file. For example, in our case, we have defined a maximum of four logical ports:
DB2_db2instp 60008/tcp DB2_db2instp_1 60009/tcp DB2_db2instp_2 60010/tcp DB2_db2instp_END 60011/tcp
How to do it…
FCM is controlled by the following parameters:
FCM_NUM_BUFFERS:
This parameter controls the number of FCM buffersFCM_NUM_CHANNELS:
This parameter controls the number of channels used for communication
How it works...
FCM buffers are 4 KB memory structures that are allocated in instance shared memory. Internally, they have assigned priority levels, according to the type of messages they are handling on (failure messages have a higher priority than row passing messages between partitions).
There's more...
To set up a proper value for a number of buffers, it is recommended to monitor, from time to time, the values assigned to FCM_NUM_BUFFERS
and FCM_NUM_CHANNELS
, running in the AUTOMATIC
mode, especially when the processing is at peak values.
To monitor FCM buffers and channels, issue the following command:
[db2instp@nodedb21 ~]$ db2 "get snapshot for database manager" ………………………………………………………………………………………………………… Node FCM information corresponds to = 0 Free FCM buffers = 8049 Total FCM buffers = 8055 Free FCM buffers low water mark = 8037 Maximum number of FCM buffers = 1048940 Free FCM channels = 4475 Total FCM channels = 4475 Free FCM channels low water mark = 4464 Maximum number of FCM channels = 1048940 Number of FCM nodes = 5 ……………………………………………………………………………………………………………….
See also
The Monitoring and configuring FCM for optimal performance recipe in Chapter 11, Connectivity and Networking.
- Spring Cloud Alibaba核心技術與實戰案例
- 零基礎學Scratch少兒編程:小學課本中的Scratch創意編程
- SQL for Data Analytics
- Podman實戰
- Spring實戰(第5版)
- Yocto for Raspberry Pi
- MATLAB 2020從入門到精通
- Raspberry Pi Robotic Blueprints
- Java圖像處理:基于OpenCV與JVM
- MyBatis 3源碼深度解析
- Flask Web開發:基于Python的Web應用開發實戰(第2版)
- 進入IT企業必讀的324個Java面試題
- 程序員的成長課
- Java Web開發基礎與案例教程
- Java自然語言處理(原書第2版)