From owner-freebsd-questions@freebsd.org Sat Feb 2 18:03:06 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7740B14C6466; Sat, 2 Feb 2019 18:03:06 +0000 (UTC) (envelope-from chris@monochrome.org) Received: from mail.monochrome.org (static-71-163-255-121.washdc.fios.verizon.net [71.163.255.121]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail", Issuer "mail" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 609CA921A9; Sat, 2 Feb 2019 18:03:04 +0000 (UTC) (envelope-from chris@monochrome.org) Received: from tripel.monochrome.org (tripel.monochrome.org [192.168.1.11]) by mail.monochrome.org (8.15.2/8.15.2) with ESMTP id x12I33ew068153; Sat, 2 Feb 2019 13:03:03 -0500 (EST) (envelope-from chris@monochrome.org) Date: Sat, 2 Feb 2019 13:03:03 -0500 (EST) From: Chris Hill To: Mayuresh Kathe cc: freebsd-questions@freebsd.org, owner-freebsd-questions@freebsd.org Subject: Re: Checking CPU capabilities In-Reply-To: <13203a3c47f8f0f1c3c408fd3cc6a1c6@kathe.in> Message-ID: References: <2cd8b8b1ae06042a992a48faace1ca91@kathe.in> <13203a3c47f8f0f1c3c408fd3cc6a1c6@kathe.in> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 609CA921A9 X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [3.02 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.98)[0.976,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[monochrome.org]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.90)[0.896,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: mail.monochrome.org]; NEURAL_SPAM_LONG(0.39)[0.388,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:701, ipnet:71.163.0.0/16, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-0.13)[asn: 701(-0.59), country: US(-0.07)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Feb 2019 18:03:06 -0000 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 Features2=0x3d9ae3bf ...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 not. -- Chris Hill chris@monochrome.org