Gentoo Archives: gentoo-user

From: Grant <emailgrant@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Monitoring data usage
Date: Tue, 07 Jul 2009 08:11:43
Message-Id: 49bf44f10907070111i10356a14ncce238271dd74399@mail.gmail.com
In Reply to: Re: [gentoo-user] Monitoring data usage by Paul Hartman
1 >>>> > I'm using ifconfig to monitor how much data I'm using, but it seems
2 >>>> > pretty high. Is there a simple way to see why I'm using so much data?
3 >>>>
4 >>>> $ eix ^ntop
5 >>>> [I] net-analyzer/ntop
6 >>>> Available versions: 3.3.9-r2 ~3.3.10-r1 {ipv6 ssl tcpd}
7 >>>> Installed versions: 3.3.9-r2(14:11:46 06/25/09)(ssl tcpd -ipv6)
8 >>>> Homepage: http://www.ntop.org/ntop.html
9 >>>> Description: Network traffic analyzer with web interface
10 >>>>
11 >>>> $
12 >>>
13 >>> Also iftop and lsof with some clever regex-ing if you want to see what
14 >>> program
15 >>> drives the connection.
16 >>
17 >> nethogs will show active network activity
18 >
19 > Oops, I somehow sent that while composing. I was saying, nethogs will
20 > show active network activity by program, so you can see who is using
21 > network data at that moment, in a top-like fashion. Not a "how much
22 > has it used total", but a "how much is it using right now". Here's an
23 > example:
24 >
25 > NetHogs version 0.7.0
26 >
27 > PID USER PROGRAM DEV SENT RECEIVED
28 > 29641 root git wlan0 0.929 0.649
29 > KB/sec
30 > 29620 root /usr/bin/svn wlan0 0.187 0.269
31 > KB/sec
32 > 29509 paul sshd: paul@pts/1 wlan0 0.883 0.136
33 > KB/sec
34 > 29612 root git wlan0 0.119 0.131
35 > KB/sec
36 > 29591 root /usr/bin/python wlan0 0.000 0.000
37 > KB/sec
38 > 0 root unknown TCP 0.000 0.000
39 > KB/sec
40 >
41 > TOTAL 2.118 1.185
42 > KB/sec
43
44 That's a great tool. I couldn't get it to work with ppp0 until I
45 emerged the ~amd64 version.
46
47 - Grant