@@ -1405,11 +1405,15 @@ lnet_nrb_tiny_calculate(void)
return -EINVAL;
}
- if (tiny_router_buffers > 0)
+ if (tiny_router_buffers > 0) {
+ if (tiny_router_buffers < LNET_NRB_TINY_MIN)
+ CWARN("tiny_router_buffers=%d less than recommended minimum %d\n",
+ tiny_router_buffers, LNET_NRB_TINY_MIN);
nrbs = tiny_router_buffers;
+ }
nrbs /= LNET_CPT_NUMBER;
- return max(nrbs, LNET_NRB_TINY_MIN);
+ return max(nrbs, 1);
}
static int
@@ -1424,11 +1428,15 @@ lnet_nrb_small_calculate(void)
return -EINVAL;
}
- if (small_router_buffers > 0)
+ if (small_router_buffers > 0) {
+ if (small_router_buffers < LNET_NRB_SMALL_MIN)
+ CWARN("small_router_buffers=%d less than recommended minimum %d\n",
+ small_router_buffers, LNET_NRB_SMALL_MIN);
nrbs = small_router_buffers;
+ }
nrbs /= LNET_CPT_NUMBER;
- return max(nrbs, LNET_NRB_SMALL_MIN);
+ return max(nrbs, 1);
}
static int
@@ -1443,11 +1451,15 @@ lnet_nrb_large_calculate(void)
return -EINVAL;
}
- if (large_router_buffers > 0)
+ if (large_router_buffers > 0) {
+ if (large_router_buffers < LNET_NRB_LARGE_MIN)
+ CWARN("large_router_buffers=%d less than recommended minimum %d\n",
+ large_router_buffers, LNET_NRB_LARGE_MIN);
nrbs = large_router_buffers;
+ }
nrbs /= LNET_CPT_NUMBER;
- return max(nrbs, LNET_NRB_LARGE_MIN);
+ return max(nrbs, 1);
}
int