From owner-freebsd-ppc@freebsd.org Sun Feb 14 20:43:21 2021 Return-Path: Delivered-To: freebsd-ppc@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4C25053B74C for ; Sun, 14 Feb 2021 20:43:21 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-25.consmr.mail.gq1.yahoo.com (sonic304-25.consmr.mail.gq1.yahoo.com [98.137.68.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ddzhm2ZZ2z4WvT for ; Sun, 14 Feb 2021 20:43:19 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1613335397; bh=u/vi+LvbVlFtr/n+FFjTC4bWMxMepqZg7xl+DrmKORP=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=I70tCc94Ac9zxMwHEgqQOG0HnBSDw6+9By/pWQXw2YA58PygIcEgYKGEmqUHvu7DqsmF4s1ZQir2AqD9RKuDWWzDZpF+jALYAxoMhchO7MnXnNtSkP9Jb2V+7GxR26xz8+yb9mec610aTpunm0gh/Fz5XlNdtk5hqtTpArhWzanz10kSZUV3PQdHpYBhwtIaBQruXgQRRK0bYlmSyYxHUQUys2kdjslWwOo7G1plidxMLIDvT/K7/iaTee+qH1yjGewvq1VafZ0jWUL6O1NW3eyUwcR6KrVeokkBO0yb8Sfupr3nzGMWfBGQvz+mnw1bUEhUJBCgAnK+82ZhOKjI0w== X-YMail-OSG: oj7zJ0gVM1kaFRhlEdqeQfoLHWSHL4oHACaBNJ7eajMuqXHzLVB6KbyaB7f88lU 7kZzkStEG5C522t9ul6TwAJKczeKsy3nXw3xBBs9TRuhQenvBh82xQPjhEJgiAkxqavjckg7_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A_SlX pJK_Wg_vB23e9evqSjgtWM0I8VL1irE.k2ji5hEHwpSDaPzAnv3ZPY12jm_KNIaAjlXzJcA8YspK pXJmpfUupJ_N1LPhvGviltHUNhUH90Ft2JTWAPzjWPcABEXl881Wx0cqBoWYk4tDXdXZO1XkLATF 6cYO5fjJK7sP4Ieq1t8.kh.KFO8Goi1GQ66R37T4lyrHb.EZ_0owYbo1CdZqZk2M0rQGqFRQXv5G EuOnExtVvwueUfVTM53YIe2AqgAJhusOlNwQf5mtx.MeMVsMMveOkAQdz5YG5bC34gCQxIgX7bQL t9zzxWni8zS9n3z.wHBkp53jnKB.W6dboYaGxUO76sZghvor7OVmMM4bkABVNLBtMMTQ- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Sun, 14 Feb 2021 20:43:17 +0000 Received: by smtp424.mail.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 194d98b1a342839e952617cffa53b01c; Sun, 14 Feb 2021 20:43:12 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Subject: Re: Test of FreeBSD-13.0-ALPHA3-powerpc-powerpc64-20210129-40cb0344eb2-256214-disc1.iso.xz From: Mark Millard In-Reply-To: <5e905bca-c62e-4f72-8f22-09ac384b9ae9@www.fastmail.com> Date: Sun, 14 Feb 2021 12:43:09 -0800 Cc: FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: <4221D431-7229-44A9-B587-8FA851FA19E9@yahoo.com> References: <8348beb1-06f4-6b65-cf62-74c81dcf31f6@blastwave.org> <5e905bca-c62e-4f72-8f22-09ac384b9ae9@www.fastmail.com> To: Dennis Clarke via freebsd-ppc X-Mailer: Apple Mail (2.3654.40.0.2.32) X-Rspamd-Queue-Id: 4Ddzhm2ZZ2z4WvT X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.53 / 15.00]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-0.03)[-0.029]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RBL_DBL_DONT_QUERY_IPS(0.00)[98.137.68.206:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[98.137.68.206:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.206:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.206:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-ppc] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2021 20:43:21 -0000 On 2021-Feb-14, at 07:57, Brandon Bergren = wrote: > On Sun, Feb 14, 2021, at 12:31 AM, Dennis Clarke via freebsd-ppc = wrote: >> Performance is best described as terrible. I did fetch src.txz from >> the releases directory : >> = https://download.freebsd.org/ftp/releases/powerpc/powerpc64/13.0-BETA2/ >=20 > Yes, the clang compiler is known to be *much* slower than the old GCC. = It's gigantic in comparison and some of the passes are a lot more = computationally expensive. It's a nearly 100 meg dynamically-linked = binary. >=20 >>=20 >> Currently running a buildworld which appears that it will be some = days >> before that completes. This may actually be slower than a qemu = instance >> of FreeBSD-CURRENT on RISC-V. >=20 > Yeah, it probably will. I don't currently test buildworld on anything = older than POWER8, just because it's so much time investment to do so. >=20 >> The Decrementer exception seen in December CURRENT no longer exists. >> Seen here >> = https://beta.genunix.com/freebsd/ppc64/power_mac_quad_freebsd_13_current_1= 7_dec_2020_fail.png >=20 > Yep. That is the problem that > = https://cgit.freebsd.org/src/commit/sys/powerpc/aim?id=3Dd26f2a50ff48dacd3= 8ba358d658882d51f7bdbc4 >=20 > fixes. >=20 >> I want to dig into the smp issue if I can but at the moment I will = await >> for a full buildworld/buildkernel and then see where we are. >>=20 >=20 > I believe most of the smp issue boils down to the timebase getting out = of sync between processors and causing paradoxes in the scheduler. There = are some algorithms there that really don't like the timebase moving = backwards and it can cause stuff like scheduled timers to get lost, = which manifests in processes hanging in syscalls and such. >=20 > There is some background discussion in = https://reviews.freebsd.org/D23376 and on the list about this. The basic = solution is to rendezvous and have all processors initialize their = timebase to a specific value and then wait for a broadcast from the boot = processor to all enable it at the same time. >=20 > Unfortunately, I have limited ability to work on this as my only SMP = PowerMac is a dual G4, which works a bit differently than the G5s. = Although I could certainly work on the G4 version of this problem. Dennis, Other notes about various problems and at least patches for workarounds for PowerMacs are (including usefdt oddities) in comments tied to me 3 patch sets in: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233863 Comments are both in the code in the patches and in the bugzilla entry. For the bugzilla entry only some of the comments are relevant. The overall comments sequence in the bugzilla entry shows my gradual progress and is a mess to deal with early vs. better information later and such. I once wrote the following to help with reading the bugzilla comments: QUOTE What comments to read for which attachments in 233863 ? Two of the attachments have essential information, one has extra information and dealing with it is optional for the purpose (given one part of the essential patches is used). Essential: attachments 203683 and 204369 203683: read comments=20 15,23,49 (plus read any code comments in the diff) 204369: read comments=20 7,12,13,22,23,27,30,32,51 (plus read any code comments in the diff) Note:=20 comment 23 relates to the later-below extra/optional patch as well: what part of 204369 makes the below optional. You might want to only pay attention to the above 2 attachments and their comments. Extra/optional: 204368 204368: read comments=20 19,20,23,50 (plus read any code comments in the diff) Note:=20 comment 23 has the explanation of why the attachment is extra/optional (if one part of the essential patches is used). END QUOTE In my personal context, I've still been bringing forward and using my patches from: https://reviews.freebsd.org/D23376 and: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233863 I'm currently running based on a patched main 3acea07c1873 . # ~/fbsd-based-on-what-freebsd-main.sh=20 merge-base: 3acea07c1873b1e4042f4a4fa8668745ee59f15b merge-base: CommitDate: 2021-02-08 19:15:21 +0000 c1845d00f818 (HEAD -> mm-src) mm-src snapshot for mm's patched build in = git context. 3acea07c1873 (pure-src) Restore the augmented strlen commentary FreeBSD FBSDG5L2 14.0-CURRENT FreeBSD 14.0-CURRENT = mm-src-n244686-c1845d00f818 GENERIC64vtsc-NODBG-dcons powerpc powerpc64 = 1400004 1400004 I only cross-build for buildworld buildkernel these days, having no modern-speed powerpc64 hardware. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)