Searcharxiv⌕ Search

arXiv subjects

Johan Söderström

Publications and source records attributed to Johan Söderström.

5 recordsLinked to original sources

Understanding Simulated Architecture via gem5 Call-Stack Profiling

Understanding the behavior of simulated architectures in gem5 is critical for studying complex, deeply integrated computing systems. However, conventional analysis methods provide only an indirect view of the simulated system internals. In this work, we show that call-stack profiling of gem5 itself offers a powerful yet underutilized perspective: the simulator's own call-stack directly reflects the activity of the simulated system, exposing insights that conventional statistics may overlook. Profiling gem5's call-stacks is challenging due to its highly layered and complex software design patterns. To address this, we introduce a specialized, lightweight profiling framework built on Linux's perf_event interface which samples gem5's runtime call-stacks throughout the simulation, resolves symbols on the fly, and merges samples into a hierarchical call-tree representation supporting both high-level structural views and focused, user-defined, component-specific analysis. Moreover, all profiling is performed in a separate process running alongside the main gem5 process, avoiding intrusive changes and overheads to the simulation itself. We apply our framework to gem5's three major CPU models -- AtomicSimpleCPU, TimingSimpleCPU, and O3CPU -- together with the Ruby memory system, and uncover behaviors that are not easily observable in conventional gem5 statistics. Our case studies reveal, for example, that TimingSimpleCPU is inefficient due to its use of a lockup-cache model and, despite its conceptual simplicity, does not simulate faster than a full out-of-order core. In addition, our tool makes it straightforward to detect cache coherence protocol deadlock and livelock -- issues that are otherwise difficult to identify, since the simulation either appears to run normally or terminates abruptly, making it hard to pinpoint when these conditions occur.

cs.AR↗

Anatomy of the gem5 Simulator: AtomicSimpleCPU, TimingSimpleCPU, O3CPU, and Their Interaction with the Ruby Memory System

gem5 is a popular modular-based computer system simulator, widely used in computer architecture research and known for its long simulation time and steep learning curve. This report examines its three major CPU models: the AtomicSimpleCPU (AS CPU), the TimingSimpleCPU (TS CPU), the Out-of-order (O3) CPU, and their interactions with the memory subsystem. We provide a detailed anatomical overview of each CPU's function call-chains and present how gem5 partitions its execution time for each simulated hardware layer. We perform our analysis using a lightweight profiler built on Linux's perf_event interface, with user-configurable options to target specific functions and examine their interactions in detail. By profiling each CPU across a wide selection of benchmarks, we identify their software bottlenecks. Our results show that the Ruby memory subsystem consistently accounts for the largest share of execution time in the sequential AS and TS CPUs, primarily during the instruction fetch stage. In contrast, the O3 CPU spends a relatively smaller fraction of time in Ruby, with most of its time devoted to constructing instruction instances and the various pipeline stages of the CPU. We believe that the anatomical view of each CPU's execution flow is valuable for educational purposes, as it clearly illustrates the interactions among simulated components. These insights form a foundation for optimizing gem5's performance, particularly for the AS, TS, and O3 CPUs. Moreover, our framework can be readily applied to analyze other gem5 components or to develop and evaluate new models.

cs.AR↗

Intermolecular Radiative Decay: A non-local decay mechanism providing an insider's view of the solvation shell

Aqueous solutions are crucial in chemistry, biology, environmental science, and technology. The chemistry of solutes is influenced by the surrounding solvation shell of water molecules, which have different chemical properties than bulk water due to their different electronic and geometric structure. It is an experimental challenge to selectively investigate this property-determining electronic and geometric structure. Here, we report experimental results on a novel non-local X-ray emission process, Intermolecular Radiative Decay (IRD), for the prototypical ions Na$^{+}$ and Mg$^{2+}$ in water. We show that, in IRD, an electron from the solvation shell fills a core hole in the solute, and the released energy is emitted as an X-ray photon. We analyze the underlying mechanism using theoretical calculations, and show how IRD will allow us to meet the challenge of chemically selective probing of solvation shells from within.

physics.chem-ph↗

Analysis of the linear relationship between asymmetry and magnetic moment at the M-edge of 3d transition metals

The magneto-optical response of Fe and Ni during ultrafast demagnetization is studied experimentally and theoretically. We have performed pump-probe experiments in the transverse magneto-optical Kerr effect (T-MOKE) geometry using photon energies that cover the M-absorption edges of Fe and Ni between 40 to 72 eV. The asymmetry was detected by measuring the reflection of light for two different orientations of the sample magnetization. Density functional theory (DFT) wasused to calculate the magneto-optical response of different magnetic configurations, representing different types of excitations: long-wavelength magnons, short wavelength magnons, and Stoner excitations. In the case of Fe, we find that the calculated asymmetry is strongly dependent on the specific type of magnetic excitation. Our modelling also reveals that during remagnetization Fe is, to a reasonable approximation, described by magnons, even though small non-linear contributions could indicate some degree of Stoner excitations as well. In contrast, we find that the calculated asymmetry in Ni is rather insensitive to the type of magnetic excitations. However, there is a weak non-linearity in the relation between asymmetry and the off-diagonal component of the dielectric tensor, which does not originate from the modifications of the electronic structure. Our experimental and theoretical results thus emphasize the need of considering a coupling between asymmetry and magnetization that may be more complex that a simple linear relationship. This insight is crucial for the microscopic interpretation of ultrafast magnetization experiments.

cond-mat.mtrl-sci↗

Exchange dependent ultrafast magnetization dynamics in Fe$_{1-x}$Ni$_{x}$ alloys

Element specific ultrafast demagnetization was studied in Fe$_{1-x}$Ni$_{x}$ alloys, covering the concentration range between $0.1<x<0.9$. For all compositions, we observe a delay in the onset of Ni demagnetization relative to the Fe demagnetization. We find that the delay is correlated to the Curie temperature and hence also the exchange interaction. The temporal evolution of demagnetization is fitted to a magnon diffusion model based on the presupposition of enhanced ultrafast magnon generation in the Fe sublattice. The spin wave stiffness extracted from this model correspond well to known experimental values.

cond-mat.mtrl-sci↗