IBM Support

What is DDR Block?

Question & Answer


Question

A description of DDR block situation.

Cause

DDR Block problem:

Some of the definitions related to DDR Block mode:

Replay position: This is the 'oldest' transaction that has not been acknowledged by all of its target instances and has not been stably stored in send queue. Replay position is the point where ER would have to begin snooping if the engine is restarted.

Snoopy position: The snoopy position is the log position that ER (ddr_snoopy) is currently processing.

Current position: The current log position is where the sqlexec threads are currently adding records to the logical log.


DDRBLOCK: DDRBLOCK is set when the current log position is getting too close to the replay log position. You will see the following onstat output when server is in DDRBLOCK mode.

Here is a diagram that explains DDR Block mode situation. I took this from one of the user conference presentation.


The “log needs” is not a fixed position in the log file, but a distance from the replay position. In the above chart, this represents about 70% of the distance from the replay position (everything except the DDR BLOCK zone). If the current position advances into the DDR BLOCK zone, DDR BLOCK will be set, causing sqlexec threads to hang.

As messages are ACKed or they are stored in the stable queue, the replay position should advance. Since the “log needs” position is based on the distance from the replay position, it will also advance. Once it has advanced one fourth of the “log needs” amount, DDR BLOCK will be lowered.

Answer

Some of the diagnostic outputs to collect in DDR Block situation:

  • Server message log files
  • onstat -g grp pager
  • onstat -g all
  • onstat -g stk all
  • onstat -a
  • onstat -g rcv full [at target server]
  • onstat -g cdr

[{"Product":{"code":"SSGU8G","label":"Informix Servers"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF025","label":"Platform Independent"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"11.1;11.5;11.70;12.1","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
03 June 2021

UID

swg21509892