From owner-freebsd-questions@freebsd.org Sat Feb 2 17:36:21 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 9ABF314C5300; Sat, 2 Feb 2019 17:36:21 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from bede.qeng-ho.org (bede.qeng-ho.org [217.155.128.241]) (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 8963490A19; Sat, 2 Feb 2019 17:36:20 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from arthur.home.qeng-ho.org (arthur.home.qeng-ho.org [172.23.1.2]) by bede.qeng-ho.org (Postfix) with ESMTP id 42F1C10634; Sat, 2 Feb 2019 17:36:13 +0000 (GMT) Subject: Re: Checking CPU capabilities To: mayuresh@kathe.in, herbert@laubners.info Cc: freebsd-questions@freebsd.org, owner-freebsd-questions@freebsd.org References: <2cd8b8b1ae06042a992a48faace1ca91@kathe.in> <13203a3c47f8f0f1c3c408fd3cc6a1c6@kathe.in> <2713664c-255e-6981-8615-4ac8d734ea00@laubners.info> From: Arthur Chance Message-ID: <102ce970-5f0a-dd71-23c1-25837fff938a@qeng-ho.org> Date: Sat, 2 Feb 2019 17:36:13 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 8963490A19 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of freebsd@qeng-ho.org designates 217.155.128.241 as permitted sender) smtp.mailfrom=freebsd@qeng-ho.org X-Spamd-Result: default: False [-1.84 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.976,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip4:217.155.128.240/29]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[qeng-ho.org]; NEURAL_SPAM_SHORT(0.84)[0.837,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[mx1.mythic-beasts.com,mx2.mythic-beasts.com]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13037, ipnet:217.155.0.0/16, country:GB]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.39)[asn: 13037(-1.87), country: GB(-0.09)]; 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 17:36:21 -0000 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 -- Always learn from the mistakes of others, because you won't live long enough to learn from making all possible mistakes yourself.