From daaaec3869dd76122eb2ee2ca5ae19ab54a26336 Mon Sep 17 00:00:00 2001 From: Kern Attila GERMAIN <5556461+kernattila@users.noreply.github.com> Date: Thu, 1 Jun 2023 17:05:16 +0200 Subject: [PATCH 01/17] fix: rssupdate error, need strings --- rqd/rqd/rqmachine.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rqd/rqd/rqmachine.py b/rqd/rqd/rqmachine.py index 2fc5a32ce..4c0a4fdb6 100644 --- a/rqd/rqd/rqmachine.py +++ b/rqd/rqd/rqmachine.py @@ -274,6 +274,7 @@ def rssUpdate(self, frames): # - rss: inaccurate, similar to VmRss in /proc/[pid]/status child_statm_fields = self._getStatFields( rqd.rqconstants.PATH_PROC_PID_STATM.format(pid)) + child_statm_fields = map(child_statm_fields, str) pids[pid]['statm_size'] = \ int(re.search(r"\d+", child_statm_fields[0]).group()) \ if re.search(r"\d+", child_statm_fields[0]) else -1 From 4f0876f194c2d520f910a37483418422a4eec23a Mon Sep 17 00:00:00 2001 From: Kern Attila GERMAIN <5556461+kernattila@users.noreply.github.com> Date: Thu, 1 Jun 2023 17:10:04 +0200 Subject: [PATCH 02/17] fix: count procs per core, sort cores in order (not random anymore), reserve precisely according to request (P-cores first, E-cores last) --- rqd/rqd/rqmachine.py | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/rqd/rqd/rqmachine.py b/rqd/rqd/rqmachine.py index 4c0a4fdb6..35f10666f 100644 --- a/rqd/rqd/rqmachine.py +++ b/rqd/rqd/rqmachine.py @@ -825,7 +825,7 @@ def reserveHT(self, frameCores): # Prefer to assign cores from the same physical cpu. # Spread different frames around on different physical cpus. avail_cores = {} - avail_cores_count = 0 + avail_procs_count = 0 reserved_cores = self.__coreInfo.reserved_cores for physid, cores in self.__procs_by_physid_and_coreid.items(): @@ -834,14 +834,14 @@ def reserveHT(self, frameCores): int(coreid) in reserved_cores[int(physid)].coreid: continue avail_cores.setdefault(physid, set()).add(coreid) - avail_cores_count += 1 + avail_procs_count += len(cores[coreid]) - remaining_cores = frameCores / 100 + remaining_procs = frameCores / 100 - if avail_cores_count < remaining_cores: + if avail_procs_count < remaining_procs: err = ('Not launching, insufficient hyperthreading cores to reserve ' 'based on frameCores (%s < %s)') \ - % (avail_cores_count, remaining_cores) + % (avail_procs_count, remaining_procs) log.critical(err) raise rqd.rqexceptions.CoreReservationFailureException(err) @@ -853,18 +853,22 @@ def reserveHT(self, frameCores): # the most idle cores first. key=lambda tup: len(tup[1]), reverse=True): - - while remaining_cores > 0 and len(cores) > 0: - coreid = cores.pop() - # Give all the hyperthreads on this core. - # This counts as one core. + cores = sorted(list(cores), key=lambda _coreid: int(_coreid)) + while remaining_procs > 0 and len(cores) > 0: + # Reserve cores with max threads first + # Avoid booking too much threads + # ex: if remaining_procs==2, get the next core with 2 threads + # ex: if remaining_procs==1, get the next core with 1 thread or any other core + coreid = next(iter([cid for cid in cores + if len(self.__procs_by_physid_and_coreid[physid][cid]) <= remaining_procs]), + cores[0]) + cores.remove(coreid) + procids = self.__procs_by_physid_and_coreid[physid][coreid] reserved_cores[int(physid)].coreid.extend([int(coreid)]) - remaining_cores -= 1 - - for procid in self.__procs_by_physid_and_coreid[physid][coreid]: - tasksets.append(procid) + remaining_procs -= len(procids) + tasksets.extend(procids) - if remaining_cores == 0: + if remaining_procs == 0: break log.warning('Taskset: Reserving procs - %s', ','.join(tasksets)) From 57bb9466bd2e13541c6204c2397acf58f90087b6 Mon Sep 17 00:00:00 2001 From: Kern Attila GERMAIN <5556461+kernattila@users.noreply.github.com> Date: Thu, 1 Jun 2023 18:02:56 +0200 Subject: [PATCH 03/17] fix: reverse map() arguments --- rqd/rqd/rqmachine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rqd/rqd/rqmachine.py b/rqd/rqd/rqmachine.py index 35f10666f..0f3c07436 100644 --- a/rqd/rqd/rqmachine.py +++ b/rqd/rqd/rqmachine.py @@ -274,7 +274,7 @@ def rssUpdate(self, frames): # - rss: inaccurate, similar to VmRss in /proc/[pid]/status child_statm_fields = self._getStatFields( rqd.rqconstants.PATH_PROC_PID_STATM.format(pid)) - child_statm_fields = map(child_statm_fields, str) + child_statm_fields = list(map(str, child_statm_fields)) pids[pid]['statm_size'] = \ int(re.search(r"\d+", child_statm_fields[0]).group()) \ if re.search(r"\d+", child_statm_fields[0]) else -1 From f968ad3709295622fce35c2d6e229faaac239e6b Mon Sep 17 00:00:00 2001 From: Kern Attila GERMAIN <5556461+kernattila@users.noreply.github.com> Date: Thu, 1 Jun 2023 19:11:15 +0200 Subject: [PATCH 04/17] test!: update HT test --- rqd/tests/rqmachine_tests.py | 78 +++++++++++++++++------------------- 1 file changed, 37 insertions(+), 41 deletions(-) diff --git a/rqd/tests/rqmachine_tests.py b/rqd/tests/rqmachine_tests.py index 1b1bdaf4a..017a3f224 100644 --- a/rqd/tests/rqmachine_tests.py +++ b/rqd/tests/rqmachine_tests.py @@ -447,12 +447,13 @@ def test_getBootReport(self): def test_reserveHT(self): """ - Total 2 physical(ph) processors with 4 cores each with 2 threads each - step1 - taskset1: Reserve 3 cores (ph1) - step2 - taskset0: Reserve 4 cores (ph0) - step3 - Release cores on taskset0 - step4 - taskset3: Reserve 2 cores (ph0) - step5 - taskset4: 3 remaining, Reserve 3 cores (ph0+ph1) + Total 2 physical(ph) processors with 4 cores each with 2 threads each (total 16 threads) + note: reserving odd threads will result in even threads when there is no mono-thread cores + step1 - taskset0: Reserve 4 threads (2 cores) (ph0->0,1) + step2 - taskset1: Reserve 6 threads (3 cores) (ph1->0,1,2) + step3 - Release cores on taskset0 (ph0->0,1) + step4 - taskset3: Reserve 6 threads (3 cores) (ph0->0,1,2) + step5 - taskset4: 4 remaining, Reserve 4 threads (2 cores) (ph0->3 + ph1->3) step5 - taskset5: No more cores """ cpuInfo = os.path.join(os.path.dirname(__file__), 'cpuinfo', '_cpuinfo_shark_ht_8-4-2-2') @@ -462,21 +463,6 @@ def test_reserveHT(self): self.machine.setupTaskset() # ------------------------step1------------------------- - # phys_id 1 - # - core_id 0 - # - process_id 4 - # - process_id 12 - # - core_id 1 - # - process_id 5 - # - process_id 13 - # - core_id 3 - # - process_id 7 - # - process_id 15 - tasksets1 = self.machine.reserveHT(300) - # pylint: disable=no-member - self.assertItemsEqual(['4', '5', '7', '12', '13', '15'], sorted(tasksets1.split(','))) - - # ------------------------step2------------------------- # phys_id 0 # - core_id 0 # - process_id 0 @@ -484,20 +470,30 @@ def test_reserveHT(self): # - core_id 1 # - process_id 1 # - process_id 9 - # - core_id 2 - # - process_id 2 - # - process_id 10 - # - core_id 3 - # - process_id 3 - # - process_id 11 tasksets0 = self.machine.reserveHT(400) # pylint: disable=no-member - self.assertItemsEqual(['0', '1', '2', '3', '8', '9', '10', '11'], + self.assertCountEqual(['0', '8', '1', '9'], sorted(tasksets0.split(','))) + # ------------------------step2------------------------- + # phys_id 1 + # - core_id 0 + # - process_id 4 + # - process_id 12 + # - core_id 1 + # - process_id 5 + # - process_id 13 + # - core_id 2 + # - process_id 6 + # - process_id 14 + tasksets1 = self.machine.reserveHT(600) + # pylint: disable=no-member + self.assertCountEqual(['4', '12', '5', '13', '6', '14'], + sorted(tasksets1.split(','))) + # reserved cores got updated properly # pylint: disable=no-member - self.assertItemsEqual([0, 1, 2, 3], self.coreDetail.reserved_cores[0].coreid) + self.assertCountEqual([0, 1], self.coreDetail.reserved_cores[0].coreid) # Make sure tastsets don't overlap self.assertTrue(set(tasksets0.split(',')).isdisjoint(tasksets1.split(','))) @@ -508,7 +504,7 @@ def test_reserveHT(self): # pylint: disable=no-member self.assertTrue(1 in self.coreDetail.reserved_cores) # pylint: disable=no-member - self.assertItemsEqual([0, 1, 3], self.coreDetail.reserved_cores[1].coreid) + self.assertCountEqual([0, 1, 2], self.coreDetail.reserved_cores[1].coreid) # ------------------------step4------------------------- # phys_id 0 @@ -518,30 +514,30 @@ def test_reserveHT(self): # - core_id 1 # - process_id 1 # - process_id 9 - tasksets3 = self.machine.reserveHT(200) + # - core_id 2 + # - process_id 2 + # - process_id 10 + tasksets3 = self.machine.reserveHT(600) # pylint: disable=no-member - self.assertItemsEqual(['0', '1', '8', '9'], sorted(tasksets3.split(','))) + self.assertCountEqual(['0', '8', '1', '9', '2', '10'], sorted(tasksets3.split(','))) # ------------------------step5------------------------- # phys_id 0 - # - core_id 2 - # - process_id 2 - # - process_id 10 # - core_id 3 # - process_id 3 # - process_id 11 # phys_id 1 - # - core_id 2 - # - process_id 6 - # - process_id 14 - tasksets4 = self.machine.reserveHT(300) + # - core_id 3 + # - process_id 7 + # - process_id 15 + tasksets4 = self.machine.reserveHT(400) # pylint: disable=no-member - self.assertItemsEqual(['2', '10', '3', '11', '6', '14'], sorted(tasksets4.split(','))) + self.assertCountEqual(['3', '11', '7', '15'], sorted(tasksets4.split(','))) # ------------------------step6------------------------- # No cores available with self.assertRaises(rqd.rqexceptions.CoreReservationFailureException): - self.machine.reserveHT(300) + self.machine.reserveHT(200) def test_tags(self): From ce22de2bf05e398955ae71fa29fd8401c21b699f Mon Sep 17 00:00:00 2001 From: Kern Attila GERMAIN <5556461+kernattila@users.noreply.github.com> Date: Thu, 1 Jun 2023 19:15:04 +0200 Subject: [PATCH 05/17] test!: avoid rqd RQD_USE_PATH_ENV_VAR option --- rqd/tests/rqmachine_tests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rqd/tests/rqmachine_tests.py b/rqd/tests/rqmachine_tests.py index 017a3f224..c29b260b6 100644 --- a/rqd/tests/rqmachine_tests.py +++ b/rqd/tests/rqmachine_tests.py @@ -371,6 +371,7 @@ def test_multipleGpus(self): self.assertEqual(122701222, self.machine.getGpuMemoryFree()) def test_getPathEnv(self): + rqd.rqconstants.RQD_USE_PATH_ENV_VAR = False self.assertEqual( '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', self.machine.getPathEnv()) From 56ee4871af2165848274a4da165cf0572409666e Mon Sep 17 00:00:00 2001 From: Kern Attila GERMAIN <5556461+kernattila@users.noreply.github.com> Date: Thu, 1 Jun 2023 19:48:23 +0200 Subject: [PATCH 06/17] test: add i9-12900 proc for tests --- .../_cpuinfo_i9_12900_hybrid_ht_24-12-2-1 | 672 ++++++++++++++++++ 1 file changed, 672 insertions(+) create mode 100644 rqd/tests/cpuinfo/_cpuinfo_i9_12900_hybrid_ht_24-12-2-1 diff --git a/rqd/tests/cpuinfo/_cpuinfo_i9_12900_hybrid_ht_24-12-2-1 b/rqd/tests/cpuinfo/_cpuinfo_i9_12900_hybrid_ht_24-12-2-1 new file mode 100644 index 000000000..f5daa0edc --- /dev/null +++ b/rqd/tests/cpuinfo/_cpuinfo_i9_12900_hybrid_ht_24-12-2-1 @@ -0,0 +1,672 @@ + +processor : 0 +vendor_id : GenuineIntel +cpu family : 6 +model : 151 +model name : 12th Gen Intel(R) Core(TM) i9-12900 +stepping : 2 +microcode : 0x22 +cpu MHz : 1238.064 +cache size : 30720 KB +physical id : 0 +siblings : 24 +core id : 0 +cpu cores : 16 +apicid : 0 +initial apicid : 0 +fpu : yes +fpu_exception : yes +cpuid level : 32 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities +vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause +bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb +bogomips : 4838.40 +clflush size : 64 +cache_alignment : 64 +address sizes : 46 bits physical, 48 bits virtual +power management: + +processor : 1 +vendor_id : GenuineIntel +cpu family : 6 +model : 151 +model name : 12th Gen Intel(R) Core(TM) i9-12900 +stepping : 2 +microcode : 0x22 +cpu MHz : 2400.000 +cache size : 30720 KB +physical id : 0 +siblings : 24 +core id : 0 +cpu cores : 16 +apicid : 1 +initial apicid : 1 +fpu : yes +fpu_exception : yes +cpuid level : 32 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities +vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause +bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb +bogomips : 4838.40 +clflush size : 64 +cache_alignment : 64 +address sizes : 46 bits physical, 48 bits virtual +power management: + +processor : 2 +vendor_id : GenuineIntel +cpu family : 6 +model : 151 +model name : 12th Gen Intel(R) Core(TM) i9-12900 +stepping : 2 +microcode : 0x22 +cpu MHz : 2400.000 +cache size : 30720 KB +physical id : 0 +siblings : 24 +core id : 4 +cpu cores : 16 +apicid : 8 +initial apicid : 8 +fpu : yes +fpu_exception : yes +cpuid level : 32 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities +vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause +bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb +bogomips : 4838.40 +clflush size : 64 +cache_alignment : 64 +address sizes : 46 bits physical, 48 bits virtual +power management: + +processor : 3 +vendor_id : GenuineIntel +cpu family : 6 +model : 151 +model name : 12th Gen Intel(R) Core(TM) i9-12900 +stepping : 2 +microcode : 0x22 +cpu MHz : 2400.000 +cache size : 30720 KB +physical id : 0 +siblings : 24 +core id : 4 +cpu cores : 16 +apicid : 9 +initial apicid : 9 +fpu : yes +fpu_exception : yes +cpuid level : 32 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities +vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause +bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb +bogomips : 4838.40 +clflush size : 64 +cache_alignment : 64 +address sizes : 46 bits physical, 48 bits virtual +power management: + +processor : 4 +vendor_id : GenuineIntel +cpu family : 6 +model : 151 +model name : 12th Gen Intel(R) Core(TM) i9-12900 +stepping : 2 +microcode : 0x22 +cpu MHz : 2400.000 +cache size : 30720 KB +physical id : 0 +siblings : 24 +core id : 8 +cpu cores : 16 +apicid : 16 +initial apicid : 16 +fpu : yes +fpu_exception : yes +cpuid level : 32 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities +vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause +bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb +bogomips : 4838.40 +clflush size : 64 +cache_alignment : 64 +address sizes : 46 bits physical, 48 bits virtual +power management: + +processor : 5 +vendor_id : GenuineIntel +cpu family : 6 +model : 151 +model name : 12th Gen Intel(R) Core(TM) i9-12900 +stepping : 2 +microcode : 0x22 +cpu MHz : 2400.000 +cache size : 30720 KB +physical id : 0 +siblings : 24 +core id : 8 +cpu cores : 16 +apicid : 17 +initial apicid : 17 +fpu : yes +fpu_exception : yes +cpuid level : 32 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities +vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause +bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb +bogomips : 4838.40 +clflush size : 64 +cache_alignment : 64 +address sizes : 46 bits physical, 48 bits virtual +power management: + +processor : 6 +vendor_id : GenuineIntel +cpu family : 6 +model : 151 +model name : 12th Gen Intel(R) Core(TM) i9-12900 +stepping : 2 +microcode : 0x22 +cpu MHz : 2400.000 +cache size : 30720 KB +physical id : 0 +siblings : 24 +core id : 12 +cpu cores : 16 +apicid : 24 +initial apicid : 24 +fpu : yes +fpu_exception : yes +cpuid level : 32 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities +vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause +bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb +bogomips : 4838.40 +clflush size : 64 +cache_alignment : 64 +address sizes : 46 bits physical, 48 bits virtual +power management: + +processor : 7 +vendor_id : GenuineIntel +cpu family : 6 +model : 151 +model name : 12th Gen Intel(R) Core(TM) i9-12900 +stepping : 2 +microcode : 0x22 +cpu MHz : 998.689 +cache size : 30720 KB +physical id : 0 +siblings : 24 +core id : 12 +cpu cores : 16 +apicid : 25 +initial apicid : 25 +fpu : yes +fpu_exception : yes +cpuid level : 32 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities +vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause +bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb +bogomips : 4838.40 +clflush size : 64 +cache_alignment : 64 +address sizes : 46 bits physical, 48 bits virtual +power management: + +processor : 8 +vendor_id : GenuineIntel +cpu family : 6 +model : 151 +model name : 12th Gen Intel(R) Core(TM) i9-12900 +stepping : 2 +microcode : 0x22 +cpu MHz : 2400.000 +cache size : 30720 KB +physical id : 0 +siblings : 24 +core id : 16 +cpu cores : 16 +apicid : 32 +initial apicid : 32 +fpu : yes +fpu_exception : yes +cpuid level : 32 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities +vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause +bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb +bogomips : 4838.40 +clflush size : 64 +cache_alignment : 64 +address sizes : 46 bits physical, 48 bits virtual +power management: + +processor : 9 +vendor_id : GenuineIntel +cpu family : 6 +model : 151 +model name : 12th Gen Intel(R) Core(TM) i9-12900 +stepping : 2 +microcode : 0x22 +cpu MHz : 2400.000 +cache size : 30720 KB +physical id : 0 +siblings : 24 +core id : 16 +cpu cores : 16 +apicid : 33 +initial apicid : 33 +fpu : yes +fpu_exception : yes +cpuid level : 32 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities +vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause +bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb +bogomips : 4838.40 +clflush size : 64 +cache_alignment : 64 +address sizes : 46 bits physical, 48 bits virtual +power management: + +processor : 10 +vendor_id : GenuineIntel +cpu family : 6 +model : 151 +model name : 12th Gen Intel(R) Core(TM) i9-12900 +stepping : 2 +microcode : 0x22 +cpu MHz : 2400.000 +cache size : 30720 KB +physical id : 0 +siblings : 24 +core id : 20 +cpu cores : 16 +apicid : 40 +initial apicid : 40 +fpu : yes +fpu_exception : yes +cpuid level : 32 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities +vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause +bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb +bogomips : 4838.40 +clflush size : 64 +cache_alignment : 64 +address sizes : 46 bits physical, 48 bits virtual +power management: + +processor : 11 +vendor_id : GenuineIntel +cpu family : 6 +model : 151 +model name : 12th Gen Intel(R) Core(TM) i9-12900 +stepping : 2 +microcode : 0x22 +cpu MHz : 2400.000 +cache size : 30720 KB +physical id : 0 +siblings : 24 +core id : 20 +cpu cores : 16 +apicid : 41 +initial apicid : 41 +fpu : yes +fpu_exception : yes +cpuid level : 32 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities +vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause +bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb +bogomips : 4838.40 +clflush size : 64 +cache_alignment : 64 +address sizes : 46 bits physical, 48 bits virtual +power management: + +processor : 12 +vendor_id : GenuineIntel +cpu family : 6 +model : 151 +model name : 12th Gen Intel(R) Core(TM) i9-12900 +stepping : 2 +microcode : 0x22 +cpu MHz : 2391.143 +cache size : 30720 KB +physical id : 0 +siblings : 24 +core id : 24 +cpu cores : 16 +apicid : 48 +initial apicid : 48 +fpu : yes +fpu_exception : yes +cpuid level : 32 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities +vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause +bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb +bogomips : 4838.40 +clflush size : 64 +cache_alignment : 64 +address sizes : 46 bits physical, 48 bits virtual +power management: + +processor : 13 +vendor_id : GenuineIntel +cpu family : 6 +model : 151 +model name : 12th Gen Intel(R) Core(TM) i9-12900 +stepping : 2 +microcode : 0x22 +cpu MHz : 2400.000 +cache size : 30720 KB +physical id : 0 +siblings : 24 +core id : 24 +cpu cores : 16 +apicid : 49 +initial apicid : 49 +fpu : yes +fpu_exception : yes +cpuid level : 32 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities +vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause +bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb +bogomips : 4838.40 +clflush size : 64 +cache_alignment : 64 +address sizes : 46 bits physical, 48 bits virtual +power management: + +processor : 14 +vendor_id : GenuineIntel +cpu family : 6 +model : 151 +model name : 12th Gen Intel(R) Core(TM) i9-12900 +stepping : 2 +microcode : 0x22 +cpu MHz : 2244.091 +cache size : 30720 KB +physical id : 0 +siblings : 24 +core id : 28 +cpu cores : 16 +apicid : 56 +initial apicid : 56 +fpu : yes +fpu_exception : yes +cpuid level : 32 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities +vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause +bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb +bogomips : 4838.40 +clflush size : 64 +cache_alignment : 64 +address sizes : 46 bits physical, 48 bits virtual +power management: + +processor : 15 +vendor_id : GenuineIntel +cpu family : 6 +model : 151 +model name : 12th Gen Intel(R) Core(TM) i9-12900 +stepping : 2 +microcode : 0x22 +cpu MHz : 2400.000 +cache size : 30720 KB +physical id : 0 +siblings : 24 +core id : 28 +cpu cores : 16 +apicid : 57 +initial apicid : 57 +fpu : yes +fpu_exception : yes +cpuid level : 32 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities +vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause +bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb +bogomips : 4838.40 +clflush size : 64 +cache_alignment : 64 +address sizes : 46 bits physical, 48 bits virtual +power management: + +processor : 16 +vendor_id : GenuineIntel +cpu family : 6 +model : 151 +model name : 12th Gen Intel(R) Core(TM) i9-12900 +stepping : 2 +microcode : 0x22 +cpu MHz : 2400.000 +cache size : 30720 KB +physical id : 0 +siblings : 24 +core id : 32 +cpu cores : 16 +apicid : 64 +initial apicid : 64 +fpu : yes +fpu_exception : yes +cpuid level : 32 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities +vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause +bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb +bogomips : 4838.40 +clflush size : 64 +cache_alignment : 64 +address sizes : 46 bits physical, 48 bits virtual +power management: + +processor : 17 +vendor_id : GenuineIntel +cpu family : 6 +model : 151 +model name : 12th Gen Intel(R) Core(TM) i9-12900 +stepping : 2 +microcode : 0x22 +cpu MHz : 2400.000 +cache size : 30720 KB +physical id : 0 +siblings : 24 +core id : 33 +cpu cores : 16 +apicid : 66 +initial apicid : 66 +fpu : yes +fpu_exception : yes +cpuid level : 32 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities +vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause +bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb +bogomips : 4838.40 +clflush size : 64 +cache_alignment : 64 +address sizes : 46 bits physical, 48 bits virtual +power management: + +processor : 18 +vendor_id : GenuineIntel +cpu family : 6 +model : 151 +model name : 12th Gen Intel(R) Core(TM) i9-12900 +stepping : 2 +microcode : 0x22 +cpu MHz : 2400.000 +cache size : 30720 KB +physical id : 0 +siblings : 24 +core id : 34 +cpu cores : 16 +apicid : 68 +initial apicid : 68 +fpu : yes +fpu_exception : yes +cpuid level : 32 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities +vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause +bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb +bogomips : 4838.40 +clflush size : 64 +cache_alignment : 64 +address sizes : 46 bits physical, 48 bits virtual +power management: + +processor : 19 +vendor_id : GenuineIntel +cpu family : 6 +model : 151 +model name : 12th Gen Intel(R) Core(TM) i9-12900 +stepping : 2 +microcode : 0x22 +cpu MHz : 2400.000 +cache size : 30720 KB +physical id : 0 +siblings : 24 +core id : 35 +cpu cores : 16 +apicid : 70 +initial apicid : 70 +fpu : yes +fpu_exception : yes +cpuid level : 32 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities +vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause +bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb +bogomips : 4838.40 +clflush size : 64 +cache_alignment : 64 +address sizes : 46 bits physical, 48 bits virtual +power management: + +processor : 20 +vendor_id : GenuineIntel +cpu family : 6 +model : 151 +model name : 12th Gen Intel(R) Core(TM) i9-12900 +stepping : 2 +microcode : 0x22 +cpu MHz : 2400.000 +cache size : 30720 KB +physical id : 0 +siblings : 24 +core id : 36 +cpu cores : 16 +apicid : 72 +initial apicid : 72 +fpu : yes +fpu_exception : yes +cpuid level : 32 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities +vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause +bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb +bogomips : 4838.40 +clflush size : 64 +cache_alignment : 64 +address sizes : 46 bits physical, 48 bits virtual +power management: + +processor : 21 +vendor_id : GenuineIntel +cpu family : 6 +model : 151 +model name : 12th Gen Intel(R) Core(TM) i9-12900 +stepping : 2 +microcode : 0x22 +cpu MHz : 2400.000 +cache size : 30720 KB +physical id : 0 +siblings : 24 +core id : 37 +cpu cores : 16 +apicid : 74 +initial apicid : 74 +fpu : yes +fpu_exception : yes +cpuid level : 32 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities +vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause +bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb +bogomips : 4838.40 +clflush size : 64 +cache_alignment : 64 +address sizes : 46 bits physical, 48 bits virtual +power management: + +processor : 22 +vendor_id : GenuineIntel +cpu family : 6 +model : 151 +model name : 12th Gen Intel(R) Core(TM) i9-12900 +stepping : 2 +microcode : 0x22 +cpu MHz : 2400.000 +cache size : 30720 KB +physical id : 0 +siblings : 24 +core id : 38 +cpu cores : 16 +apicid : 76 +initial apicid : 76 +fpu : yes +fpu_exception : yes +cpuid level : 32 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities +vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause +bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb +bogomips : 4838.40 +clflush size : 64 +cache_alignment : 64 +address sizes : 46 bits physical, 48 bits virtual +power management: + +processor : 23 +vendor_id : GenuineIntel +cpu family : 6 +model : 151 +model name : 12th Gen Intel(R) Core(TM) i9-12900 +stepping : 2 +microcode : 0x22 +cpu MHz : 2400.000 +cache size : 30720 KB +physical id : 0 +siblings : 24 +core id : 39 +cpu cores : 16 +apicid : 78 +initial apicid : 78 +fpu : yes +fpu_exception : yes +cpuid level : 32 +wp : yes +flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr flush_l1d arch_capabilities +vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause +bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb +bogomips : 4838.40 +clflush size : 64 +cache_alignment : 64 +address sizes : 46 bits physical, 48 bits virtual +power management: From c084fa2275ebaeb19d5e7d9577930e30530c9242 Mon Sep 17 00:00:00 2001 From: Kern Attila GERMAIN <5556461+kernattila@users.noreply.github.com> Date: Thu, 1 Jun 2023 19:50:39 +0200 Subject: [PATCH 07/17] test: add test_i9_12900() --- rqd/tests/rqmachine_tests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rqd/tests/rqmachine_tests.py b/rqd/tests/rqmachine_tests.py index c29b260b6..b10f01ea2 100644 --- a/rqd/tests/rqmachine_tests.py +++ b/rqd/tests/rqmachine_tests.py @@ -585,6 +585,9 @@ def test_srdsvr05(self): def test_srdsvr09(self): self.__cpuinfoTestHelper('_cpuinfo_srdsvr09_48-12-4') + def test_i9_12900(self): + self.__cpuinfoTestHelper('_cpuinfo_i9_12900_hybrid_ht_24-12-2-1') + def __cpuinfoTestHelper(self, pathCpuInfo): # File format: _cpuinfo_dub_x-x-x where x-x-x is totalCores-coresPerProc-numProcs pathCpuInfo = os.path.join(os.path.dirname(__file__), 'cpuinfo', pathCpuInfo) From a21d62f8fa036e53f4d2e3a1f4a49711e1682eb9 Mon Sep 17 00:00:00 2001 From: Kern Attila GERMAIN <5556461+kernattila@users.noreply.github.com> Date: Thu, 1 Jun 2023 22:43:07 +0200 Subject: [PATCH 08/17] fix: fixed and renamed cpu file --- ...ybrid_ht_24-12-2-1 => _cpuinfo_i9_12900_hybrid_ht_24-24-1-1} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename rqd/tests/cpuinfo/{_cpuinfo_i9_12900_hybrid_ht_24-12-2-1 => _cpuinfo_i9_12900_hybrid_ht_24-24-1-1} (100%) diff --git a/rqd/tests/cpuinfo/_cpuinfo_i9_12900_hybrid_ht_24-12-2-1 b/rqd/tests/cpuinfo/_cpuinfo_i9_12900_hybrid_ht_24-24-1-1 similarity index 100% rename from rqd/tests/cpuinfo/_cpuinfo_i9_12900_hybrid_ht_24-12-2-1 rename to rqd/tests/cpuinfo/_cpuinfo_i9_12900_hybrid_ht_24-24-1-1 index f5daa0edc..1862c4e90 100644 --- a/rqd/tests/cpuinfo/_cpuinfo_i9_12900_hybrid_ht_24-12-2-1 +++ b/rqd/tests/cpuinfo/_cpuinfo_i9_12900_hybrid_ht_24-24-1-1 @@ -1,4 +1,3 @@ - processor : 0 vendor_id : GenuineIntel cpu family : 6 @@ -670,3 +669,4 @@ clflush size : 64 cache_alignment : 64 address sizes : 46 bits physical, 48 bits virtual power management: + From 8add4c90575f6255d115fcb2487e31e456374870 Mon Sep 17 00:00:00 2001 From: Kern Attila GERMAIN <5556461+kernattila@users.noreply.github.com> Date: Thu, 1 Jun 2023 22:45:02 +0200 Subject: [PATCH 09/17] test: added a test for hybrid cpus with 8 performance cores and 8 efficiency cores. --- rqd/tests/rqmachine_tests.py | 159 ++++++++++++++++++++++++++++++++++- 1 file changed, 158 insertions(+), 1 deletion(-) diff --git a/rqd/tests/rqmachine_tests.py b/rqd/tests/rqmachine_tests.py index b10f01ea2..816a4a7c6 100644 --- a/rqd/tests/rqmachine_tests.py +++ b/rqd/tests/rqmachine_tests.py @@ -540,6 +540,163 @@ def test_reserveHT(self): with self.assertRaises(rqd.rqexceptions.CoreReservationFailureException): self.machine.reserveHT(200) + def test_reserveHybridHT(self): + """ + Total 1 physical(ph) processors with 8 P-cores(2 threads) and 8 E-cores(1 thread), total 24 threads. + note: reserving odd threads will result in even threads when there is no mono-thread cores, + which is not the case here. it should reserve E-cores to match the odd request. + step1 - taskset0: Reserve 4 threads (2P), 4 threads occupied + step2 - taskset1: Reserve 5 threads (2P, 1E), 9 threads occupied + step3 - taskset2: Reserve 6 threads (3P), 15 threads occupied + step4 - Release taskset0, 3P and 7E remaining, 11 threads occupied + step5 - taskset3: Reserve 12 threads (3P, 6E), 23 threads occupied + step6 - taskset4: Reserve 1 thread (1E), 24 threads occupied + step7 - Reserve 1 thread (1E), no more free cores + """ + cpuInfo = os.path.join(os.path.dirname(__file__), 'cpuinfo', '_cpuinfo_i9_12900_hybrid_ht_24-24-1-1') + self.fs.add_real_file(cpuInfo) + self.machine.testInitMachineStats(cpuInfo) + + self.machine.setupTaskset() + + # ------------------------step1------------------------- + # phys_id 0 + # - P core_id 0 + # - process_id 0 + # - process_id 1 + # - P core_id 4 + # - process_id 2 + # - process_id 3 + # - P core_id 8 + # - process_id 4 + # - process_id 5 + # - P core_id 12 + # - process_id 6 + # - process_id 7 + # - P core_id 16 + # - process_id 8 + # - process_id 9 + # - P core_id 20 + # - process_id 10 + # - process_id 11 + # - P core_id 24 + # - process_id 12 + # - process_id 13 + # - P core_id 28 + # - process_id 14 + # - process_id 15 + + # - E core_id 32 + # - process_id 16 + # - E core_id 33 + # - process_id 17 + # - E core_id 34 + # - process_id 18 + # - E core_id 35 + # - process_id 19 + # - E core_id 36 + # - process_id 20 + # - E core_id 37 + # - process_id 21 + # - E core_id 38 + # - process_id 22 + # - E core_id 39 + # - process_id 23 + tasksets0 = self.machine.reserveHT(400) + + # should reserve 2P (0,1, 2,3) + # pylint: disable=no-member + self.assertCountEqual(['0', '1', '2', '3'], tasksets0.split(',')) + + # should have 2 cores occupied + # pylint: disable=no-member + self.assertCountEqual([0, 4], self.coreDetail.reserved_cores[0].coreid) + # should have 4 threads occupied + self.assertEqual(len(tasksets0.split(',')), 4) + + + # ------------------------step2------------------------- + tasksets1 = self.machine.reserveHT(500) + + # should reserve 2P + 1E (4,5, 6,7, 16) + # pylint: disable=no-member + self.assertCountEqual(['4', '5', '6', '7', '16'], tasksets1.split(',')) + + # should have 5 cores occupied + # pylint: disable=no-member + self.assertCountEqual([0, 4, 8, 12, 32], self.coreDetail.reserved_cores[0].coreid) + # should have 9 threads occupied + self.assertEqual(len(tasksets0.split(',')) + + len(tasksets1.split(',')), + 9) + + + # ------------------------step3------------------------- + tasksets2 = self.machine.reserveHT(600) + + # should reserve 3P (8,9, 10,11, 12,13) + # pylint: disable=no-member + self.assertCountEqual(['8', '9', '10', '11', '12', '13'], tasksets2.split(',')) + + # should have 8 cores occupied + # pylint: disable=no-member + self.assertCountEqual([0, 4, 8, 12, 16, 20, 24, 32], self.coreDetail.reserved_cores[0].coreid) + # should have 15 threads occupied + self.assertEqual(len(tasksets0.split(',')) + + len(tasksets1.split(',')) + + len(tasksets2.split(',')), + 15) + + + # ------------------------step4------------------------- + self.machine.releaseHT(tasksets0) + # should release 2P (0,1, 2,3) + # should have 6 cores occupied + # pylint: disable=no-member + self.assertCountEqual([8, 12, 16, 20, 24, 32], self.coreDetail.reserved_cores[0].coreid) + # should have 11 threads occupied + self.assertEqual(len(tasksets1.split(',')) + + len(tasksets2.split(',')), + 11) + + + # ------------------------step5------------------------- + tasksets3 = self.machine.reserveHT(1200) + + # should reserve 3P + 6E (0,1, 2,3, 14,15, 17, 18, 19, 20, 21, 22) + # pylint: disable=no-member + self.assertCountEqual(['0', '1', '2', '3', '14', '15', '17', '18', '19', '20', '21', '22'], tasksets3.split(',')) + + # should have 15 cores occupied, 1E free + # pylint: disable=no-member + self.assertCountEqual([0, 4, 8, 12, 16, 20, 24, 28, 32, 33, 34, 35, 36, 37, 38], + self.coreDetail.reserved_cores[0].coreid) + + # should have 23 threads occupied + self.assertEqual(len(tasksets1.split(',')) + + len(tasksets2.split(',')) + + len(tasksets3.split(',')), + 23) + + # ------------------------step6------------------------- + tasksets4 = self.machine.reserveHT(100) + + # should reserve 1E (23) + # pylint: disable=no-member + self.assertCountEqual(['23'], tasksets4.split(',')) + + # Make sure 24 threads are occupied + self.assertEqual(len(tasksets1.split(',')) + + len(tasksets2.split(',')) + + len(tasksets3.split(',')) + + len(tasksets4.split(',')), + 24) + + # ------------------------step7------------------------- + # No cores available + with self.assertRaises(rqd.rqexceptions.CoreReservationFailureException): + self.machine.reserveHT(100) + def test_tags(self): tags = ["test1", "test2", "test3"] @@ -586,7 +743,7 @@ def test_srdsvr09(self): self.__cpuinfoTestHelper('_cpuinfo_srdsvr09_48-12-4') def test_i9_12900(self): - self.__cpuinfoTestHelper('_cpuinfo_i9_12900_hybrid_ht_24-12-2-1') + self.__cpuinfoTestHelper('_cpuinfo_i9_12900_hybrid_ht_24-24-1-1') def __cpuinfoTestHelper(self, pathCpuInfo): # File format: _cpuinfo_dub_x-x-x where x-x-x is totalCores-coresPerProc-numProcs From f0558898abc0f91d4adad6e3a24b4ecb2ea42dbd Mon Sep 17 00:00:00 2001 From: Kern Attila GERMAIN <5556461+kernattila@users.noreply.github.com> Date: Thu, 1 Jun 2023 22:56:05 +0200 Subject: [PATCH 10/17] doc: fix typo --- rqd/tests/rqmachine_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rqd/tests/rqmachine_tests.py b/rqd/tests/rqmachine_tests.py index 816a4a7c6..237b9c688 100644 --- a/rqd/tests/rqmachine_tests.py +++ b/rqd/tests/rqmachine_tests.py @@ -455,7 +455,7 @@ def test_reserveHT(self): step3 - Release cores on taskset0 (ph0->0,1) step4 - taskset3: Reserve 6 threads (3 cores) (ph0->0,1,2) step5 - taskset4: 4 remaining, Reserve 4 threads (2 cores) (ph0->3 + ph1->3) - step5 - taskset5: No more cores + step6 - taskset5: No more cores """ cpuInfo = os.path.join(os.path.dirname(__file__), 'cpuinfo', '_cpuinfo_shark_ht_8-4-2-2') self.fs.add_real_file(cpuInfo) From caff254cd4861157b501c6c601c3f6fd599aadfa Mon Sep 17 00:00:00 2001 From: Kern Attila GERMAIN <5556461+kernattila@users.noreply.github.com> Date: Fri, 2 Jun 2023 02:34:24 +0200 Subject: [PATCH 11/17] fix: read proper statm columns (see issue #1188) --- rqd/rqd/rqmachine.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/rqd/rqd/rqmachine.py b/rqd/rqd/rqmachine.py index 0f3c07436..17cbc12ac 100644 --- a/rqd/rqd/rqmachine.py +++ b/rqd/rqd/rqmachine.py @@ -274,13 +274,12 @@ def rssUpdate(self, frames): # - rss: inaccurate, similar to VmRss in /proc/[pid]/status child_statm_fields = self._getStatFields( rqd.rqconstants.PATH_PROC_PID_STATM.format(pid)) - child_statm_fields = list(map(str, child_statm_fields)) pids[pid]['statm_size'] = \ - int(re.search(r"\d+", child_statm_fields[0]).group()) \ - if re.search(r"\d+", child_statm_fields[0]) else -1 + int(re.search(r"\d+", child_statm_fields[2]).group()) \ + if re.search(r"\d+", child_statm_fields[2]) else -1 pids[pid]['statm_rss'] = \ - int(re.search(r"\d+", child_statm_fields[1]).group()) \ - if re.search(r"\d+", child_statm_fields[1]) else -1 + int(re.search(r"\d+", child_statm_fields[3]).group()) \ + if re.search(r"\d+", child_statm_fields[3]) else -1 # pylint: disable=broad-except except (OSError, IOError): From a3596e192b4d636b49c8f10c0b14d42258555b4a Mon Sep 17 00:00:00 2001 From: Kern Attila GERMAIN <5556461+KernAttila@users.noreply.github.com> Date: Wed, 28 Aug 2024 13:21:18 +0200 Subject: [PATCH 12/17] doc: explain the logic for reserving cores/threads. --- rqd/rqd/rqmachine.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rqd/rqd/rqmachine.py b/rqd/rqd/rqmachine.py index 947d08cb1..7d8532065 100644 --- a/rqd/rqd/rqmachine.py +++ b/rqd/rqd/rqmachine.py @@ -866,10 +866,12 @@ def reserveHT(self, frameCores): reverse=True): cores = sorted(list(cores), key=lambda _coreid: int(_coreid)) while remaining_procs > 0 and len(cores) > 0: - # Reserve cores with max threads first - # Avoid booking too much threads + # Reserve hyper-threaded cores first (2 threads(logical cores) for 1 physical core) + # Avoid booking a hyper-threaded core for an odd thread count remainder # ex: if remaining_procs==2, get the next core with 2 threads # ex: if remaining_procs==1, get the next core with 1 thread or any other core + # here we fall back on the first physical core (assuming "first in list" == "has more threads") + # if we didn't find a core with the right number of threads, and continue the loop. coreid = next(iter([cid for cid in cores if len(self.__procs_by_physid_and_coreid[physid][cid]) <= remaining_procs]), cores[0]) From caa534d1a17846e4d38b5c57c231badda77b91a1 Mon Sep 17 00:00:00 2001 From: Kern Attila GERMAIN <5556461+KernAttila@users.noreply.github.com> Date: Sat, 21 Sep 2024 03:41:37 +0200 Subject: [PATCH 13/17] fix: lint and remove useless lambda, sorting does not need to cast str to int. --- rqd/rqd/rqmachine.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/rqd/rqd/rqmachine.py b/rqd/rqd/rqmachine.py index 64220c3ed..e60b8819f 100644 --- a/rqd/rqd/rqmachine.py +++ b/rqd/rqd/rqmachine.py @@ -887,17 +887,19 @@ def reserveHT(self, frameCores): # the most idle cores first. key=lambda tup: len(tup[1]), reverse=True): - cores = sorted(list(cores), key=lambda _coreid: int(_coreid)) + cores = sorted(list(cores)) while remaining_procs > 0 and len(cores) > 0: # Reserve hyper-threaded cores first (2 threads(logical cores) for 1 physical core) # Avoid booking a hyper-threaded core for an odd thread count remainder # ex: if remaining_procs==2, get the next core with 2 threads # ex: if remaining_procs==1, get the next core with 1 thread or any other core - # here we fall back on the first physical core (assuming "first in list" == "has more threads") + # here we fall back on the first physical core + # (assuming "first in list" == "has more threads") # if we didn't find a core with the right number of threads, and continue the loop. - coreid = next(iter([cid for cid in cores - if len(self.__procs_by_physid_and_coreid[physid][cid]) <= remaining_procs]), - cores[0]) + coreid = next(iter( + [cid for cid in cores + if len(self.__procs_by_physid_and_coreid[physid][cid]) <= remaining_procs]), + cores[0]) cores.remove(coreid) procids = self.__procs_by_physid_and_coreid[physid][coreid] reserved_cores[int(physid)].coreid.extend([int(coreid)]) From 320c670b41c1e2d6b3f10800fafd073bd7f6f0c9 Mon Sep 17 00:00:00 2001 From: Kern Attila GERMAIN <5556461+KernAttila@users.noreply.github.com> Date: Sat, 21 Sep 2024 04:07:33 +0200 Subject: [PATCH 14/17] fix: lint lines too long --- rqd/tests/rqmachine_tests.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/rqd/tests/rqmachine_tests.py b/rqd/tests/rqmachine_tests.py index 237b9c688..6e401ad2d 100644 --- a/rqd/tests/rqmachine_tests.py +++ b/rqd/tests/rqmachine_tests.py @@ -542,7 +542,8 @@ def test_reserveHT(self): def test_reserveHybridHT(self): """ - Total 1 physical(ph) processors with 8 P-cores(2 threads) and 8 E-cores(1 thread), total 24 threads. + Total 1 physical(ph) processors with 8 P-cores(2 threads) and 8 E-cores(1 thread), + for a total of 24 threads. note: reserving odd threads will result in even threads when there is no mono-thread cores, which is not the case here. it should reserve E-cores to match the odd request. step1 - taskset0: Reserve 4 threads (2P), 4 threads occupied @@ -553,7 +554,9 @@ def test_reserveHybridHT(self): step6 - taskset4: Reserve 1 thread (1E), 24 threads occupied step7 - Reserve 1 thread (1E), no more free cores """ - cpuInfo = os.path.join(os.path.dirname(__file__), 'cpuinfo', '_cpuinfo_i9_12900_hybrid_ht_24-24-1-1') + cpuInfo = os.path.join(os.path.dirname(__file__), + 'cpuinfo', + '_cpuinfo_i9_12900_hybrid_ht_24-24-1-1') self.fs.add_real_file(cpuInfo) self.machine.testInitMachineStats(cpuInfo) @@ -640,7 +643,8 @@ def test_reserveHybridHT(self): # should have 8 cores occupied # pylint: disable=no-member - self.assertCountEqual([0, 4, 8, 12, 16, 20, 24, 32], self.coreDetail.reserved_cores[0].coreid) + self.assertCountEqual([0, 4, 8, 12, 16, 20, 24, 32], + self.coreDetail.reserved_cores[0].coreid) # should have 15 threads occupied self.assertEqual(len(tasksets0.split(',')) + len(tasksets1.split(',')) @@ -665,7 +669,8 @@ def test_reserveHybridHT(self): # should reserve 3P + 6E (0,1, 2,3, 14,15, 17, 18, 19, 20, 21, 22) # pylint: disable=no-member - self.assertCountEqual(['0', '1', '2', '3', '14', '15', '17', '18', '19', '20', '21', '22'], tasksets3.split(',')) + self.assertCountEqual(['0', '1', '2', '3', '14', '15', '17', '18', '19', '20', '21', '22'], + tasksets3.split(',')) # should have 15 cores occupied, 1E free # pylint: disable=no-member From adb179fb57979045c4dec022de9be79d264d059a Mon Sep 17 00:00:00 2001 From: Kern Attila GERMAIN <5556461+KernAttila@users.noreply.github.com> Date: Fri, 27 Sep 2024 11:05:19 +0200 Subject: [PATCH 15/17] fix: revert statm field indices, error was fixed by #1308 --- rqd/rqd/rqmachine.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rqd/rqd/rqmachine.py b/rqd/rqd/rqmachine.py index 64220c3ed..d330d420f 100644 --- a/rqd/rqd/rqmachine.py +++ b/rqd/rqd/rqmachine.py @@ -279,11 +279,11 @@ def rssUpdate(self, frames): child_statm_fields = self._getStatFields( rqd.rqconstants.PATH_PROC_PID_STATM.format(pid)) pids[pid]['statm_size'] = \ - int(re.search(r"\d+", child_statm_fields[2]).group()) \ - if re.search(r"\d+", child_statm_fields[2]) else -1 + int(re.search(r"\d+", child_statm_fields[0]).group()) \ + if re.search(r"\d+", child_statm_fields[0]) else -1 pids[pid]['statm_rss'] = \ - int(re.search(r"\d+", child_statm_fields[3]).group()) \ - if re.search(r"\d+", child_statm_fields[3]) else -1 + int(re.search(r"\d+", child_statm_fields[1]).group()) \ + if re.search(r"\d+", child_statm_fields[1]) else -1 # pylint: disable=broad-except except (OSError, IOError): From 31ba6da3e3f796839e0f41c68389bdf0ff7014d7 Mon Sep 17 00:00:00 2001 From: Kern Attila GERMAIN <5556461+KernAttila@users.noreply.github.com> Date: Wed, 16 Oct 2024 13:42:25 +0200 Subject: [PATCH 16/17] fix: force to list cores in ascending order --- rqd/rqd/rqmachine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rqd/rqd/rqmachine.py b/rqd/rqd/rqmachine.py index de1ea3f6b..8c0750e19 100644 --- a/rqd/rqd/rqmachine.py +++ b/rqd/rqd/rqmachine.py @@ -887,7 +887,7 @@ def reserveHT(self, frameCores): # the most idle cores first. key=lambda tup: len(tup[1]), reverse=True): - cores = sorted(list(cores)) + cores = sorted(list(cores), key=int) while remaining_procs > 0 and len(cores) > 0: # Reserve hyper-threaded cores first (2 threads(logical cores) for 1 physical core) # Avoid booking a hyper-threaded core for an odd thread count remainder From 8fc315c358388efe44c906ba8c9168cdbd7711a0 Mon Sep 17 00:00:00 2001 From: Kern Attila GERMAIN <5556461+KernAttila@users.noreply.github.com> Date: Wed, 16 Oct 2024 13:43:06 +0200 Subject: [PATCH 17/17] fix: get out of the loop for edge cases (1 too many core booked) --- rqd/rqd/rqmachine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rqd/rqd/rqmachine.py b/rqd/rqd/rqmachine.py index 8c0750e19..7146478e6 100644 --- a/rqd/rqd/rqmachine.py +++ b/rqd/rqd/rqmachine.py @@ -906,7 +906,7 @@ def reserveHT(self, frameCores): remaining_procs -= len(procids) tasksets.extend(procids) - if remaining_procs == 0: + if remaining_procs <= 0: break log.warning('Taskset: Reserving procs - %s', ','.join(tasksets))