scripts: Introduce benchmark_memory_usage.sh

System Internals / PulseAudio - Ahmed S. Darwish [gmail.com] - 31 October 2015 08:29 UTC

Add shell script to sample PulseAudio memory usage while increasing the number of connected 'paplay' clients over time.

Linux kernel /proc/$PID/smaps Private and Shared_Dirty fields are used to accurately measure the total size of used dirty pages over time. This shall be useful for benchmarking the PA daemon's memory while introducing new features like per-client SHM access and memfds.

Also add an empty benchmarks-collection directory 'benchmarks/'. All output from the benchmarking tools shall be saved in this place, with timestamps and symbolic links to the newest versions.

c0f2e7d scripts: Introduce benchmark_memory_usage.sh
Makefile.am | 3 +
scripts/benchmark_memory_usage.sh | 131 +++++++++++++++++++++++++++++++++++++
scripts/benchmarks/.gitignore | 10 +++
scripts/benchmarks/README | 4 ++
4 files changed, 148 insertions(+)

Upstream: cgit.freedesktop.org


  • Share