lscpu for BSDs.
Switch branches/tags
Nothing to show
Clone or download


lscpu for BSDs. The main usage of this program should be for x86 architecture since it leverages CPUID instructions. For other architectures, it just shows very limited facts.

lscpu has been verified to work on following BSDs:


It should also work on other BSDs, though not tested. If you find lscpu also runs on other BSDs, please tell me by mail or just open a new issue, thanks very much in advance!


$ git clone
$ cd lscpu
$ make
$ ./lscpu


$ ./lscpu
Architecture:            i386
Byte Order:              Little Endian
Active CPU(s):           2
Total CPU(s):            2
Thread(s) per core:      1
Core(s) per socket:      2
Socket(s):               1
Vendor:                  GenuineIntel
CPU family:              6
Model:                   63
Model name:              Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz ("GenuineIntel" 686-class)
Stepping:                2
CPU MHz:                 2401
L1d cache:               32K
L1i cache:               32K
L2 cache:                256K
L3 cache:                15M
Flags:                   fpu vme de pse tsc msr mce cx8 apic sep mtrr pge mca cmov pat pse36 cflsh mmx fxsr sse sse2 htt sse3 pclmulqdq ssse3 cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx rdrnd fpcsds syscall pdpe1gb lahf_lm


Thanks to yggdr for testing on AMD processors.
Thanks to bit_of_hope for testing on NetBSD.
Thanks to Aleksej Lebedev for testing on DragonFlyBSD.
Thanks to Lucas Holt for testing on MidnightBSD and adding lscpu to the MidnightBSD mports tree.
Thanks to zi0r for adding lscpu to the FreeBSD ports tree.
Thanks to Brian Callahan for adding lscpu to the OpenBSD ports tree.