From dbf4d74328114b232cf92d043776ea082a15f96b Mon Sep 17 00:00:00 2001 From: Victor Lopez Date: Thu, 25 Oct 2018 16:55:19 +0200 Subject: [PATCH] Partial revert "Fix the upper limit of thread creation" This partially reverts commit e5343f020fbf9029a8efde026396b3bf84458600. The fatal condition is too strict and is affecting several other scenarios. --- src/arch/smp/smpplugin.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/arch/smp/smpplugin.cpp b/src/arch/smp/smpplugin.cpp index 6d69bfbb3..c93e58a47 100644 --- a/src/arch/smp/smpplugin.cpp +++ b/src/arch/smp/smpplugin.cpp @@ -1079,12 +1079,6 @@ nanos::PE * smpProcessorFactory ( int id, int uid ) void SMPPlugin::createWorker( ext::SMPProcessor *target, std::map &workers ) { - /* Max threads will be either the max number of PEs - * or the requested --smp-threads in case of oversubscription */ - int max_threads = std::max( _requestedWorkers, _availableCPUs ); - fatal_cond( workers.size() >= static_cast(max_threads), - "Thread limit reached at " << max_threads << " threads" ); - NANOS_INSTRUMENT( sys.getInstrumentation()->incrementMaxThreads(); ) if ( !target->isActive() ) { target->setActive(); -- GitLab