Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions contrib/interconnect/udp/ic_udpifc.c
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ static ICGlobalControlInfo ic_control_info;

#define MAX_SEQS_IN_DISORDER_ACK (4)

#define MAX_QUEUE_SIZE (64)
#define MAX_QUEUE_SIZE (12)
/*
* UnackQueueRing
*
Expand Down Expand Up @@ -3753,7 +3753,7 @@ SetupUDPIFCInterconnect(EState *estate)
Gp_interconnect_queue_depth == 4 &&
Gp_interconnect_snd_queue_depth == 2)
{
int32 perQueue = Gp_interconnect_mem_size /
int32 perQueue = ((int64)Gp_interconnect_mem_size * 1024 * 1024) /
(Gp_max_packet_size * sliceNum);

calcSndDepth = Max(Gp_interconnect_snd_queue_depth, perQueue / 2);
Expand Down
4 changes: 2 additions & 2 deletions contrib/udp2/ic_udp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
#include "ic_types.h"
#include "udp2/ic_udp2.h"

#define MAX_QUEUE_SIZE (64)
#define MAX_QUEUE_SIZE (12)

#define HandleLastError() \
do { \
Expand Down Expand Up @@ -179,7 +179,7 @@ SetupInterconnectUDP2(EState *estate)
Gp_interconnect_queue_depth == 4 &&
Gp_interconnect_snd_queue_depth == 2)
{
int32 perQueue = Gp_interconnect_mem_size /
int32 perQueue = ((int64)Gp_interconnect_mem_size * 1024 * 1024) /
(Gp_max_packet_size * sliceNum);

calcSndDepth = Max(Gp_interconnect_snd_queue_depth, perQueue / 2);
Expand Down
2 changes: 1 addition & 1 deletion src/backend/utils/misc/guc_gp.c
Original file line number Diff line number Diff line change
Expand Up @@ -3788,7 +3788,7 @@ struct config_int ConfigureNamesInt_gp[] =
NULL
},
&Gp_interconnect_mem_size,
10, 1, 1024,
1, 1, 1024,
NULL, NULL, NULL
},

Expand Down
Loading