It's this file that applications like KInfocenter parse to deliver data about your CPU, but you can parse it yourself, too. You can use several specific commands to pull CPU information from your hardware, regardless of whether you use bare metal or virtualized hardware. Also most compilers will automatically define AVX2 so you can check for that too. The Linux CLI can provide you with detailed CPU information, such as the number of CPU cores, CPU architecture and CPU usage. You can extract information from there by hand, or with a grep command ( grep flags /proc/cpuinfo ). This data is stored in the /proc virtual filesystem in a file named cpuinfo. On linux (or unix machines) the information about your cpu is in /proc/cpuinfo. Also most compilers will automatically define AVX2 so you can check for that too. As the binary responsible for bootstrapping your system, Linux has information about everything it's managing, including the CPU. There is also a field inside the information of each processor field which says cou cores are 2. On linux (or unix machines) the information about your cpu is in /proc/cpuinfo. Now it says that there are 4 processors on the system. Model name : Intel(R) Core(TM) i3 CPU M 330 2.13GHzįlags : 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 nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm arat dts tpr_shadow vnmi flexpriority ept vpidĪddress sizes : 36 bits physical, 48 bits virtual On my laptop, I get the following output: How does one interpret the information printed out by the following command in Linux
0 Comments
Leave a Reply. |