Skip to content

Commit

Permalink
adjusted the timeout and task count in the multi-core multithreading …
Browse files Browse the repository at this point in the history
…test
  • Loading branch information
FlareCoding committed Sep 14, 2024
1 parent 8a9ed88 commit c85f898
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kernel/src/entry/tests/multithreading.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ DECLARE_UNIT_TEST("Multithreading Test - Kernel Task Creation", mtTaskCreationUn
}

DECLARE_UNIT_TEST("Multithreading Test - Single Core", mtSingleCoreUnitTest) {
const size_t taskCount = 800;
const size_t taskCount = 1000;
const int targetCpu = BSP_CPU_ID;
const int taskExecutionTimeout = 2000;
const int taskExecutionTimeout = 2500;
auto& sched = Scheduler::get();

// Allocate a buffer to store the tasks
Expand Down Expand Up @@ -97,8 +97,8 @@ DECLARE_UNIT_TEST("Multithreading Test - Single Core", mtSingleCoreUnitTest) {

DECLARE_UNIT_TEST("Multithreading Test - Multi Core (Automatic Load Balancing)", mtMultiCoreUnitTest) {
const size_t systemCpus = AcpiController::get().getApicTable()->getCpuCount();
const size_t taskCount = 100 * systemCpus;
const uint32_t taskExecutionTimeout = 2000;
const size_t taskCount = 600 * systemCpus;
const uint32_t taskExecutionTimeout = 4000;
auto& sched = Scheduler::get();

// Allocate a buffer to store the tasks
Expand Down

0 comments on commit c85f898

Please sign in to comment.