官术网_书友最值得收藏!

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 buffers
  • FCM_NUM_CHANNELS: This parameter controls the number of channels used for communication

Both parameters have AUTOMATIC svalues assigned by default.

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.

主站蜘蛛池模板: 福贡县| 新津县| 西乌| 杭锦旗| 乌兰浩特市| 樟树市| 青田县| 无锡市| 长武县| 临汾市| 彭泽县| 甘孜县| 兴宁市| 望奎县| 恩施市| 沅江市| 新竹县| 南投县| 洪江市| 老河口市| 宜兰县| 安化县| 同仁县| 南部县| 稷山县| 辉南县| 太仆寺旗| 理塘县| 确山县| 达拉特旗| 固原市| 巢湖市| 沙洋县| 平武县| 靖州| 汕尾市| 两当县| 云南省| 福海县| 平罗县| 新化县|