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

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.

主站蜘蛛池模板: 裕民县| 华阴市| 凤凰县| 西乌珠穆沁旗| 康马县| 屏南县| 紫阳县| 龙山县| 宜章县| 金华市| 赤城县| 江陵县| 拜城县| 新绛县| 普安县| 巩义市| 新河县| 靖边县| 东乌珠穆沁旗| 丁青县| 西藏| 大理市| 丰台区| 益阳市| 伊通| 闸北区| 雅安市| 海晏县| 通州区| 平利县| 武功县| 兴义市| 昌宁县| 德格县| 靖边县| 白玉县| 玛曲县| 东乡族自治县| 密云县| 顺义区| 扎囊县|