From nobody Tue Jun 4 14:42:01 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VttbH0z2tz5LYGK for ; Tue, 04 Jun 2024 14:42:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VttbG73nbz4p1j for ; Tue, 4 Jun 2024 14:42:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717512123; a=rsa-sha256; cv=none; b=xQTTNJFOZZyki5k6fj50CNVrNNn7wlP6InfjmlAutJgTXQACBoCICGpaeO9Q8XcartdTQM pcTBkfmTm/RpKh/qm0M23h2oclrcQukvh3X55xiLJXtp6IR1xcQeg6IwmEDjhzbN2u8/ht UcwNwL83lY1DXkMoPCbGARJEfOuOrrXAv+8r0x6gBtvrq/xiyRE3+p/HrBOkt3yFhTz180 PjIQHS+6zHadwsWvzc4CZPZ4ndnli5ncXmqr65cjpu4HxXup2FuZIxwIWP6MiT4YBosD0K XwxfCEtXmrnfP4cd1VZ8P8eKFTvyKBMUOjHgVT4+TIvl+cEPfdbjnczPKxmoRQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717512123; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ht5dRi+9V2WnjHLachWDuItqpxN6xKDytuuKrepEf0E=; b=EbpjOcvm9csHUOySG2qlUtRuYIAvZqGUV8iQ8Xdt9+TtG/XepA6w6fTxqXeTjCdy9Rj/5F cBK/1a50PeGGxIbwJzgJEn7Ucpb62HGy4FqQmm3afedMONsSdR49vHjW2TAZIm2p/tW4pM egE6+NxtC3o/02wQTsjbxWUp87rZLIKFbJjYg3a4WQrs2+9/ykCkt8H062TkDxafiyh2C4 aBacKdT725tR5gZRUgIdxQNDU+MdzenkhnujBQD3Vvs48NBgMU+cB0GLyI7OFrpX+eSbTI 4TgCHHXkKH1hDlPG4vPS99beNtRpatFHVD9VZH7M+a4hC/MmpBKc8Syr2ibkHw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VttbG6ftjzNMG for ; Tue, 4 Jun 2024 14:42:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 454Eg2Wx026306 for ; Tue, 4 Jun 2024 14:42:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 454Eg2ZV026304 for bugs@FreeBSD.org; Tue, 4 Jun 2024 14:42:02 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 271826] FreeBSD is disastrously slow on a PowerMac G5, freezing at every command Date: Tue, 04 Jun 2024 14:42:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: needs-qa, performance X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jhibbits@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271826 --- Comment #31 from Justin Hibbits --- Comment on attachment 251202 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D251202 tbsync patch 1 All the atomic_set_*()s should really be atomic_store_*(), `atomic_set` is a bit-set (OR operation). It's incorrect in the existing code, too. It real= ly doesn't make a significant difference, since the end result is the same (cpu_done should be 0 to start with, so setting nothing doesn't change that, tb_ready should be 0 to start with, so setting 1 bit does the same thing), except in the last instance to try to clear tb_ready. In the tight loop checking if cpu_done is high enough, you don't need the a= cq barrier in there, because the thread fence occupying the loop does the same thing, and acq places the barrier after the operation, so in the same place anyway. Glad to see this patch overall works for you, though! I'm really surprised those barriers are needed, since they're not needed in the mpc85xx case, wh= ich this is derived from. --=20 You are receiving this mail because: You are the assignee for the bug.=