scripts: Introduce benchmark_memory_usage.sh

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.

Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
This commit is contained in:
Ahmed S. Darwish 2015-09-23 18:30:16 +02:00 committed by Tanu Kaskinen
parent 01aec46fb4
commit c0f2e7d36a
4 changed files with 148 additions and 0 deletions

View file

@ -0,0 +1,4 @@
This is an empty directory for collecting users PulseAudio daemon
performance benchmarks, as created by the tools under `scripts/' .
Please do not commit any file here except this README and .gitignore.