Home | deutsch  | Legals | KIT

Tracing Framework

SimutraceThe tracing components build the core of the Simutrace project and have been conceived with full length, no-loss tracing in mind. Simutrace uses a client-server architecture, where an extension in a full system simulator collects events (e.g., memory accesses) and a storage server receives the data, performs trace compression and storage as well as provides easy access to the data for later analysis and inspection. Simutrace places no restriction on the type and number of captured events and employs a scalable storage format, which easily handles traces of terabytes in size.

 

 

Simutrace has been particularly extended to facilitate efficient memory tracing by capturing memory accesses in the simulation, thus including all user-space programs, the operating system, drivers and direct memory access (DMA) operations. Besides recording data addresses, Simutrace also captures the transferred data. That allows reconstructing the full memory contents of the simulated machine at any point. In addition, the integrated memory entry format includes the instruction pointer (IP) of the operation that issued the memory access, thus retaining most control flow information. However, Simutrace can also be used to create full instruction traces or record supplementary information such as events generated by an introspection layer.

 

In this video, we connected a simple demo client to Simutrace, which reconstructs the physical memory contents of an Ubuntu machine, booting and building the Linux kernel. The trace encompasses all CPU read and write operations, introspection information on process events (fork, exec, switch, kill) and screen buffer output. The 3.6 TiB of raw data were compressed by Simutrace down to around 110 GiB. The demo shows all activity on the physical memory pages. Read accesses to a page frame are displayed in green and write accesses in red. Page frames experiencing both, reads and writes, are marked yellow.

 

 

 

 

 

 

Features

The key features of Simutrace are:

  • Holistic and non-intrusive system tracing through full system simulation.
  • Flexible and modular, client-server-based architecture.
    Per connection shared-memory (local) or socket-based (remote) communication.
  • Support for multiple concurrent sessions.
    Trace multiple simulations concurrently or read/inspect recorded data while still tracing.
  • Stream-oriented event recording model.
    No restriction on type of data captured (variable-sized data supported).
  • Multi-threaded tracing to support recent parallel multi-core simulators [1].
  • Fully asynchronous and multi-threaded trace processing engine.
  • Integrated memory trace compressor.
    VPC4 [2] prediction-based memory trace compression with LZMA [3].
    Aggressive but fast compression of address traces including access data and control flow information.
  • Scalable storage format supporting partial decompression.
    Allows recording long-running workloads with raw traces of terabytes in size.
  • In-memory index for fast seeking to specified time spans.

 

Availability

Simutrace is available for download here.

 

Contact: Dipl.-Inform. Marc Rittinghaus, Dipl.-Inform. Thorsten Groeninger

Publications
Author Title Source

Marc Rittinghaus, Thorsten Groeninger, Frank Bellosa

White Paper, Operating Systems Group, Karlsruhe Institute of Technology, 2015



Talks
Speaker Title Conference

Thorsten Groeninger, Marc Rittinghaus

GI-BS Fachgruppentreffen, TU Dresden, Mai 2014



Student Projects
Author Title Type Advisor
Jonas Julino Diplomarbeit

Prof. Dr. Frank Bellosa, Marc Rittinghaus

Julian Faude Master Thesis

Prof. Dr. Frank Bellosa, Marc Rittinghaus

Jan Ruh Bachelor Thesis

Prof. Dr. Frank Bellosa, Marc Rittinghaus

Felix Wilhelm Master Thesis

Prof. Dr. Frank Bellosa, Marc Rittinghaus

Thomas Schmidt Bachelor Thesis

Prof. Dr. Frank Bellosa
Marc Rittinghaus



Bibliography

[1] J. Ding et al. PQEMU: A parallel system emulator based on qemu. ICPADS. IEEE, 2011.

[2] M. Burtscher et al. The vpc trace-compression algorithms. Computers, IEEE Transactions on, 54(11):1329–1344, 2005.

[3] Lzma SDK. http://www.7-zip.org/sdk.html.