generic_vs_lowlatency_test_script
A script to do audio performance testing on system automatically and gather all relevant data from that machine.
Use generic vs lowlatency testing as inspiration.
Script jobs
- Check for prerequisites
- Check for kernels installed
- Check for user realtime privilege
- Install prerequisites
- Add PPA if needed and install -lowlatency
- Add user to audio group and overwrite /etc/security/limits.d/audio.conf
- Do tests
- Choose audio interface
- Each test run uses a different frames/period, count xruns per test run
- Produce results into text file (and perhaps send it)
- System info
- xruns per test run
System Info
- arch (i386, amd64)
- Ubuntu version
- Kernel version
- Info on chosen audio card
- /proc/interrupts (irq)
- /proc/asound/cards (audio devices)
- The output of lspci -vv |grep -A 5 -i audio
User input
- choose audio device for the test
- maybe ask for "test name" and "run number" (to add as a suffix to test results - see below in Outputs)
Outputs
Results could be aggregated into a text file along with all the system info. It would be nice for human readable headers to be inserted.
For example:
Test Run on : 2011-04-14
=== KERNEL ===
blah, blah, blah-linux-2.6.39-PREMPT built on blah, blah, blah
=== XRUNS ===
3 xruns over 1.9E+0092 hours run
Additionally, if the user added a "test name" and "run number" the output file could include this.
For example:
xruntest-scott-1.txt <- would be the first test run by scott xruntest-scott-2.txt <- would be the second test run by scott
Additionally, if the user added a "run number" the output file could include this.
generic_vs_lowlatency_test_script (last edited 2011-04-20 03:23:52 by 90-230-166-102-no35)