News for hackers. Stuff that matters.

zznzz

jax and whisper-jax support running on GPUs in addition to TPUs, this particular demo just runs on a TPU.
what kind of lasers / lidar technology is this that is not reflected by trees?
Re:ARM64 Linux Workstation on Friday March 03, 2023 @07:44PM (#35016955)
altra is also > 2 years old, so the age of the apple chip doesn’t matter

Neoverse N1 is hardly a dog. It’s a decent enough core in a server processor that has 80 of them.

Altra is not intended to compete core for core with any laptop/desktop/workstation processor.

Re:Something is wrong in the state of QED [pdf] on Saturday February 25, 2023 @11:39AM (#34937959)
A comment on some of the presentation of the history (‘staunton has already noted the strangeness of bellyaching in 2021 about renormalization without mentioning the renormalization group)

In section 4.3 the author incorrectly describes Fermi’s comments to Dyson as a criticism of Dyson’s work on QED. At the time of this meeting, Dyson had already given up on his QED program and was working on the strong interaction. Fermi’s comments that Dyson had neither a “clear physical picture” or a “precise and self-consistent mathematical formalism” were regarding some (pre-quark) pion theory Dyson had been working at at Cornell starting in 1951, not QED.

Dyson describes this meeting in https://www.webofstories.com/play/freeman.dyson/94 but the required context is in the prior segment https://www.webofstories.com/play/freeman.dyson/93

Also the author describes Oppenheimer’s initial resistance to Dyson’s work, but fails to mention that Oppenheimer was eventually convinced that Dyson’s work was valuable and gave Dyson a lifetime appointment at the IAS.

Re:Recursive (Re-Entrant) Locks (2013) on Saturday February 18, 2023 @12:47PM (#34849054)
What you describe (multiple cores sharing the same lock) sounds like true sharing, not false sharing. False sharing means cache line contention is when cores are using separate structures (i.e. not actually shared) which happen to be on the same cache line.

Compare and swap still typically requires the cache line to bounce around between cores, so if that’s the primary cost of locks for you it seems like compare and swap doesn’t really fix the problem of frequent synchronization between cores.

Re:AMD ROCm: A Wasted Opportunity on Saturday February 18, 2023 @11:16AM (#34848014)
Accelerating Standard C++ with GPUs Using stdpar

https://developer.nvidia.com/blog/accelerating-standard-c-wi...

Re:Frame pointers vs. DWARF – my verdict on Wednesday February 15, 2023 @01:24PM (#34808281)
Yes, this only works for user space stacks, but that is sufficient since with ORC kernel stacks are solved (IMO) and it avoids all the issues with trying to mlock debuginfo of all processes that you mentioned. The NMI handler would still unwind the kernel stack.

> Why not implement your approach and mail it to LKML :-)

because this would still be an in-kernel dwarf unwinder and I would expect an instant reject, and because I am lazy and/or don’t care enough about this problem or linux to work on it. Even if people could be persuaded, I don’t have the interest or temperance to debate this with LKML.

Re:Frame pointers vs. DWARF – my verdict on Wednesday February 15, 2023 @12:31PM (#34807403)
I don’t understand your concern - what about this would involve one process sniffing another process’s memory? The kernel would still be doing the unwinding, just not in the NMI handler.
Re:Frame pointers vs. DWARF – my verdict on Wednesday February 15, 2023 @12:30PM (#34807375)
because this is about PMU based sampling, which involves triggering interrupts at some interval and doing the sampling while handling the interrupt
Re:Frame pointers vs. DWARF – my verdict on Wednesday February 15, 2023 @12:24PM (#34807286)
It is not required to unwind the user space stack in the NMI handler. It can be done later before returning to user space in a context that can handle faults.
Re:Frame pointers vs. DWARF – my verdict on Wednesday February 15, 2023 @12:11PM (#34807048)
See also https://lists.fedoraproject.org/archives/list/[email protected]... - the botan phoronix results with frame pointers were probably measuring debug builds.
Re:Frame pointers vs. DWARF – my verdict on Wednesday February 15, 2023 @10:25AM (#34805014)
I cannot comment on whether “everyone” is oblivious but yes, this is still the case - frame pointer based unwinding sometimes skips the caller when the IP is sampled before the callee sets up a frame.

This is also common for samples in leaf functions.

compiler & tool chain folks tend to think (quite justifiably imo) that this and similar stuff is fine because dwarf allows reconstructing everything perfectly. The problem is just that the user experience of dwarf-based unwinding is poor, because the only implemented method in Linux is sampling the contents of the stack and doing the unwind in post processing.

Re:Frame pointers vs. DWARF – my verdict on Wednesday February 15, 2023 @10:20AM (#34804954)
IIUC Windows implements in-kernel unwinding using FPO debug data embedded in every executable.
Re:Frame pointers vs. DWARF – my verdict on Wednesday February 15, 2023 @10:15AM (#34804890)
Register renaming doesn’t significantly address the impact of reducing the number of architectural registers available to the compiler. With fewer register names available, the compiler will spill locals to stack more often, and register renaming doesn’t help - memory renaming is needed to really mitigate this.

But i agree the impact of preserving frame pointers is generally quite small and doesn’t often actually need mitigation - on amd64 there’s not much impact from losing 1 more of 16 arch registers.

Re:Frame pointers vs. DWARF – my verdict on Wednesday February 15, 2023 @10:09AM (#34804826)
Can you give more detail?

AFAIK frame pointers work fine for unwinding on aarch64. And on aarch64 the gcc default is not to omit frame pointers and IIRC when the default was switched at some point it was treated as a bug and reverted (not sure if required in the ABI or just strongly preferred by the community). So IME generally unwinding with frame pointers on aarch64 works more often than on amd64 since you don’t have to recompile the world.

Re:Frame pointers vs. DWARF – my verdict on Wednesday February 15, 2023 @10:04AM (#34804742)
> Is DWARF unwinding so slow that that is actually faster?

No. The only reason it works like this is because the upstream Linux kernel has thus far rejected in-kernel dwarf unwinders, but copying the stack is simpler and available / implemented.