From a221d7938b40e209932acb91aeaddda334a4d11c Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Thu, 27 May 2021 21:16:25 -0400 Subject: [PATCH] chore: shift off core 0 --- runtime/include/listener_thread.h | 2 +- runtime/src/main.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/include/listener_thread.h b/runtime/include/listener_thread.h index a00a4f4..91a28dd 100644 --- a/runtime/include/listener_thread.h +++ b/runtime/include/listener_thread.h @@ -5,7 +5,7 @@ #include "generic_thread.h" #include "module.h" -#define LISTENER_THREAD_CORE_ID 0 +#define LISTENER_THREAD_CORE_ID 1 extern pthread_t listener_thread_id; diff --git a/runtime/src/main.c b/runtime/src/main.c index 10f6e8e..a151149 100644 --- a/runtime/src/main.c +++ b/runtime/src/main.c @@ -29,7 +29,7 @@ int32_t debuglog_file_descriptor = -1; uint32_t runtime_processor_speed_MHz = 0; uint32_t runtime_total_online_processors = 0; uint32_t runtime_worker_threads_count = 0; -const uint32_t runtime_first_worker_processor = 1; +const uint32_t runtime_first_worker_processor = 2; FILE *runtime_sandbox_perf_log = NULL; @@ -60,7 +60,7 @@ runtime_allocate_available_cores() /* Find the number of processors currently online */ runtime_total_online_processors = sysconf(_SC_NPROCESSORS_ONLN); printf("\tCore Count: %u\n", runtime_total_online_processors); - uint32_t max_possible_workers = runtime_total_online_processors - 1; + uint32_t max_possible_workers = runtime_total_online_processors - 2; if (runtime_total_online_processors < 2) panic("Runtime requires at least two cores!");