7 أدوات و أوامر لاستعراض معلومات المعالج على الطرفية

الطرفية كثيرة الأدوات وقوتها تكمن في شمولية الاطلاع والتحكم. من أمثلة ذلك؛ كيفية الاطلاع على معلومات معالج الحاسب

مقدمة

كما هو معروف فإن المعالج أو كما يعرف باسم وحدة المعالجة المركزية (اختصارا CPU) هو أهم قطعة من عتاد جهاز الحاسب. ربما قد تكون على علم بنوع معالج جهازك وتفاصليه الأساسية أو ربما تحتاج لفعل ذلك أو معرفة تفاصيل أخرى عنه غير معلنة. سنقدم لك في دليلنا هذا 7 طرق مختلفة لفعل ذلك باستخدام سطر الأوامر. تابع معنا.

معلومات المعالج على لينكس

تشمل معلومات المعالج الأساسية اسم الشركة المصنعة، الجيل، النوع، المعمارية، عدد النَّوَيات، تردد أو سرعة هذه النَّوَيات، تستطيع الحصول على هذه المعلومات، ومعلومات مفصلة أكثر بواسطة طرق عدة سواء كان ذلك عبر واجهة رسومية (GUI) أو عبر سطر الأوامر في الطرفية (CLI). سنركز في المقال على استعراض طريقة سطر الأوامر.

ملاحظة: تم إنجاز هذا الدليل على توزيعة PCLinuxOS. الأوامر المستخدمة تعتمد على حزم مختلفة. ووجود هذه الحزم مثبتة بشكل افتراضي على التوزيعة يعتمد على التوزيعة نفسها. وتختلف فلسفة الصلاحيات بين التوزيعات خاصة أن الأمر sudo لا يأتي افتراضيا على توزيعة PCLinuxOS لكني سأستخدمه كأكثر طريقة رائجة. يمكنك أيضا استخدام su . يمكنك الاطلاع على الفرق بين su و sudo في هذا المقال.

الفئةالمتطلبات
النظامأي توزيعة من توزيعات جنو/لينكس
الأدوات، البرامج، الحزم والأوامرأدوات:
lscpu
lshw
hwinfo
dmidecode
inxi
cpuid

أوامر:
cat
less
more

برامج:
vim
nano
أو أي محرر نصوص يعمل من الطرفية
الصلاحيات$ – صَلاحِيَة المستخدم العادي لبعض الأوامر
# – صَلاحِيَة المستخدم الخارق أو صَلاحِيَة الجذر لبعض الأوامر

1- الأمر lscpu

الأمر lscpu هو جزء من حُزْمَة util-linux المثبتة افتراضيا على جميع توزيعات جنو/لينكس. يضم الأمر lscpu معلومات أساسية عن المعالج.
لا يحتاج الأمر lscpu لأي خيارات (options). مجرد طباعته تؤدي المهمة

lscpu
0utput
Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         48 bits physical, 48 bits virtual
  Byte Order:            Little Endian
CPU(s):                  4
  On-line CPU(s) list:   0-3
Vendor ID:               AuthenticAMD
  Model name:            AMD A8-4500M APU with Radeon(tm) HD Graphics
    CPU family:          21
    Model:               16
    Thread(s) per core:  2
    Core(s) per socket:  2
    Socket(s):           1
    Stepping:            1
    Frequency boost:     enabled
    CPU max MHz:         1900.0000
    CPU min MHz:         1400.0000
    BogoMIPS:            3792.93
    Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall n
                         x mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pc
                         lmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_lega
                         cy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_cor
                         e perfctr_nb cpb hw_pstate ssbd vmmcall bmi1 arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid
                          decodeassists pausefilter pfthreshold
Virtualization features: 
  Virtualization:        AMD-V
Caches (sum of all):     
  L1d:                   64 KiB (4 instances)
  L1i:                   128 KiB (2 instances)
  L2:                    4 MiB (2 instances)
Vulnerabilities:         
  Itlb multihit:         Not affected
  L1tf:                  Not affected
  Mds:                   Not affected
  Meltdown:              Not affected
  Spec store bypass:     Mitigation; Speculative Store Bypass disabled via prctl and seccomp
  Spectre v1:            Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:            Mitigation; Full AMD retpoline, STIBP disabled, RSB filling
  Srbds:                 Not affected
  Tsx async abort:       Not affected

2- مِلَفّ cpuinfo

يوجد في مسار proc مِلَفّ يحتوي على معلومات مفصلة عن المعالج. في الواقع فإن الأمر lscpu الماضي يجلب المعلومات من هذا المِلَفّ. لكن المعلومات المعروضة في هذا الأخير طويلة أكثر لأنها تفصل كل معلومات نواة على حدة.
للوصول إلى مِلَفّ cpuinfo عبر الطرفية نستخدم الأمر cat (الذي من مهامه استعراض محتوى مِلَفّ معين) أو الأمرين less و more (لاستعراض المحتوى أيضا مع اختلاف طريقة العرض) أو محرر نصوص مثبت على النظام مثل vim أو nano

cat /proc/cpuinfo
Output
processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 21
model		: 16
model name	: AMD A8-4500M APU with Radeon(tm) HD Graphics
stepping	: 1
microcode	: 0x6001116
cpu MHz		: 1700.000
cache size	: 2048 KB
physical id	: 0
siblings	: 4
core id		: 0
cpu cores	: 2
apicid		: 16
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb cpb hw_pstate ssbd vmmcall bmi1 arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold
bugs		: fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass
bogomips	: 3792.93
TLB size	: 1536 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate cpb eff_freq_ro

processor	: 1
vendor_id	: AuthenticAMD
cpu family	: 21
model		: 16
model name	: AMD A8-4500M APU with Radeon(tm) HD Graphics
stepping	: 1
microcode	: 0x6001116
cpu MHz		: 1527.290
cache size	: 2048 KB
physical id	: 0
siblings	: 4
core id		: 1
cpu cores	: 2
apicid		: 17
initial apicid	: 1
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb cpb hw_pstate ssbd vmmcall bmi1 arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold
bugs		: fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass
bogomips	: 3792.93
TLB size	: 1536 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate cpb eff_freq_ro

processor	: 2
vendor_id	: AuthenticAMD
cpu family	: 21
model		: 16
model name	: AMD A8-4500M APU with Radeon(tm) HD Graphics
stepping	: 1
microcode	: 0x6001116
cpu MHz		: 1600.000
cache size	: 2048 KB
physical id	: 0
siblings	: 4
core id		: 2
cpu cores	: 2
apicid		: 18
initial apicid	: 2
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb cpb hw_pstate ssbd vmmcall bmi1 arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold
bugs		: fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass
bogomips	: 3792.93
TLB size	: 1536 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate cpb eff_freq_ro

processor	: 3
vendor_id	: AuthenticAMD
cpu family	: 21
model		: 16
model name	: AMD A8-4500M APU with Radeon(tm) HD Graphics
stepping	: 1
microcode	: 0x6001116
cpu MHz		: 1654.546
cache size	: 2048 KB
physical id	: 0
siblings	: 4
core id		: 3
cpu cores	: 2
apicid		: 19
initial apicid	: 3
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb cpb hw_pstate ssbd vmmcall bmi1 arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold
bugs		: fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass
bogomips	: 3792.93
TLB size	: 1536 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate cpb eff_freq_ro
less /proc/cpuinfo
Output
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 21
model           : 16
model name      : AMD A8-4500M APU with Radeon(tm) HD Graphics
stepping        : 1
microcode       : 0x6001116
cpu MHz         : 1400.000
cache size      : 2048 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 2
apicid          : 16
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb cpb hw_pstate ssbd vmmcall bmi1 arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold
bugs            : fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass
bogomips        : 3792.93
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate cpb eff_freq_ro

processor       : 1
vendor_id       : AuthenticAMD
cpu family      : 21
/proc/cpuinfo lines 1-31
more /proc/cpuinfo
0utput
processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 21
model		: 16
model name	: AMD A8-4500M APU with Radeon(tm) HD Graphics
stepping	: 1
microcode	: 0x6001116
cpu MHz		: 1481.149
cache size	: 2048 KB
physical id	: 0
siblings	: 4
core id		: 0
cpu cores	: 2
apicid		: 16
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxex
t fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 s
se4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skini
t wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb cpb hw_pstate ssbd vmmcall bmi1 arat npt lbrv svm_lock nrip_save tsc_
scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold
bugs		: fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass
bogomips	: 3792.93
TLB size	: 1536 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate cpb eff_freq_ro

processor	: 1
vendor_id	: AuthenticAMD
cpu family	: 21

--More--

يمكن أيضا فتح الملف بواسطة أي محرر نصوص من الطرفية مثبت مثل nano و vim.

nano /proc/cpuinfo
vim /proc/cpuinfo

3- الأمر lshw

يستخدم الأمر lshw لاستعراض قائمة قطع وعتاد الجهاز مع تفاصيل دقيقة عنها. كما توجد أداة رسومية له اسمها lshw-gui. هذا الأمر مثبت افتراضيا على أغلب توزيعات جنو/لينكس ويحتاج لصلاحيات المستخدم الخارق أو الجذر كي يصل لجميع العتاد.

لمعرفة معلومات عن جزء معين من العتاد فحسب باستخدام هذا الأمر نحتاج لاستخدام خِيار (option)

lshw [-option]

في حالتنا هذه، الخِيار هو:

lshw -class [CLASS]

أو

lshw -C [CLASS]

أو

lshw -c [CLASS]

في حالة المعالج سيكون الأمر كالتالي:

sudo lshw -C CPU

أو

sudo lshw -C processor
0utput
*-cpu                   
       description: CPU
       product: AMD A8-4500M APU with Radeon(tm) HD Graphics
       vendor: Hynix Semiconductor (Hyundai Electronics)
       physical id: 26
       bus info: cpu@0
       version: AMD A8-4500M APU with Radeon(tm) HD Graphics
       serial: NotSupport
       slot: Socket FT1
       size: 1896MHz
       capacity: 1900MHz
       width: 64 bits
       clock: 100MHz
       capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb cpb hw_pstate ssbd vmmcall bmi1 arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold cpufreq
       configuration: cores=4 enabledcores=4 threads=4

4- أداة hwinfo

هذا الأمر يستخدم أيضا لجلب تفاصيل شاملة عن قطع عتاد الجهاز اللتي تعرف إليها نظام لينكس وكما هو الحال مع الأمر السابق lswh فإن hwinfo يحتاج إلى خِيار (option) كي يظهر لنا فقط معلومات عتاد معين.

hwinfo --<HARDWARE_ITEM>

في حالتنا هذه سنستخدم الأمر:

hwinfo --cpu
0utput
01: None 00.0: 10103 CPU                                        
  [Created at cpu.462]
  Unique ID: rdCR.j8NaKXDZtZ6
  Hardware Class: cpu
  Arch: X86-64
  Vendor: "AuthenticAMD"
  Model: 21.16.1 "AMD A8-4500M APU with Radeon(tm) HD Graphics"
  Features: fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,mmx,fxsr,sse,sse2,ht,syscall,nx,mmxext,fxsr_opt,pdpe1gb,rdtscp,lm,constant_tsc,rep_good,nopl,nonstop_tsc,cpuid,extd_apicid,aperfmperf,pni,pclmulqdq,monitor,ssse3,fma,cx16,sse4_1,sse4_2,popcnt,aes,xsave,avx,f16c,lahf_lm,cmp_legacy,svm,extapic,cr8_legacy,abm,sse4a,misalignsse,3dnowprefetch,osvw,ibs,xop,skinit,wdt,lwp,fma4,tce,nodeid_msr,tbm,topoext,perfctr_core,perfctr_nb,cpb,hw_pstate,ssbd,vmmcall,bmi1,arat,npt,lbrv,svm_lock,nrip_save,tsc_scale,vmcb_clean,flushbyasid,decodeassists,pausefilter,pfthreshold
  Clock: 1600 MHz
  BogoMips: 3792.93
  Cache: 2048 kb
  Units/Processor: 4
  Config Status: cfg=new, avail=yes, need=no, active=unknown

02: None 01.0: 10103 CPU
  [Created at cpu.462]
  Unique ID: wkFv.j8NaKXDZtZ6
  Hardware Class: cpu
  Arch: X86-64
  Vendor: "AuthenticAMD"
  Model: 21.16.1 "AMD A8-4500M APU with Radeon(tm) HD Graphics"
  Features: fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,mmx,fxsr,sse,sse2,ht,syscall,nx,mmxext,fxsr_opt,pdpe1gb,rdtscp,lm,constant_tsc,rep_good,nopl,nonstop_tsc,cpuid,extd_apicid,aperfmperf,pni,pclmulqdq,monitor,ssse3,fma,cx16,sse4_1,sse4_2,popcnt,aes,xsave,avx,f16c,lahf_lm,cmp_legacy,svm,extapic,cr8_legacy,abm,sse4a,misalignsse,3dnowprefetch,osvw,ibs,xop,skinit,wdt,lwp,fma4,tce,nodeid_msr,tbm,topoext,perfctr_core,perfctr_nb,cpb,hw_pstate,ssbd,vmmcall,bmi1,arat,npt,lbrv,svm_lock,nrip_save,tsc_scale,vmcb_clean,flushbyasid,decodeassists,pausefilter,pfthreshold
  Clock: 1700 MHz
  BogoMips: 3792.93
  Cache: 2048 kb
  Units/Processor: 4
  Config Status: cfg=new, avail=yes, need=no, active=unknown

03: None 02.0: 10103 CPU
  [Created at cpu.462]
  Unique ID: +rIN.j8NaKXDZtZ6
  Hardware Class: cpu
  Arch: X86-64
  Vendor: "AuthenticAMD"
  Model: 21.16.1 "AMD A8-4500M APU with Radeon(tm) HD Graphics"
  Features: fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,mmx,fxsr,sse,sse2,ht,syscall,nx,mmxext,fxsr_opt,pdpe1gb,rdtscp,lm,constant_tsc,rep_good,nopl,nonstop_tsc,cpuid,extd_apicid,aperfmperf,pni,pclmulqdq,monitor,ssse3,fma,cx16,sse4_1,sse4_2,popcnt,aes,xsave,avx,f16c,lahf_lm,cmp_legacy,svm,extapic,cr8_legacy,abm,sse4a,misalignsse,3dnowprefetch,osvw,ibs,xop,skinit,wdt,lwp,fma4,tce,nodeid_msr,tbm,topoext,perfctr_core,perfctr_nb,cpb,hw_pstate,ssbd,vmmcall,bmi1,arat,npt,lbrv,svm_lock,nrip_save,tsc_scale,vmcb_clean,flushbyasid,decodeassists,pausefilter,pfthreshold
  Clock: 1400 MHz
  BogoMips: 3792.93
  Cache: 2048 kb
  Units/Processor: 4
  Config Status: cfg=new, avail=yes, need=no, active=unknown

04: None 03.0: 10103 CPU
  [Created at cpu.462]
  Unique ID: 4zLr.j8NaKXDZtZ6
  Hardware Class: cpu
  Arch: X86-64
  Vendor: "AuthenticAMD"
  Model: 21.16.1 "AMD A8-4500M APU with Radeon(tm) HD Graphics"
  Features: fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,mmx,fxsr,sse,sse2,ht,syscall,nx,mmxext,fxsr_opt,pdpe1gb,rdtscp,lm,constant_tsc,rep_good,nopl,nonstop_tsc,cpuid,extd_apicid,aperfmperf,pni,pclmulqdq,monitor,ssse3,fma,cx16,sse4_1,sse4_2,popcnt,aes,xsave,avx,f16c,lahf_lm,cmp_legacy,svm,extapic,cr8_legacy,abm,sse4a,misalignsse,3dnowprefetch,osvw,ibs,xop,skinit,wdt,lwp,fma4,tce,nodeid_msr,tbm,topoext,perfctr_core,perfctr_nb,cpb,hw_pstate,ssbd,vmmcall,bmi1,arat,npt,lbrv,svm_lock,nrip_save,tsc_scale,vmcb_clean,flushbyasid,decodeassists,pausefilter,pfthreshold
  Clock: 1422 MHz
  BogoMips: 3792.93
  Cache: 2048 kb
  Units/Processor: 4
  Config Status: cfg=new, avail=yes, need=no, active=unknown

5- أداة dmidecode

كما يتبين من اسم الأداة فهي تعتمد على جلب المعلومات من DMI، وهي اختصار لعبارة Desktop Management Interface وهي واجهة تعمل باستخدام مجموعة من المكونات الجاهزة (Framework) لإدارة ومتابعة التعديلات على قطع العتاد.

تحتاج الأداة أيضا إلى خيارات (options) بالإضافة لصلاحيات المستخدم الخارق أو الجذر.

dmidecode [OPTION]

الخِيار الذي سنستخدمه هو:

dmidecode --type TYPE

وفي حالة المعالج يكون الأمر كالآتي:

sudo dmidecode --type processor
0utput
# dmidecode 3.3 Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0026, DMI type 4, 42 bytes
Processor Information
	Socket Designation: Socket FT1
	Type: Central Processor
	Family: A-Series
	Manufacturer: AMD processor
	ID: 01 0F 61 00 FF FB 8B 17
	Signature: Family 21, Model 16, Stepping 1
	Flags:
		FPU (Floating-point unit on-chip)
		VME (Virtual mode extension)
		DE (Debugging extension)
		PSE (Page size extension)
		TSC (Time stamp counter)
		MSR (Model specific registers)
		PAE (Physical address extension)
		MCE (Machine check exception)
		CX8 (CMPXCHG8 instruction supported)
		APIC (On-chip APIC hardware supported)
		SEP (Fast system call)
		MTRR (Memory type range registers)
		PGE (Page global enable)
		MCA (Machine check architecture)
		CMOV (Conditional move instruction supported)
		PAT (Page attribute table)
		PSE-36 (36-bit page size extension)
		CLFSH (CLFLUSH instruction supported)
		MMX (MMX technology supported)
		FXSR (FXSAVE and FXSTOR instructions supported)
		SSE (Streaming SIMD extensions)
		SSE2 (Streaming SIMD extensions 2)
		HTT (Multi-threading)
	Version: AMD A8-4500M APU with Radeon(tm) HD Graphics   
	Voltage: 1.1 V
	External Clock: 100 MHz
	Max Speed: 1900 MHz
	Current Speed: 1900 MHz
	Status: Populated, Enabled
	Upgrade: Socket FS1
	L1 Cache Handle: 0x0027
	L2 Cache Handle: 0x0028
	L3 Cache Handle: Not Provided
	Serial Number: NotSupport
	Asset Tag: FFFF
	Part Number: FFFF
	Core Count: 4
	Core Enabled: 4
	Thread Count: 4
	Characteristics:
		64-bit capable

6- أداة inxi

تحتاج لتثبيت هذه الأداة فغالبا لا تكون مثبتة افتراضيا على توزيعات لينكس.

لتثبيت inxi على دبيان، أوبنتو، وما بني عليهما:

sudo apt install inxi

لتثبيت inxi على فيدورا:

sudo dnf install inxi

لتثبيت cpuid على آرش وما بني عليه يمكنك استخدام مستودعات المستخدمين AUR:

sudo yay -S inxi

لتثبيت inxi على أوبن سوسا:

sudo zypper install inxi

هي أداة متقدمة جدا مهمتها لا تقتصر فقط على جلب معلومات العتاد فقط بل تشمل معلومات النظام بصفة عامة بما في ذلك النواة واستهلاك الموارد وغير ذلك الكثير.

استخدامها يكون عبر خيارات أيضا flags

inxi [flag]

لاستعراض معلومات المعالج يكون الأمر كالتالي:

inxi --cpu

أو

inxi -C
0utput
CPU:       Info: Quad Core model: AMD A8-4500M APU with Radeon HD Graphics bits: 64 type: MCP cache: L2: 2 MiB 
           Speed: 1375 MHz min/max: 1400/1900 MHz Core speeds (MHz): 1: 1375 2: 1354 3: 1221 4: 1382 

7- أداة cpuid

تعرض هذه الأداة معلومات أكثر من أي أداة أخرى. أكثر بكثير لدرجة أن عدد أسطر نتيجتها قد يتعدى 2000 سطر، فهي تعرض مثلا التقنيات المتوفرة في المعالجات مع عرض إن كان معالجك الحالي يدعمها أم لا.

لتثبيت cpuid على دبيان، أوبنتو، وما بني عليهما:

sudo apt install cpuid

لتثبيت cpuid على فيدورا:

sudo dnf install cpuid

لتثبيت cpuid على آرش وما بني عليه يمكنك استخدام مستودعات المستخدمين AUR:

sudo yay -S cpuid

لتثبيت cpuid على أوبن سوسا:

sudo zypper install cpuid

يمكن استخدام الأمر cpuid مجردا. لكن ينصح باستخدامه مع less أو more لتصفح أفضل.

cpuid
cpuid | less
cpuid | more
0utput
CPU 0:
   vendor_id = "AuthenticAMD"
   version information (1/eax):
      processor type  = primary processor (0)
      family          = 0xf (15)
      model           = 0x0 (0)
      stepping id     = 0x1 (1)
      extended family = 0x6 (6)
      extended model  = 0x1 (1)
      (family synth)  = 0x15 (21)
      (model synth)   = 0x10 (16)
      (simple synth)  = AMD (unknown type) (Trinity TN-A1) [Piledriver], 32nm
   miscellaneous (1/ebx):
      process local APIC physical ID = 0x0 (0)
      cpu count                      = 0x4 (4)
      CLFLUSH line size              = 0x8 (8)
      brand index                    = 0x0 (0)
   brand id = 0x00 (0): unknown
   feature information (1/edx):
      x87 FPU on chip                        = true
      VME: virtual-8086 mode enhancement     = true
      DE: debugging extensions               = true
      PSE: page size extensions              = true
      TSC: time stamp counter                = true
      RDMSR and WRMSR support                = true
      PAE: physical address extensions       = true
      MCE: machine check exception           = true
      CMPXCHG8B inst.                        = true
      APIC on chip                           = true
      SYSENTER and SYSEXIT                   = true
      MTRR: memory type range registers      = true
      PTE global bit                         = true
      MCA: machine check architecture        = true
      CMOV: conditional move/compare instr   = true
      PAT: page attribute table              = true
lines 1-35

خاتمة

كانت هذه 7 أدوات أو أوامر استعرضناها للاطلاع على مواصفات المعالج بواسطة الطرفية. سنحاول لاحقا تغطية كل أمر على حدة بخصوص استخداماته الأخرى بشكل مُفصّل.

مسرور
مسرور
8
حزين
حزين
0
متحمس
متحمس
2
نعسان
نعسان
0
غاضب
غاضب
0
متفاجئ
متفاجئ
0
معاذ جِيجلي
معاذ جِيجلي
المقالات: 73