On Fri, May 6, 2016 at 5:04 PM, Rob Landley <[email protected]> wrote: > On 05/06/2016 11:25 AM, enh wrote: >> On Thu, May 5, 2016 at 8:04 PM, Rob Landley <[email protected]> wrote: >>> On 05/05/2016 11:25 AM, enh wrote: >>>> I removed iftop a while back but didn't remove it everywhere in the >>>> documentation. I switched over to toybox ps yesterday. >>> >>> Yay! >>> >>>> --- >>>> www/roadmap.html | 10 +++++----- >>>> 1 file changed, 5 insertions(+), 5 deletions(-) >>> >>> If iftop is an iotop for network I/O, I've been meaning to do one of >>> those for a while now, but haven't looked up how yet. >> >> you can see ours (in the CL that removed it) here: >> >> https://android-review.googlesource.com/#/c/216389/1/toolbox/iftop.c >> >> it was nothing like the desktop one, which is all ASCII-art bar charts. > > Hmmm... This is basically taking snapshots of "ifconfig" output and > doing math on the RX BYTES and TX BYTES fields. > > Unfortunately parsing /proc/net/dev doesn't associate I/O with > processes, so gluing it into the existing toys/*/ps.c hairball wouldn't > make sense (since that's all about tracking per-process attributes). > That would be header info for the first couple lines of the screen, but > I still need the per-process data. (There's apparently stuff like > nethogs that finds it, I just haven't looked up how yet.)
Android has its own socket-tagging infrastructure for attributing network i/o to apps, so anything i know probably isn't very relevant elsewhere. > Rob -- Elliott Hughes - http://who/enh - http://jessies.org/~enh/ Android native code/tools questions? Mail me/drop by/add me as a reviewer. _______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
