Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 May 2024 20:56:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 271826] FreeBSD is disastrously slow on a PowerMac G5, freezing at every command
Message-ID:  <bug-271826-227-ToFB4EdLXU@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-271826-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-271826-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271826

--- Comment #29 from Justin Hibbits <jhibbits@FreeBSD.org> ---
(In reply to ben from comment #28)
I think your patch is in the right direction, but I think the explicit memo=
ry
barriers are overkill in part.  We likely need to use acq/rel semantics with
the atomics, and always do a load_acq() when checking cpu_done.

Something like using:

atomic_add_rel_int(&cpu_done, 1); (in both cases)

while (atomic_load_acq_int(&cpu_done) < mp_ncpus)
    ;

And maybe do the same for tb_ready.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271826-227-ToFB4EdLXU>