Kevin Klues
e284c74d93
Add unit test for CPUManager distribute NUMA algorithm verifying fixes
Before Change:
"test" description="ensure bestRemainder chosen with NUMA nodes that have enough CPUs to satisfy the request"
"combo remainderSet balance" combo=[0 1 2 3] remainderSet=[0 1] distribution=8 remainder=2 available=[-1 -1 0 6] balance=2.915
"combo remainderSet balance" combo=[0 1 2 3] remainderSet=[0 2] distribution=8 remainder=2 available=[-1 0 -1 6] balance=2.915
"combo remainderSet balance" combo=[0 1 2 3] remainderSet=[0 3] distribution=8 remainder=2 available=[5 -1 0 0] balance=2.345
"combo remainderSet balance" combo=[0 1 2 3] remainderSet=[1 2] distribution=8 remainder=2 available=[0 -1 -1 6] balance=2.915
"combo remainderSet balance" combo=[0 1 2 3] remainderSet=[1 3] distribution=8 remainder=2 available=[0 -1 0 5] balance=2.345
"combo remainderSet balance" combo=[0 1 2 3] remainderSet=[2 3] distribution=8 remainder=2 available=[0 0 -1 5] balance=2.345
"bestCombo found" distribution=8 bestCombo=[0 1 2 3] bestRemainder=[0 3]
--- FAIL: TestTakeByTopologyNUMADistributed (0.01s)
--- FAIL: TestTakeByTopologyNUMADistributed/ensure_bestRemainder_chosen_with_NUMA_nodes_that_have_enough_CPUs_to_satisfy_the_request (0.00s)
cpu_assignment_test.go:867: unexpected error [accounting error, not enough CPUs allocated, remaining: 1]
After Change:
"test" description="ensure bestRemainder chosen with NUMA nodes that have enough CPUs to satisfy the request"
"combo remainderSet balance" combo=[0 1 2 3] remainderSet=[3] distribution=8 remainder=2 available=[0 0 0 4] balance=1.732
"bestCombo found" distribution=8 bestCombo=[0 1 2 3] bestRemainder=[3]
SUCCESS
Signed-off-by: Kevin Klues <kklues@nvidia.com>
2021-11-24 20:45:37 +00:00
..
2021-11-15 18:39:30 -05:00
2021-11-17 16:46:48 -08:00
2021-04-07 10:46:03 -04:00
2021-03-13 10:53:47 +01:00
2021-04-13 20:54:50 -04:00
2021-08-24 15:47:49 -04:00
2021-05-03 00:01:49 +08:00
2021-11-23 06:48:54 -08:00
2021-11-09 10:34:54 +08:00
2021-09-27 11:02:22 -07:00
2021-11-19 14:27:22 -08:00
2021-02-28 15:17:29 -08:00
2021-07-14 08:53:33 -04:00
2021-09-16 14:02:21 +05:30
2021-02-28 15:17:29 -08:00
2021-11-24 20:45:37 +00:00
2021-11-16 19:10:36 +08:00
2021-09-14 20:25:56 +05:30
2021-11-20 00:23:53 +00:00
2021-11-18 14:04:44 -08:00
2021-11-15 18:39:37 -05:00
2021-11-17 16:46:48 -08:00
2021-02-28 15:17:29 -08:00
2021-11-16 17:44:12 -08:00
2021-10-11 20:54:20 +02:00
2021-05-19 16:24:14 -07:00
2021-10-27 16:50:25 -04:00
2021-11-17 13:58:53 +01:00
2021-11-17 08:56:54 +01:00
2021-09-15 21:41:45 -07:00
2020-08-08 19:08:38 -04:00