提交 5cd2fe6d 编写于 作者: S Steve Wise 提交者: David S. Miller

RDS/IW+IB: Set recv ring low water mark to 1/2 full.

Currently the recv ring low water mark is 1/4 the depth.  Performance
measurements show that this limits iWARP throughput by flow controlling
the rds-stress senders.  Setting it to 1/2 seems to max the T3
performance.  I tried even higher levels but that didn't help and it
started to increase the rds thread cpu utilization.
Signed-off-by: NSteve Wise <swise@opengridcomputing.com>
Signed-off-by: NAndy Grover <andy.grover@oracle.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a0c31fdf
...@@ -137,7 +137,7 @@ int rds_ib_ring_empty(struct rds_ib_work_ring *ring) ...@@ -137,7 +137,7 @@ int rds_ib_ring_empty(struct rds_ib_work_ring *ring)
int rds_ib_ring_low(struct rds_ib_work_ring *ring) int rds_ib_ring_low(struct rds_ib_work_ring *ring)
{ {
return __rds_ib_ring_used(ring) <= (ring->w_nr >> 2); return __rds_ib_ring_used(ring) <= (ring->w_nr >> 1);
} }
/* /*
......
...@@ -137,7 +137,7 @@ int rds_iw_ring_empty(struct rds_iw_work_ring *ring) ...@@ -137,7 +137,7 @@ int rds_iw_ring_empty(struct rds_iw_work_ring *ring)
int rds_iw_ring_low(struct rds_iw_work_ring *ring) int rds_iw_ring_low(struct rds_iw_work_ring *ring)
{ {
return __rds_iw_ring_used(ring) <= (ring->w_nr >> 2); return __rds_iw_ring_used(ring) <= (ring->w_nr >> 1);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册