From owner-freebsd-hackers@freebsd.org Wed Sep 5 22:38:07 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 121D3FFEFA0; Wed, 5 Sep 2018 22:38:07 +0000 (UTC) (envelope-from kaduk@mit.edu) Received: from dmz-mailsec-scanner-6.mit.edu (dmz-mailsec-scanner-6.mit.edu [18.7.68.35]) (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 5AA2F76998; Wed, 5 Sep 2018 22:38:05 +0000 (UTC) (envelope-from kaduk@mit.edu) X-AuditID: 12074423-3fdff70000005b2e-2e-5b905997606b Received: from mailhub-auth-2.mit.edu ( [18.7.62.36]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by dmz-mailsec-scanner-6.mit.edu (Symantec Messaging Gateway) with SMTP id 46.14.23342.899509B5; Wed, 5 Sep 2018 18:32:57 -0400 (EDT) Received: from outgoing.mit.edu (OUTGOING-AUTH-1.MIT.EDU [18.9.28.11]) by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id w85MWpxS019165; Wed, 5 Sep 2018 18:32:52 -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 w85MWkac001650 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 5 Sep 2018 18:32:49 -0400 Date: Wed, 5 Sep 2018 17:32:46 -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: <20180905223246.GH73164@kduck.kaduk.org> References: <20180905145219.6593F83F@spqr.komquats.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnleLIzCtJLcpLzFFi42IRYrdT0Z0ZOSHaYM9Xdoue0zUWEw9mW8x5 84HJYvvmf4wWvas2sjqwejw5+YnFY8an+Swe7cs+MgUwR3HZpKTmZJalFunbJXBl7D5ZUHCf reLx8SVMDYzrWbsYOTkkBEwkbsxewAxiCwksZpJo2qPcxcgFZG9glFiw4y0zhHOFSeLJwQNs IFUsAioSnct72UFsNiC7ofsyWLeIgKrEu//v2UEamAWuMUp8ndnDAuIIC3QxSuzoWAnWwQu0 78ujHSwQ+3IkZhx/xgwRF5Q4OfMJWJxZQEvixr+XTF2MHEC2tMTyfxwgYU4Be4n/bW1g5aIC yhJ7+w6xT2AUmIWkexaS7lkI3QsYmVcxyqbkVunmJmbmFKcm6xYnJ+blpRbpmunlZpbopaaU bmIEh7KL8g7Gl33ehxgFOBiVeHh/XOiPFmJNLCuuzD3EKMnBpCTKK+MBFOJLyk+pzEgszogv Ks1JLT7EKMHBrCTC2/4eKMebklhZlVqUD5OS5mBREud1OtcaLSSQnliSmp2aWpBaBJOV4eBQ kuD1iJgQLSRYlJqeWpGWmVOCkGbi4AQZzgM0/Gc4UA1vcUFibnFmOkT+FKMxx6nmnknMHH/e T53ELMSSl5+XKiXOuwhknABIaUZpHtw0UDqSyN5f84pRHOg5Yd5lIFU8wFQGN+8V0ComoFVL DvSArCpJREhJNTCqdqesil/LJeTSGG+VV2vJPGexTsMzsY5TbpUOWkG8ad1FS2/dl1rkEsm6 7o32SXaPL6GnRXtC/mtqT/3Sf+3gAq7Dhg4Zm82P3ZGeIx3rWPXtdEtvygGPDW+Et18/H3wr 5/J6W+E5TWxlApxy6pvvSXDMFcnR+LBt9jPFwJr1qyxYNNefP6bEUpyRaKjFXFScCADtI4yJ IgMAAA== 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: Wed, 05 Sep 2018 22:38:07 -0000 On Wed, Sep 05, 2018 at 07:27:06PM +0300, Lev Serebryakov wrote: > On 05.09.2018 17:51, Cy Schubert 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. -Ben