autotest/autotest — Issue #162: RFE: save traces and statistics for client-vm connections
Author: alon
Created: 2012-01-27 13:30:28+00:00
State: open

This would be benefitial for and remote desktop client used, such as vnc or spice. Also useful even before full traces are saved, and only bandwidth statistics. Usage is for regression testing (commit X caused increase in bandwidth - for a repeatable bandwidth test).

Implementation: there are a number of ways, especially since autotest-kvm controls both sides of the connection. Using a proxy is possible (for instance http://cgit.freedesktop.org/~alon/spicedump/tree/proxy.py) or just using tcpdump. An even simpler proxy that would also let you do bandwidth limiting, that is probably the subject of another issue, is "sudo trickle -d 10 -u 10 balance -f 6666 localhost:5678"

http://www.inlab.de/balance.html
http://monkey.org/~marius/pages/?page=trickle