Live interactive queries to a software application's memory profile

Journal Article (2019)
Authors

M. Fragkoulis (Athens University of Economics and Business)

Diomidis Spinellis (Athens University of Economics and Business)

Panos Louridas (Athens University of Economics and Business)

Affiliation
External organisation
To reference this document use:
https://doi.org/10.1049/iet-sen.2018.5114
More Info
expand_more
Publication Year
2019
Language
English
Affiliation
External organisation
Issue number
4
Volume number
13
Pages (from-to)
241-248
DOI:
https://doi.org/10.1049/iet-sen.2018.5114

Abstract

Memory operations are critical to an application's reliability and performance. To reason about their correctness and track opportunities for optimisations, sophisticated instrumentation frameworks, such as Valgrind and Pin, have been developed. Both provide only limited facilities for analysing the collected data. This work presents a Valgrind's extension for examining a software applications' dynamic memory profile through live interactive analysis with SQL. The Pico COllections Query Library (pico ql) module maps Valgrind's data structures that contain the instrumented application's memory operations metadata to a relational interface. Queries are type-safe and the module imposes only a trivial overhead when idle. The authors evaluate the proposed approach on ten applications and through a qualitative study. They find 900 kb of undefined bytes in bzip2 that account for 12% of its total memory use and a performance-critical code execution path in the Unix commands sort and uniq. The referenced functions are part of glibc and have been independently modified to boost the library's performance. The qualitative study has users rate the usefulness, usability, effort, correctness, and expressiveness of PICO QL queries compared to Python scripts. The findings indicate that querying with PICO QL incurs lower user effort.

No files available

Metadata only record. There are no files for this record.