On Cyanogenmod, there is a neat display in the settings that shows you over-all data usage, as well as per-app data usage:
Is there anything similar available for linux? I want to be able to log per-application data usage for a given network interface.
edit: To clarify, I want something that will display a total of bandwidth-usage, per-process, over period of time (at least a few hours, preferably up to a month, and granular, so that I can look at what caused spikes in usage, etc.