Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Look! There! Evil!.. pure and simple, total evil from the Eighth Dimension!" -- Buckaroo Banzai


computers / comp.sys.apple2 / Re: Improving IIgs shadow copy speed with NOPs

SubjectAuthor
* Improving IIgs shadow copy speed with NOPsfadden
`* Re: Improving IIgs shadow copy speed with NOPsKent Dickey
 `- Re: Improving IIgs shadow copy speed with NOPsfadden

1
Improving IIgs shadow copy speed with NOPs

<8c43afb7-e8e6-45a5-b3bf-4c0847a2c731n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3651&group=comp.sys.apple2#3651

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:ac8:758a:: with SMTP id s10mr3585069qtq.96.1631203161361;
Thu, 09 Sep 2021 08:59:21 -0700 (PDT)
X-Received: by 2002:ac8:7304:: with SMTP id x4mr3476317qto.222.1631203161133;
Thu, 09 Sep 2021 08:59:21 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Thu, 9 Sep 2021 08:59:20 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=24.130.68.111; posting-account=UAtoeQoAAADrX7T-MHdWWRC4Fzf0dsLP
NNTP-Posting-Host: 24.130.68.111
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8c43afb7-e8e6-45a5-b3bf-4c0847a2c731n@googlegroups.com>
Subject: Improving IIgs shadow copy speed with NOPs
From: thefad...@gmail.com (fadden)
Injection-Date: Thu, 09 Sep 2021 15:59:21 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 9
 by: fadden - Thu, 9 Sep 2021 15:59 UTC

Many years ago I was told that inserting NOPs into IIgs screen updates could actually make things faster, because of the way the different hardware components interact when you're doing a fast copy with shadowed memory (insert a NOP every 8 or 13 PEIs). Somebody attached a logic analyzer to a IIgs and timed it a few different ways, and determined that there is actually no value to adding NOPs:

https://retrocomputing.stackexchange.com/q/228/56

Is there a flaw in their test methodology, or was this actually a myth?

Re: Improving IIgs shadow copy speed with NOPs

<Ub2dne877oDq2af8nZ2dnUU7-cnNnZ2d@giganews.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3652&group=comp.sys.apple2#3652

  copy link   Newsgroups: comp.sys.apple2
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 09 Sep 2021 12:29:27 -0500
Newsgroups: comp.sys.apple2
Subject: Re: Improving IIgs shadow copy speed with NOPs
References: <8c43afb7-e8e6-45a5-b3bf-4c0847a2c731n@googlegroups.com>
Organization: provalid.com
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
From: keg...@provalid.com (Kent Dickey)
Originator: kegs@provalid.com (Kent Dickey)
Message-ID: <Ub2dne877oDq2af8nZ2dnUU7-cnNnZ2d@giganews.com>
Date: Thu, 09 Sep 2021 12:29:27 -0500
Lines: 44
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-HpQ9qI6kvXzW7gp+VnUPwsd7thfCs1Jd0fTMYL9akHcRNHsGihQPOes/eQI2FTlIg+EzXuHLVfYvIxE!02Y8Vy9ESKHJ+7CHHrgfiyrfZnIuFfhkP6mQGtseKK2P4rgv3zNFEkP1QQ3h6uqcEBZfaxz/zUs=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2926
 by: Kent Dickey - Thu, 9 Sep 2021 17:29 UTC

In article <8c43afb7-e8e6-45a5-b3bf-4c0847a2c731n@googlegroups.com>,
fadden <thefadden@gmail.com> wrote:
>Many years ago I was told that inserting NOPs into IIgs screen updates
>could actually make things faster, because of the way the different
>hardware components interact when you're doing a fast copy with shadowed
>memory (insert a NOP every 8 or 13 PEIs). Somebody attached a logic
>analyzer to a IIgs and timed it a few different ways, and determined
>that there is actually no value to adding NOPs:
>
>https://retrocomputing.stackexchange.com/q/228/56
>
>Is there a flaw in their test methodology, or was this actually a myth?

Here is the post:

---
Mythbusted!

With 2021 knowledge of how the FPI/CYA work, this simply didn't make sense. So
I plugged in a logic analyser and timed the Wolfenstein 3D code (NOP every 8
PEI's). I then modified the code to change it to a NOP every 13 PEI's, and
finally to remove the NOPs altogether.

These are the results:

NOP every 8 PEI's - 40 PEI's takes 0.179005ms (4.475125�s/PEI)
NOP every 13 PEI's - 39 PEI's takes 0.17446ms (4.473333�s/PEI)
39 PEI's (No NOPs) takes 0.173758ms (4.445533�s/PEI)
As you can see it is faster to simply issue PEI's without any NOP's.

- Ian Brumby
---

Ian has collected a bunch of data, but he's not fully shared enough to
prove the NOP doesn't help (in my opinion). He probably has that data,
and he's convinced, so he's almost certainly right. It is unfair
to put the burden of proof on Ian to prove the NOP doesn't help.

A detailed waveform of 40+ PEIs (more would be better--long enough to show a
pattern repeating several times) would probably be enough to show NOPs don't
help PEIs. To put the issue to bed, PEA, PHA/STA dloc traces should also be
taken (since each takes different number of clock cycles: 5, 4 vs. 6 for PEI).

Kent

Re: Improving IIgs shadow copy speed with NOPs

<d7c555c2-d1ed-49d3-ac55-4d2c1fc093f5n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3653&group=comp.sys.apple2#3653

  copy link   Newsgroups: comp.sys.apple2
X-Received: by 2002:a05:620a:13cc:: with SMTP id g12mr5287394qkl.277.1631229691353;
Thu, 09 Sep 2021 16:21:31 -0700 (PDT)
X-Received: by 2002:a0c:e4c1:: with SMTP id g1mr5593293qvm.64.1631229691059;
Thu, 09 Sep 2021 16:21:31 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.apple2
Date: Thu, 9 Sep 2021 16:21:30 -0700 (PDT)
In-Reply-To: <Ub2dne877oDq2af8nZ2dnUU7-cnNnZ2d@giganews.com>
Injection-Info: google-groups.googlegroups.com; posting-host=24.130.68.111; posting-account=UAtoeQoAAADrX7T-MHdWWRC4Fzf0dsLP
NNTP-Posting-Host: 24.130.68.111
References: <8c43afb7-e8e6-45a5-b3bf-4c0847a2c731n@googlegroups.com> <Ub2dne877oDq2af8nZ2dnUU7-cnNnZ2d@giganews.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d7c555c2-d1ed-49d3-ac55-4d2c1fc093f5n@googlegroups.com>
Subject: Re: Improving IIgs shadow copy speed with NOPs
From: thefad...@gmail.com (fadden)
Injection-Date: Thu, 09 Sep 2021 23:21:31 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 18
 by: fadden - Thu, 9 Sep 2021 23:21 UTC

On Thursday, September 9, 2021 at 10:29:33 AM UTC-7, Kent Dickey wrote:
> A detailed waveform of 40+ PEIs (more would be better--long enough to show a
> pattern repeating several times) would probably be enough to show NOPs don't
> help PEIs.

I was thinking more along the lines of a stripped-down game loop that ran for some large number of iterations, with timings measured by pointing a cell phone camera at it and counting elapsed video frames. Less precise, but it can be done without fancy hardware.

Mostly I was hoping somebody had already done this experiment. If they had reached the conclusion that NOPs do help, it then becomes a question of why different experiments reached different conclusions.

I wasn't able to find any evidence while researching the question initially, but before I moved the "accepted answer" check I figured I'd ping the world again to see if this was ever more than a rumor.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor