- 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.
- Facebook Application Development with Graph API Cookbook
- Go語言高效編程:原理、可觀測性與優化
- 算法基礎:打開程序設計之門
- C語言程序設計實踐教程
- PhpStorm Cookbook
- SharePoint Development with the SharePoint Framework
- 一塊面包板玩轉Arduino編程
- ExtJS Web應用程序開發指南第2版
- 汽車人機交互界面整合設計
- Go語言底層原理剖析
- Jakarta EE Cookbook
- Oracle Database 12c DBA官方手冊(第8版)
- Unity 5.x 2D Game Development Blueprints
- Spring 5.0 Cookbook
- 零基礎學C# 3.0