Commit b6e9e1ab authored by Tomasz Zawadzki's avatar Tomasz Zawadzki
Browse files

example/perf: comment the ns to worker association



This documents the logic below and motivation behind
(70db0e1c)nvme/perf: Add support for multiple cores per device.

Change-Id: I949b794355f871c0f995b946622dbe77295d922b
Signed-off-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14413


Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarJacek Kalwas <jacek.kalwas@intel.com>
Reviewed-by: default avatarAleksey Marchuk <alexeymar@nvidia.com>
parent 762db2a4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2837,6 +2837,11 @@ associate_workers_with_ns(void)
	struct ns_worker_ctx	*ns_ctx;
	int			i, count;

	/* Each core contains single worker, and namespaces are associated as follows:
	 * 1) equal workers and namespaces - each worker associated with single namespace
	 * 2) more workers than namespaces - each namespace is associated with one or more workers
	 * 3) more namespaces than workers - each worker is associated with one or more namespaces
	 */
	count = g_num_namespaces > g_num_workers ? g_num_namespaces : g_num_workers;

	for (i = 0; i < count; i++) {