| Deutsch English Français Italiano |
|
<b4db68f6d3ab76eb6645905a7108eb75@www.novabbs.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.misty.com!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail From: mitchalsup@aol.com (MitchAlsup1) Newsgroups: comp.arch Subject: Re: arm ldxr/stxr vs cas Date: Thu, 5 Sep 2024 00:59:36 +0000 Organization: Rocksolid Light Message-ID: <b4db68f6d3ab76eb6645905a7108eb75@www.novabbs.org> References: <vb4sit$2u7e2$1@dont-email.me> <07d60bd0a63b903820013ae60792fb7a@www.novabbs.org> <vbarl0$13lk$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: i2pn2.org; logging-data="890217"; mail-complaints-to="usenet@i2pn2.org"; posting-account="65wTazMNTleAJDh/pRqmKE7ADni/0wesT78+pyiDW8A"; User-Agent: Rocksolid Light X-Spam-Checker-Version: SpamAssassin 4.0.0 X-Rslight-Posting-User: ac58ceb75ea22753186dae54d967fed894c3dce8 X-Rslight-Site: $2y$10$UTRxxwHzvEKPrjk92LFxjej34rFMVkvkB7Yq6jNptJbMAHly9SRue Bytes: 2087 Lines: 24 On Wed, 4 Sep 2024 23:48:48 +0000, Chris M. Thomasson wrote: > On 9/4/2024 2:27 PM, MitchAlsup1 wrote: >> On Mon, 2 Sep 2024 17:27:57 +0000, jseigh wrote: >> >>> I read that arm added the cas instruction because they didn't think >>> ldxr/stxr would scale well. It wasn't clear to me as to why that >>> would be the case. I would think the memory lock mechanism would >>> have really low overhead vs cas having to do an interlocked load >>> and store. Unless maybe the memory lock size might be large >>> enough to cause false sharing issues. Any ideas? >> >> A pipeline lock between the LD part of a CAS and the ST part of a >> CAS is essentially FREE. But the same is true for LL followed by >> a later SC. > > 100% sure on that? No way to break the reservation from an unrelated > aspect wrt LL/SC? I have been building pipelines like that since 1983. Now, it is completely possible to build a pipeline that gives one grief (lesser or greater) in doing these things--but it is definitely possible to build a grief free pipeline for LL- SC, and by extension CAS.