Checking CPU capabilities

Chris Hill chris at
Sat Feb 2 18:03:06 UTC 2019

On Sat, 2 Feb 2019, Mayuresh Kathe wrote:

> On 2019-02-02 09:46 PM, Chris Hill wrote:
>> On Sat, 2 Feb 2019, Mayuresh Kathe wrote:
>>> Under Linux it is `cat /proc/cpuinfo`
>>> Under Solaris it is `isainfo -v`
>>> What is it under FreeBSD 12?
>> Something like
>>   $ grep Features /var/run/dmesg.boot
>> ...or am I missing something?
> I need to know if my processor supports AVX, AVX2, AVX-512, SIMD, etc.
> Would your approach give me that sort of information?

I think it would. On one machine I get:
$ grep Features /var/run/dmesg.boot | grep AVX

...and on another I get bupkis:
$ grep Features /var/run/dmesg.boot | grep AVX

So I gather that the first machine has AVX support and the second does 

Chris Hill               chris at

More information about the freebsd-questions mailing list