lscpu
lscpu(Diğer şeylerin yanı sıra) komutu gösterir:
Byte Order: Little Endian
Bunun üzerinde çalıştığı bilinen sistemler
- CentOS 6
- Ubuntu (12.04, 12.10, 13.04, 13.10, 14.04)
- Fedora (17,18,19)
- ArchLinux 2012+
- Linux Mint Debian (bu nedenle Debian testini de üstlenerek).
Bunun üzerinde çalışmadığı bilinen sistemler
- Fedora 14
- CentOS 5 (bundan dolayı RHEL5 varsayarsak)
Neden dağıtımlar arasındaki belirgin farklar?
Çok kazdıktan sonra nedenini öğrendim. Versiyon util-linux sürüm 2.19 gibi görünüyor lscpu, sisteminizin Endianness'ını bildiren çıktıyı gösteren özelliği içeren ilk sürümdü.
Test olarak Fedora 14 sistemimde hem 2.18 hem de 2.19 versiyonlarını derledim ve aşağıdaki çıktı farklılıkları gösteriyor:
util-linux 2.18
$ util-linux-ng-2.18/sys-utils/lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
CPU(s): 4
Thread(s) per core: 2
Core(s) per socket: 2
CPU socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 37
Stepping: 5
CPU MHz: 1199.000
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 3072K
NUMA node0 CPU(s): 0-3
util-linux 2.19
$ util-linux-2.19/sys-utils/lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
CPU socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 37
Stepping: 5
CPU MHz: 2667.000
BogoMIPS: 5320.02
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 3072K
NUMA node0 CPU(s): 0-3
Yukarıdaki sürümler kernel.org web sitesinden indirilmiştir .
odYöntemin nesi var ? Çok basit ve her yerde çalışıyor. Sorunuzun gövdesini okumadan önce düşündüğüm şeydi.