public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Grant <emailgrant@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Monitoring data usage
Date: Tue, 7 Jul 2009 01:11:41 -0700	[thread overview]
Message-ID: <49bf44f10907070111i10356a14ncce238271dd74399@mail.gmail.com> (raw)
In-Reply-To: <58965d8a0907061413h5bd7b0e3k7374dbd9e524a37d@mail.gmail.com>

>>>> > I'm using ifconfig to monitor how much data I'm using, but it seems
>>>> > pretty high.  Is there a simple way to see why I'm using so much data?
>>>>
>>>> $ eix ^ntop
>>>> [I] net-analyzer/ntop
>>>>       Available versions:  3.3.9-r2 ~3.3.10-r1 {ipv6 ssl tcpd}
>>>>       Installed versions:  3.3.9-r2(14:11:46 06/25/09)(ssl tcpd -ipv6)
>>>>       Homepage:            http://www.ntop.org/ntop.html
>>>>       Description:         Network traffic analyzer with web interface
>>>>
>>>> $
>>>
>>> Also iftop and lsof with some clever regex-ing if you want to see what
>>> program
>>> drives the connection.
>>
>> nethogs will show active network activity
>
> Oops, I somehow sent that while composing. I was saying, nethogs will
> show active network activity by program, so you can see who is using
> network data at that moment, in a top-like fashion. Not a "how much
> has it used total", but a "how much is it using right now". Here's an
> example:
>
> NetHogs version 0.7.0
>
>   PID USER     PROGRAM                      DEV        SENT      RECEIVED
> 29641 root     git                          wlan0      0.929       0.649
> KB/sec
> 29620 root     /usr/bin/svn                 wlan0      0.187       0.269
> KB/sec
> 29509 paul     sshd: paul@pts/1             wlan0      0.883       0.136
> KB/sec
> 29612 root     git                          wlan0      0.119       0.131
> KB/sec
> 29591 root     /usr/bin/python              wlan0      0.000       0.000
> KB/sec
> 0     root     unknown TCP                             0.000       0.000
> KB/sec
>
>   TOTAL                                                2.118       1.185
> KB/sec

That's a great tool.  I couldn't get it to work with ppp0 until I
emerged the ~amd64 version.

- Grant



  reply	other threads:[~2009-07-07  8:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-05 10:33 [gentoo-user] Monitoring data usage Grant
2009-07-05 12:07 ` Stroller
2009-07-05 22:18   ` Mick
2009-07-06 13:45     ` Grant
2009-07-06 20:21       ` Dan Cowsill
2009-07-06 21:10     ` Paul Hartman
2009-07-06 21:13       ` Paul Hartman
2009-07-07  8:11         ` Grant [this message]
2009-07-06 23:32       ` Stroller
2009-07-07 10:16         ` Neil Bothwick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49bf44f10907070111i10356a14ncce238271dd74399@mail.gmail.com \
    --to=emailgrant@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox