Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] Monitoring data usage Grant <emailgrant@×××××.com>