Commit 58588247 authored by Michal Berger's avatar Michal Berger Committed by Tomasz Zawadzki
Browse files

lib/thread: Include actual {small,large}_pool_count setting in ERRLOG



Makes debugging easier.

Change-Id: Ic52fc248cadec1460c87e42261eb690c6b86f45a
Signed-off-by: default avatarMichal Berger <michal.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18805


Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
parent 5d1fa299
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -279,7 +279,8 @@ spdk_iobuf_channel_init(struct spdk_iobuf_channel *ch, const char *name,
	for (i = 0; i < small_cache_size; ++i) {
		if (spdk_ring_dequeue(g_iobuf.small_pool, (void **)&buf, 1) == 0) {
			SPDK_ERRLOG("Failed to populate iobuf small buffer cache. "
				    "You may need to increase spdk_iobuf_opts.small_pool_count.\n");
				    "You may need to increase spdk_iobuf_opts.small_pool_count (%"PRIu64")\n",
				    g_iobuf.opts.small_pool_count);
			SPDK_ERRLOG("See scripts/calc-iobuf.py for guidance on how to calculate "
				    "this value.\n");
			goto error;
@@ -290,7 +291,8 @@ spdk_iobuf_channel_init(struct spdk_iobuf_channel *ch, const char *name,
	for (i = 0; i < large_cache_size; ++i) {
		if (spdk_ring_dequeue(g_iobuf.large_pool, (void **)&buf, 1) == 0) {
			SPDK_ERRLOG("Failed to populate iobuf large buffer cache. "
				    "You may need to increase spdk_iobuf_opts.large_pool_count.\n");
				    "You may need to increase spdk_iobuf_opts.large_pool_count (%"PRIu64")\n",
				    g_iobuf.opts.large_pool_count);
			SPDK_ERRLOG("See scripts/calc-iobuf.py for guidance on how to calculate "
				    "this value.\n");
			goto error;