From owner-freebsd-questions@freebsd.org Fri Dec 21 16:41:03 2018 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 8D226134FCAF for ; Fri, 21 Dec 2018 16:41:03 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.netfence.it (net-2-44-121-52.cust.vodafonedsl.it [2.44.121.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mailserver.netfence.it", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 03E1372166 for ; Fri, 21 Dec 2018 16:41:01 +0000 (UTC) (envelope-from ml@netfence.it) Received: from alamar.ventu (alamar.local.netfence.it [10.1.2.18]) (authenticated bits=0) by soth.netfence.it (8.15.2/8.15.2) with ESMTPSA id wBLGenBf084609 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Fri, 21 Dec 2018 17:40:56 +0100 (CET) (envelope-from ml@netfence.it) X-Authentication-Warning: soth.netfence.it: Host alamar.local.netfence.it [10.1.2.18] claimed to be alamar.ventu Subject: Re: now on Ryzen performance To: freebsd-questions@freebsd.org References: <42a7a149-fa6b-390f-eb13-e10b437baaf7@netfence.it> <20181204122348.131f9471.freebsd.ed.lists@sumeritec.com> <3cef02cc-fc6a-4570-c374-6f8c8ee3d192@netfence.it> <20181204192129.622c8779.freebsd.ed.lists@sumeritec.com> <2c474b0c-46c3-72dd-ca1f-02edbec41673@netfence.it> From: Andrea Venturoli Message-ID: Date: Fri, 21 Dec 2018 17:40:49 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <2c474b0c-46c3-72dd-ca1f-02edbec41673@netfence.it> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 03E1372166 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [0.72 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; IP_SCORE(0.02)[country: IT(0.08)]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; HAS_XAW(0.00)[]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(0.04)[0.036,0]; TO_DN_NONE(0.00)[]; MX_GOOD(-0.01)[cached: mx.netfence.it]; NEURAL_SPAM_LONG(0.47)[0.470,0]; DMARC_NA(0.00)[netfence.it]; NEURAL_HAM_SHORT(-0.69)[-0.693,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:30722, ipnet:2.44.0.0/16, country:IT]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; 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: Fri, 21 Dec 2018 16:41:03 -0000 On 12/21/18 10:27 AM, Andrea Venturoli wrote: > On 12/4/18 12:21 PM, Erich Dollansky wrote: >> I just followed this mailing list and read some random articles. There >> seem to be no real stability problems which cannot be explained by other >> things like faulty motherboards etc. > > Hello. > > Just in case it helps others, I think I can conclude my new Ryzen 7 > system works fine: uptime is almost a week, with high and low load > cycles (some idle time, some Poudriere, some server work, etc...). > > I'm still running 11.2, BTW. Hello again. Now that I verified this system stability, I moved into measuring its performance and I think something is wrong here. A buildworld took many hours more than on any other system I'm managing (some even quite old), so I concluded some more investigation was needed. So I compared it to a (software-wise identical) system with a (7 year old) AMD Phenom II X4 965 (just because this was the CPU I had more easily available). According to UserBenchmark, a Ryzen 2700 should be 74% faster at single threading: if I interpret this correctly, it means total execution time should be 43% less... However, "time some_intensive_single_thread_task" showed the Ryzen completing the same work in 24% more time!!! Going to four threads (which is the maximum available on the Phenom) shows the same results. Of course using all 8 cores on the Ryzen takes 26% less time than using 4 on the Phenom, but that's not the point (and it's still slow). I have disabled SMT in the BIOS, so I didn't try with 16 threads. Having powerd running or not does not make any difference. When running "powerd -v" I see the Ryzen always working at 3.2GHz, which it's its base speed. It doesn't seem to use its "Max Boost Clock" of 4.1GHz. Is this to be expected? Is this feature only available in 12.0? Then again, if it just scaled linearly between the two frequencies it would still be much slower than I expected... Any hint? Is moving to 12 going to change this? bye & Thanks av.