From owner-freebsd-questions@freebsd.org Sat Feb 2 17:58:13 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 2F30D14C60E9; Sat, 2 Feb 2019 17:58:13 +0000 (UTC) (envelope-from mayuresh@kathe.in) Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (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 B6D1991D88; Sat, 2 Feb 2019 17:58:11 +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 relay9-d.mail.gandi.net (Postfix) with ESMTPA id A6E7BFF806; Sat, 2 Feb 2019 17:58:02 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Sat, 02 Feb 2019 23:28:02 +0530 From: Mayuresh Kathe To: Arthur Chance Cc: herbert@laubners.info, 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: <102ce970-5f0a-dd71-23c1-25837fff938a@qeng-ho.org> References: <2cd8b8b1ae06042a992a48faace1ca91@kathe.in> <13203a3c47f8f0f1c3c408fd3cc6a1c6@kathe.in> <2713664c-255e-6981-8615-4ac8d734ea00@laubners.info> <102ce970-5f0a-dd71-23c1-25837fff938a@qeng-ho.org> Message-ID: X-Sender: mayuresh@kathe.in User-Agent: Roundcube Webmail/1.1.2 X-Rspamd-Queue-Id: B6D1991D88 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-0.29 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; HAS_REPLYTO(0.00)[mayuresh@kathe.in]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.97)[-0.975,0]; 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)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.86)[0.856,0]; MX_GOOD(-0.01)[cached: spool.mail.gandi.net]; NEURAL_HAM_MEDIUM(-0.42)[-0.415,0]; R_SPF_NA(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[199.183.70.217.list.dnswl.org : 127.0.5.1]; 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(-0.54)[ip: (-1.20), ipnet: 217.70.176.0/20(-0.79), asn: 29169(-0.70), country: FR(-0.02)]; FROM_EQ_ENVFROM(0.00)[] 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 17:58:13 -0000 On 2019-02-02 11:06 PM, Arthur Chance wrote: > On 02/02/2019 17:14, Mayuresh Kathe wrote: >> I am not on a FreeBSD system at the moment, and don't have access to >> one >> either. >> >> On 2019-02-02 10:26 PM, Herbert Laubner wrote: >>> You could try >>> >>> $ grep Features /var/run/dmesg.boot  | grep --colour -e AVX >>> >>> Am 02.02.19 um 22:09 schrieb Mayuresh Kathe: >>>> 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? >>>> > > As an example, here's what happens on my desktop machine, which is an > Intel i7-4790K > > root@arthur:5# grep Features /var/run/dmesg.boot > Features=0xbfebfbff > Features2=0x7ffafbbf > AMD Features=0x2c100800 > AMD Features2=0x21 > Structured Extended > Features=0x2fbb > XSAVE Features=0x1 Thanks for that Arthur.