From owner-freebsd-questions@freebsd.org Thu Dec 27 02:53:19 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 74B691343D02 for ; Thu, 27 Dec 2018 02:53:19 +0000 (UTC) (envelope-from freebsd.ed.lists@sumeritec.com) Received: from mx18-out11.antispamcloud.com (mx18-out11.antispamcloud.com [207.244.64.180]) (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 87D2482E54 for ; Thu, 27 Dec 2018 02:53:18 +0000 (UTC) (envelope-from freebsd.ed.lists@sumeritec.com) Received: from [153.92.8.106] (helo=srv31.niagahoster.com) by mx120.antispamcloud.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1gcLOs-000VPZ-RG; Thu, 27 Dec 2018 03:27:56 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sumeritec.com; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=xAmV5BXJp9Ml/+peV0+md47APijwRWDPbJxiyS/JzLI=; b=ksiy3jIVKtL7Mfm2kinr2gu9np 5zw4tmPzyVmwT5mAHB23k3R/7iFlOtaJL4movCHkK/6piy1sID5Apufd/cC7maC4cFsOsxa3BUG2v 5QA0l4+EAA0UCsRGjdHK7dXYqGMOdvW9D4ITAeqbpEe4iqGSfCeqzzUCD3CobOtQPLaTsCa7Nnq/C 4hd6rwpfe1oy2qrwOOVVahCQjdsAr8x+0Aqry4GBAov8O+udYBTgxUPpIjGAG8LzHnp1tlU6bgSRH DVBqatci/Nlc7KyjIrExY++gs3wnWPWNqT6DnUAic/uWbwvCK1CC99nDi6poLeAD2iZbouDksHecp mvqEQ2pw==; Received: from [114.125.102.10] (port=36434 helo=X220.sumeritec.com) by srv31.niagahoster.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1gcLO1-0000DF-TB; Thu, 27 Dec 2018 09:27:05 +0700 Date: Thu, 27 Dec 2018 10:27:00 +0800 From: Erich Dollansky To: Andrea Venturoli Cc: freebsd-questions@freebsd.org Subject: Re: now on Ryzen performance Message-ID: <20181227102700.6c8eb36b.freebsd.ed.lists@sumeritec.com> In-Reply-To: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-1.0 X-AuthUser: freebsd.ed.lists@sumeritec.com X-Originating-IP: 153.92.8.106 X-Spampanel-Domain: out.niagahoster.com X-Spampanel-Username: niaga X-Spampanel-Outgoing-Class: unsure X-Spampanel-Outgoing-Evidence: Combined (0.14) X-Recommended-Action: accept X-Filter-ID: EX5BVjFpneJeBchSMxfU5l07EV0Lf0CXQR9NLf8Cyz1602E9L7XzfQH6nu9C/Fh9KJzpNe6xgvOx q3u0UDjvOzT1htska1XLMHDUHwQCsIWc+oM7PKIIHvZocxcrlNitTq9l0Jsl51Hq5dP/jf8b0i0q H/RI+UppDmZcjEC5UShC/hlJ/4pipRkH60H/5V6FIeebqmNzITIBQB6uQcT8T1Wvx4/5aan/L8AH YrKyAYPRyC3iCOChJLQuIwtvt2SGUD4ky7BX1UzjonqURLTnaaPKQfprwj27pubAtp000neaxE2K I0lq7IFKOhhgOU6nUtyfJ9Eac1Rr3XLB7rdLunbwQEeqdiLXJYHgJzfhaOlEDBffVZVjmVaNbG4Z JG7FYTGAEpH4i5yCagzIeXQ1Z7wz2MpogAD7xcut2fULfiLavr9ZeziRMVMQY2DtQVwLwIKgmomx /w0lkMMz3v1CUeWBOXp8nHKe0R+FkIqN7hkzc8fJy+zvdR6g6rtfYMVqVgW9/bktU41htiJ8fk7N kFpKIxrnUNn8Kw10IXx0Njyu51a4mYCGb5aYUpZ7NJBeD4fqhrECogqRhA8Tj9ph+eFU36bcyLTN aJZ7AL/L3a1RKFjBhZSvIKbTsdFdmVjGnAAn556E0sP0A1Vw6aHeyUNA8DTxJ5ENKN41uSUidrjX Za0nmqIus9GBp6NfA35fhD7GKQQAGd7Ym7NdbdquQxEVniihuDwEGDcmr6e3OPTOQVmE1uvqvwST Yw32E7zzFujzxD4dfQrNosfuadNWlxamPOufczM516gN8vhQQHrpmVtr4BCj52fedurfYVEZzooD LQvVfHt3FfzXddeeG1DNDfpgrw7DSypaffSzbrKc0TwPIBJnngHP89wHBJTrkfRDeLo8wUS8kbxF Q3ZSuDAtEa6Ixrv0z6eOzX90h32Z3JKVmi72ocgY5kMQSjs7uFUPWol/xdsIK3LB5jvpLTtsrchF HvVdXIURgwqv18r457UoscCHHMslsK449Xv9 X-Report-Abuse-To: spam@quarantine1.antispamcloud.com X-Rspamd-Queue-Id: 87D2482E54 X-Spamd-Bar: ++++++++ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sumeritec.com header.s=default header.b=ksiy3jIV X-Spamd-Result: default: False [8.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_XOIP(0.00)[]; MX_INVALID(0.50)[cached]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[sumeritec.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_LOW(-0.10)[180.64.244.207.list.dnswl.org : 127.0.3.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:30633, ipnet:207.244.64.0/18, country:US]; IP_SCORE(0.63)[asn: 30633(3.21), country: US(-0.08)]; RECEIVED_SPAMHAUS_PBL(0.00)[10.102.125.114.zen.spamhaus.org : 127.0.0.11]; ARC_NA(0.00)[]; RECEIVED_SPAMHAUS_XBL(3.00)[10.102.125.114.zen.spamhaus.org : 127.0.0.4]; R_DKIM_ALLOW(0.00)[sumeritec.com:s=default]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.98)[0.982,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[sumeritec.com]; NEURAL_SPAM_MEDIUM(1.00)[0.997,0]; BAD_REP_POLICIES(0.10)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(1.00)[0.998,0]; MID_CONTAINS_FROM(1.00)[]; R_SPF_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; GREYLIST(0.00)[pass,body] X-Spam: Yes 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: Thu, 27 Dec 2018 02:53:19 -0000 Hi, On Fri, 21 Dec 2018 17:40:49 +0100 Andrea Venturoli wrote: > 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? I am on FreeBSD 12.0 with a Ryzen 2700X and experience the same problem. It is a different picture for several ports where really all cores are used and things get real fast. It seems to be a problem of the make system as specifying -j 16 leads to errors typically resulting from build being started while the result required for this start is not provided by another thread. Aren't people with real servers using FreeBSD anymore? Erich