From owner-freebsd-hackers@freebsd.org Thu Sep 6 01:20:51 2018 Return-Path: Delivered-To: freebsd-hackers@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 B74C8FD59A4; Thu, 6 Sep 2018 01:20:51 +0000 (UTC) (envelope-from kaduk@mit.edu) Received: from dmz-mailsec-scanner-2.mit.edu (dmz-mailsec-scanner-2.mit.edu [18.9.25.13]) (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 3F9887DFF4; Thu, 6 Sep 2018 01:20:51 +0000 (UTC) (envelope-from kaduk@mit.edu) X-AuditID: 1209190d-ea5ff70000001af6-90-5b907fbfd058 Received: from mailhub-auth-1.mit.edu ( [18.9.21.35]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by dmz-mailsec-scanner-2.mit.edu (Symantec Messaging Gateway) with SMTP id B6.4E.06902.FBF709B5; Wed, 5 Sep 2018 21:15:43 -0400 (EDT) Received: from outgoing.mit.edu (OUTGOING-AUTH-1.MIT.EDU [18.9.28.11]) by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id w861Ffe6025364; Wed, 5 Sep 2018 21:15:42 -0400 Received: from kduck.kaduk.org (24-107-191-124.dhcp.stls.mo.charter.com [24.107.191.124]) (authenticated bits=56) (User authenticated as kaduk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id w861FaGQ006734 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 5 Sep 2018 21:15:38 -0400 Date: Wed, 5 Sep 2018 20:15:36 -0500 From: Benjamin Kaduk To: Lev Serebryakov Cc: Cy Schubert , Eric van Gyzen , FreeBSD Current , "freebsd-hackers@freebsd.org" Subject: Re: Celeron J3160 with enabled Turbo mode stays at 480MHz(lowestsetting) forever and can not lower frequency without Tuebo mode Message-ID: <20180906011536.GL73164@kduck.kaduk.org> References: <20180905145219.6593F83F@spqr.komquats.com> <20180905223246.GH73164@kduck.kaduk.org> <499689041.20180906030229@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <499689041.20180906030229@serebryakov.spb.ru> User-Agent: Mutt/1.9.1 (2017-09-22) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprEKsWRmVeSWpSXmKPExsUixCmqrLu/fkK0wdfZqhY9p2ssJh7Mtpjz 5gOTxfbN/xgteldtZHVg9Xhy8hOLx4xP81k82pd9ZApgjuKySUnNySxLLdK3S+DKmH9/BmPB Ge6K60s/sDYwdnJ2MXJySAiYSOz//IGpi5GLQ0hgMZNE/9MD7BDOBkaJcx/XskE4V5gk9v6/ ywLSwiKgIrG09wYTiM0GZDd0X2YGsUUEVCXe/X8P1s0scI1R4uvMHhYQR1igi1FiR8dKdpAq XqCFn75uYYEYe5xR4vek5ywQCUGJkzOfgNnMAloSN/69BFrBAWRLSyz/xwES5hSwkth38j3Y NlEBZYm9fYfYJzAKzELSPQtJ9yyE7gWMzKsYZVNyq3RzEzNzilOTdYuTE/PyUot0jfRyM0v0 UlNKNzGCA1qSdwfjv7tehxgFOBiVeHh/XOiPFmJNLCuuzD3EKMnBpCTKK+MBFOJLyk+pzEgs zogvKs1JLT7EKMHBrCTC6149IVqINyWxsiq1KB8mJc3BoiTOq5YIlBJITyxJzU5NLUgtgsnK cHAoSfD21gFlBYtS01Mr0jJzShDSTBycIMN5gIa7gdTwFhck5hZnpkPkTzEac5xq7pnEzPHn /dRJzEIsefl5qVLivEIgpQIgpRmleXDTQElJInt/zStGcaDnhHkfgFTxABMa3LxXQKuYgFYt OdADsqokESEl1cAYc7OvtL9a/n/lHuNYZocFiT2VHb9eydVyOl1X71i/6f2a8odhj6cuWGas HPq8wkxESLJkecHcE5mZTm718c78Z7hKrrlvDcprs2SrDa9WjIvQ1vKYJfOiSOCHg4b0x8ap 6z4UL3h7zM7g8IZ7/t8OH9Hl2mpmtUXTov4u3yEZ/eh/EVc2FCqxFGckGmoxFxUnAgDqKmX0 JQMAAA== X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Sep 2018 01:20:52 -0000 On Thu, Sep 06, 2018 at 03:02:29AM +0300, Lev Serebryakov wrote: > Hello Benjamin, > > Thursday, September 6, 2018, 1:32:46 AM, you wrote: > > >> > I don't think you need something accurate. > >> Ok, here is results. I'm working in single-user mode. > >> > >> TL;DR "Turbo" mode make "openssl" much slower (x3.5)! > >> > >> I can not properly interpret this result. > > > You need to say more about what openssl is doing (i.e., how it was > > configured, what architecture it's on, etc.). In particular, there > > was for a time an AVX2 implementation for some primitives, that ended up > > being a net loss, since heavy use of those instructions would cause > > overheating and throttling. OpenSSL has a lot of custom assembly for these > > common primitves, with some logic to select among them both at > > configuration time and at runtime, so results such as this may or may not > > be widely transferrable. > > It is system (very fresh ALPHA4) openssl, built with default settings. > Simple single run with one thread, without AES-NI: > > openssl speed aes-256-cbc > > It is as simple as that. Okay, "system openssl" and the FreeBSD version is enough to nail down the code and configuration, and I see the processor type is in the subject line. I guess posting the CPU features bits from dmesg might save whoever tries to track down the codepaths being used some time (unless that was posted already and I missed it?). -Ben