Somebody was asking me, how to know whether the cpu support ‘virtualization’ or not. Till now I was answering , ‘look at ‘svm or vmx’ flag in /proc/cpuinfo. For Intel, it should show ‘vmx’ and for AMD it should show ‘svm’.
But recently I have noticed a command called ‘lscpu’ which will list the specifications of a CPU. It also gives information like , whether the processor support ’64bit’ ..etc ..
which lscpu
util-linux-2.20.1-2.3.fc16.x86_64
[root@node]#
[root@node]# 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 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 42 Stepping: 7 CPU MHz: 2801.000 BogoMIPS: 5581.80 Virtualization: VT-x ==========> Virtualization support L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 4096K NUMA node0 CPU(s): 0-3
[root@node]# lscpu -x Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 On-line CPU(s) mask: 0xf Thread(s) per core: 2 Core(s) per socket: 2 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 42 Stepping: 7 CPU MHz: 800.000 BogoMIPS: 5581.80 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 4096K NUMA node0 CPU(s): 0xf [root@unused uli]#
Interesting command , Is n’t it ?
Thanks for this command 🙂
Hi Satheesaran , YW , indeed a useful command..