Steven Barrett commented on issue #104 at Alfred Chen / linux-prjc

Steven Barrett
2025-06-18T13:22:41Z

I got time to test this yesterday and today on two different systems. On a 4c/8t processor, the nice levels appear to process in order. But on 16c/16t system (SMT off), it looks as if the patch was never applied:

± sudo ./nice_bench.py
2025-06-18 08:11:49,068 - Starting experiment...
2025-06-18 08:11:50,068 - Calibrated task size: 7346350
2025-06-18 08:11:50,094 - System has 16 CPUs
2025-06-18 08:11:50,094 - Launched 80 processes with nice levels: [20, 20, 19, 19, 18, 18, 17, 17, 16, 16, 15, 15, 14, 14, 13, 13, 12, 12, 11, 11, 10, 10, 9, 9, 8, 8, 7, 7, 6, 6, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 0, 0, -1, -1, -2, -2, -3, -3, -4, -4, -5, -5, -6, -6, -7, -7, -8, -8, -9, -9, -10, -10, -11, -11, -12, -12, -13, -13, -14, -14, -15, -15, -16, -16, -17, -17, -18, -18, -19, -19]
2025-06-18 08:11:50,094 - Running task with size 9. Press Ctrl+C to stop the experiment
2025-06-18 08:11:55,412 - Task completed with nice level 16 in 5.33 seconds, with wakeup latency of 67.16 microseconds
2025-06-18 08:11:55,415 - Task completed with nice level 14 in 5.33 seconds, with wakeup latency of 67.85 microseconds
2025-06-18 08:11:55,418 - Task completed with nice level 13 in 5.34 seconds, with wakeup latency of 70.41 microseconds
2025-06-18 08:11:55,427 - Task completed with nice level 18 in 5.35 seconds, with wakeup latency of 55.11 microseconds
2025-06-18 08:11:55,428 - Task completed with nice level 13 in 5.35 seconds, with wakeup latency of 58.72 microseconds
2025-06-18 08:11:55,435 - Task completed with nice level 16 in 5.36 seconds, with wakeup latency of 66.48 microseconds
2025-06-18 08:11:55,441 - Task completed with nice level 15 in 5.36 seconds, with wakeup latency of 65.79 microseconds
2025-06-18 08:11:55,449 - Task completed with nice level 18 in 5.37 seconds, with wakeup latency of 55.28 microseconds
2025-06-18 08:11:55,770 - Task completed with nice level -6 in 5.68 seconds, with wakeup latency of 52.35 microseconds
2025-06-18 08:11:56,101 - Task completed with nice level -1 in 6.01 seconds, with wakeup latency of 52.31 microseconds
2025-06-18 08:11:56,904 - Task completed with nice level -17 in 6.81 seconds, with wakeup latency of 53.02 microseconds
2025-06-18 08:11:59,107 - Task completed with nice level -18 in 9.01 seconds, with wakeup latency of 52.69 microseconds
2025-06-18 08:11:59,431 - Task completed with nice level -17 in 9.34 seconds, with wakeup latency of 54.29 microseconds
2025-06-18 08:12:00,481 - Task completed with nice level 10 in 10.40 seconds, with wakeup latency of 54.63 microseconds
2025-06-18 08:12:00,549 - Task completed with nice level 6 in 10.47 seconds, with wakeup latency of 53.11 microseconds
2025-06-18 08:12:00,559 - Task completed with nice level 20 in 10.48 seconds, with wakeup latency of 55.92 microseconds
2025-06-18 08:12:00,754 - Task completed with nice level -12 in 10.66 seconds, with wakeup latency of 52.89 microseconds
2025-06-18 08:12:00,764 - Task completed with nice level 20 in 10.69 seconds, with wakeup latency of 23.70 microseconds
2025-06-18 08:12:00,893 - Task completed with nice level -12 in 10.80 seconds, with wakeup latency of 160.06 microseconds
2025-06-18 08:12:01,045 - Task completed with nice level 11 in 10.96 seconds, with wakeup latency of 54.66 microseconds
2025-06-18 08:12:01,186 - Task completed with nice level -18 in 11.09 seconds, with wakeup latency of 52.40 microseconds
2025-06-18 08:12:02,318 - Task completed with nice level 12 in 12.24 seconds, with wakeup latency of 54.04 microseconds
2025-06-18 08:12:03,620 - Task completed with nice level -19 in 13.53 seconds, with wakeup latency of 52.59 microseconds
2025-06-18 08:12:03,642 - Task completed with nice level -19 in 13.55 seconds, with wakeup latency of 633.85 microseconds
2025-06-18 08:12:03,884 - Task completed with nice level -15 in 13.79 seconds, with wakeup latency of 52.85 microseconds
2025-06-18 08:12:04,271 - Task completed with nice level 2 in 14.19 seconds, with wakeup latency of 2025.16 microseconds
2025-06-18 08:12:04,504 - Task completed with nice level 4 in 14.42 seconds, with wakeup latency of 52.95 microseconds
2025-06-18 08:12:04,652 - Task completed with nice level -15 in 14.56 seconds, with wakeup latency of 52.46 microseconds
2025-06-18 08:12:04,733 - Task completed with nice level -10 in 14.64 seconds, with wakeup latency of 53.29 microseconds
2025-06-18 08:12:05,370 - Task completed with nice level -5 in 15.28 seconds, with wakeup latency of 52.98 microseconds
2025-06-18 08:12:05,604 - Task completed with nice level 3 in 15.52 seconds, with wakeup latency of 700.38 microseconds
2025-06-18 08:12:05,665 - Task completed with nice level -7 in 15.58 seconds, with wakeup latency of 53.10 microseconds
2025-06-18 08:12:05,706 - Task completed with nice level -8 in 15.62 seconds, with wakeup latency of 922.25 microseconds
2025-06-18 08:12:06,212 - Task completed with nice level -16 in 16.12 seconds, with wakeup latency of 53.05 microseconds
2025-06-18 08:12:06,348 - Task completed with nice level -9 in 16.26 seconds, with wakeup latency of 3681.83 microseconds
2025-06-18 08:12:06,886 - Task completed with nice level -11 in 16.80 seconds, with wakeup latency of 54.65 microseconds
2025-06-18 08:12:07,536 - Task completed with nice level 5 in 17.45 seconds, with wakeup latency of 3636.13 microseconds
2025-06-18 08:12:07,869 - Task completed with nice level -7 in 17.78 seconds, with wakeup latency of 801.81 microseconds
2025-06-18 08:12:08,394 - Task completed with nice level -13 in 18.30 seconds, with wakeup latency of 53.82 microseconds
2025-06-18 08:12:08,561 - Task completed with nice level -14 in 18.47 seconds, with wakeup latency of 52.73 microseconds
2025-06-18 08:12:08,649 - Task completed with nice level -16 in 18.56 seconds, with wakeup latency of 53.06 microseconds
2025-06-18 08:12:09,115 - Task completed with nice level -9 in 19.03 seconds, with wakeup latency of 3585.73 microseconds
2025-06-18 08:12:09,534 - Task completed with nice level -10 in 19.44 seconds, with wakeup latency of 5596.39 microseconds
2025-06-18 08:12:09,830 - Task completed with nice level -1 in 19.74 seconds, with wakeup latency of 53.06 microseconds
2025-06-18 08:12:09,836 - Task completed with nice level -13 in 19.74 seconds, with wakeup latency of 53.36 microseconds
2025-06-18 08:12:09,992 - Task completed with nice level 5 in 19.91 seconds, with wakeup latency of 4197.35 microseconds
2025-06-18 08:12:10,111 - Task completed with nice level 9 in 20.03 seconds, with wakeup latency of 53.36 microseconds
2025-06-18 08:12:10,187 - Task completed with nice level -8 in 20.10 seconds, with wakeup latency of 2833.84 microseconds
2025-06-18 08:12:10,683 - Task completed with nice level 6 in 20.60 seconds, with wakeup latency of 52.81 microseconds
2025-06-18 08:12:10,729 - Task completed with nice level -11 in 20.64 seconds, with wakeup latency of 53.22 microseconds
2025-06-18 08:12:11,445 - Task completed with nice level 8 in 21.36 seconds, with wakeup latency of 739.14 microseconds
2025-06-18 08:12:11,491 - Task completed with nice level 11 in 21.41 seconds, with wakeup latency of 55.02 microseconds
2025-06-18 08:12:11,569 - Task completed with nice level 8 in 21.49 seconds, with wakeup latency of 54.72 microseconds
2025-06-18 08:12:11,708 - Task completed with nice level -14 in 21.62 seconds, with wakeup latency of 52.99 microseconds
2025-06-18 08:12:12,474 - Task completed with nice level 7 in 22.39 seconds, with wakeup latency of 1710.97 microseconds
2025-06-18 08:12:12,669 - Task completed with nice level 19 in 22.59 seconds, with wakeup latency of 14.70 microseconds
2025-06-18 08:12:13,667 - Task completed with nice level -6 in 23.58 seconds, with wakeup latency of 53.32 microseconds
2025-06-18 08:12:14,308 - Task completed with nice level 0 in 24.22 seconds, with wakeup latency of 609.68 microseconds
2025-06-18 08:12:14,352 - Task completed with nice level 1 in 24.27 seconds, with wakeup latency of 2410.04 microseconds
2025-06-18 08:12:14,768 - Task completed with nice level 1 in 24.68 seconds, with wakeup latency of 53.06 microseconds
2025-06-18 08:12:14,799 - Task completed with nice level 0 in 24.71 seconds, with wakeup latency of 598.38 microseconds
2025-06-18 08:12:14,886 - Task completed with nice level 4 in 24.80 seconds, with wakeup latency of 53.79 microseconds
2025-06-18 08:12:14,931 - Task completed with nice level 12 in 24.85 seconds, with wakeup latency of 39.92 microseconds
2025-06-18 08:12:15,545 - Task completed with nice level 10 in 25.46 seconds, with wakeup latency of 7.53 microseconds
2025-06-18 08:12:15,718 - Task completed with nice level 17 in 25.64 seconds, with wakeup latency of 64.95 microseconds
2025-06-18 08:12:16,178 - Task completed with nice level -3 in 26.09 seconds, with wakeup latency of 53.71 microseconds
2025-06-18 08:12:16,180 - Task completed with nice level -5 in 26.09 seconds, with wakeup latency of 983.25 microseconds
2025-06-18 08:12:16,226 - Task completed with nice level 19 in 26.15 seconds, with wakeup latency of 54.73 microseconds
2025-06-18 08:12:16,561 - Task completed with nice level 7 in 26.48 seconds, with wakeup latency of 51.11 microseconds
2025-06-18 08:12:16,696 - Task completed with nice level 14 in 26.62 seconds, with wakeup latency of 66.39 microseconds
2025-06-18 08:12:16,772 - Task completed with nice level -2 in 26.68 seconds, with wakeup latency of 3574.81 microseconds
2025-06-18 08:12:16,968 - Task completed with nice level -4 in 26.88 seconds, with wakeup latency of 52.90 microseconds
2025-06-18 08:12:17,005 - Task completed with nice level -4 in 26.92 seconds, with wakeup latency of 772.84 microseconds
2025-06-18 08:12:17,007 - Task completed with nice level -2 in 26.92 seconds, with wakeup latency of 1904.05 microseconds
2025-06-18 08:12:17,044 - Task completed with nice level -3 in 26.96 seconds, with wakeup latency of 52.81 microseconds
2025-06-18 08:12:18,248 - Task completed with nice level 3 in 28.16 seconds, with wakeup latency of 53.56 microseconds
2025-06-18 08:12:18,628 - Task completed with nice level 2 in 28.54 seconds, with wakeup latency of 2806.14 microseconds
2025-06-18 08:12:19,193 - Task completed with nice level 15 in 29.11 seconds, with wakeup latency of 66.28 microseconds
2025-06-18 08:12:19,396 - Task completed with nice level 9 in 29.31 seconds, with wakeup latency of 32.72 microseconds
2025-06-18 08:12:20,262 - Task completed with nice level 17 in 30.18 seconds, with wakeup latency of 47.03 microseconds

Patch applied is in here: