🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #428

Re: interrupt handling latency and weird register use (was Re: OT: Epic RISC-V rant)

#428
From: BGB
Date: Wed, 28 Oct 2026 21:39
60 lines
4000 bytes
On 10/28/2026 7:41 AM, Anton Ertl wrote:
> antispam@fricas.org (Waldek Hebisch) writes:
>> I used TeX on 386.  It did relatively small number of floating
>> point operations.
> 
> AFAIK TeX does not do FP, or at least the versions from those times
> did not.  That's because TeX was intended to create reproducible
> results across machines, and FP was not useful for that when TeX was
> written, because FP operations behaved differently on different
> machines.
> 

Still sort of an issue IME:

Different compilers, different optimization settings, whether it is 
using x87 or SSE, ..., may subtly change the results of FP calculations.


Well, or sometimes it may be CPU dependent:
I had encountered some code that failed when compiled for 64-bit and run 
on an Intel CPU, but still worked fine on an AMD CPU;
I eventually figured out it was because the code in question was doing 
something unorthodox (using "float*" and "double*" operations to copy 
memory) and the Intel CPU's MOVSS and MOVSD instructions were apparently 
stomping the value if it was a NaN (changing the NaN bit pattern to a 
different NaN bit pattern).

Whereas, on the AMD CPU, "MOVSS/MOVSD xmm, [mem]" behaved the same as 
"MOVD/MOVQ xmm, [mem]", leaving the NaN's alone.



Though, that said, did at one point have a CPU that seemingly had 
non-deterministic floating-point math, where one could run the same 
calculation multiple times and get slightly different results each time.

I think I eventually realized that this particular CPU (an AMD Athlon64 
/ Clawhammer) had floating-point math that was sensitive to CPU 
temperature (CPU got hot, and FPU math got noisy).

Nothing drastic, mostly it was like it would start adding random noise 
into the low-order bits of FPU calculations. Mostly didn't effect much.

Not exactly the worst issue this computer had (actually, it was horribly 
unstable and crash-prone in general).


Well, I suspect it was maybe a case of CPUs were often clocked at a 
point where they were on the knife edge of being able to work at all. I 
lot of my follow-on computers, I ended up needing to explicitly underclock.

Actually, my current Xen+ PC is the first I ended up not needing to 
underclock, as it appears to run pretty stable and reliable at its stock 
CPU speed.

...


> - anton
Technical Details
Message-ID: <11btq7i$2qipo$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <87qzk0nejz.fsf@nightsong.com> <116d89d$27baf$1@paganini.bofh.team> <87ecfcagiw.fsf_-_@debian> <2026Sep1.225146@mips.complang.tuwien.ac.at> <11bpfm8$190ap$1@dont-email.me> <2026Oct27.171414@mips.complang.tuwien.ac.at> <1793120789-5857@newsgrouper.org> <11bqq0k$1p107$1@dont-email.me> <11bsp52$36q1t$2@paganini.bofh.team> <2026Oct28.134157@mips.complang.tuwien.ac.at>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: BGB <cr88192@gmail.com>
Newsgroups: comp.arch
Subject: Re: interrupt handling latency and weird register use (was Re: OT:
 Epic RISC-V rant)
Date: Wed, 28 Oct 2026 16:39:40 -0500
Organization: A noiseless patient Spider
Lines: 60
Message-ID: <11btq7i$2qipo$1@dont-email.me>
References: <87qzk0nejz.fsf@nightsong.com>
 <116d89d$27baf$1@paganini.bofh.team> <87ecfcagiw.fsf_-_@debian>
 <2026Sep1.225146@mips.complang.tuwien.ac.at> <11bpfm8$190ap$1@dont-email.me>
 <2026Oct27.171414@mips.complang.tuwien.ac.at>
 <1793120789-5857@newsgrouper.org> <11bqq0k$1p107$1@dont-email.me>
 <11bsp52$36q1t$2@paganini.bofh.team>
 <2026Oct28.134157@mips.complang.tuwien.ac.at>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 28 Oct 2026 21:42:11 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2968376"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/pCsF4e/Etloe3oejrvvWAz34K850aplg="; posting-host="609a946c24bef645c99bfc2af666679f"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:jZlcy+RqiHdQvoKcZpPmPVyuk58= sha256:ehcBNQV0aOsjumgGwcsY6exykBOVQ27vM3Dap1TkDAI=
	sha1:vIDSecmpjRqC3EZAL4twNmxGpqc= sha256:28rTNd2/wVhFJkKFZwygtFox6eXlydFpiVgVgKqgmYs=
Content-Language: en-US
In-Reply-To: <2026Oct28.134157@mips.complang.tuwien.ac.at>