From owner-freebsd-questions@freebsd.org Sat Feb 2 18:08:31 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 969BF14C687A; Sat, 2 Feb 2019 18:08:31 +0000 (UTC) (envelope-from mayuresh@kathe.in) Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 683239254C; Sat, 2 Feb 2019 18:08:30 +0000 (UTC) (envelope-from mayuresh@kathe.in) Received: from webmail.gandi.net (webmail8.sd4.0x35.net [10.200.201.8]) (Authenticated sender: mayuresh@kathe.in) by relay4-d.mail.gandi.net (Postfix) with ESMTPA id 44DDEE0004; Sat, 2 Feb 2019 18:08:22 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 02 Feb 2019 23:38:22 +0530 From: Mayuresh Kathe To: Chris Hill Cc: freebsd-questions@freebsd.org, owner-freebsd-questions@freebsd.org Subject: Re: Checking CPU capabilities Reply-To: mayuresh@kathe.in Mail-Reply-To: mayuresh@kathe.in In-Reply-To: References: <2cd8b8b1ae06042a992a48faace1ca91@kathe.in> <13203a3c47f8f0f1c3c408fd3cc6a1c6@kathe.in> Message-ID: <7613a5579f67197e685d72dfd1484413@kathe.in> X-Sender: mayuresh@kathe.in User-Agent: Roundcube Webmail/1.1.2 X-Rspamd-Queue-Id: 683239254C X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-1.77 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[196.183.70.217.list.dnswl.org : 127.0.5.1]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; HAS_REPLYTO(0.00)[mayuresh@kathe.in]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[kathe.in]; AUTH_NA(1.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.63)[0.631,0]; MX_GOOD(-0.01)[cached: spool.mail.gandi.net]; NEURAL_HAM_MEDIUM(-0.97)[-0.969,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:29169, ipnet:217.70.176.0/20, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-1.22)[ip: (-4.61), ipnet: 217.70.176.0/20(-0.79), asn: 29169(-0.70), country: FR(-0.02)]; RCVD_COUNT_TWO(0.00)[2] 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:08:31 -0000 On 2019-02-02 11:33 PM, Chris Hill wrote: > 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. Great. Thanks for that Chris.