From: Arnd Hannemann <arnd@arndnet.de>
To: Irfan Habib <irfan.habib@gmail.com>
Cc: Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: Fwd: Any way to find the network usage by a process?
Date: Tue, 03 Oct 2006 17:33:50 +0200 [thread overview]
Message-ID: <452282DE.5020600@arndnet.de> (raw)
In-Reply-To: <3420082f0610030114o4c6998en907bccce81d28c59@mail.gmail.com>
Irfan Habib schrieb:
> Hi,
>
> Is there any method either kernel or user level which tells me which
> process is generating how much traffic from a machine. For example if
> some process is flooding the network, then I would like to know which
> process (PID ideally), is generating the most traffic.
If you want to monitor just specific PIDs you could easily do this with
the "Owner match support" from netfilter. However if you also want to
monitor traffic for all processes that may be created in the future this
is probably a bit tricky. Off course you could try to add a rule for
every possible PID ;-)
Seriously, you could write a daemon which permanently scans for new or
died processes and which adds/deletes appropriate netfilter rules...
Best regards
Arnd Hannemann
next prev parent reply other threads:[~2006-10-03 15:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3420082f0610030114o5b44b8ak7797483e02002614@mail.gmail.com>
2006-10-03 8:14 ` Fwd: Any way to find the network usage by a process? Irfan Habib
2006-10-03 15:33 ` Arnd Hannemann [this message]
2006-10-03 15:47 ` Jose R. Santos
2006-10-04 20:54 ` Mike Mason
2006-10-05 21:22 ` Frank Ch. Eigler
2006-10-05 23:28 ` Mike Mason
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=452282DE.5020600@arndnet.de \
--to=arnd@arndnet.de \
--cc=irfan.habib@gmail.com \
--cc=linux-kernel@vger.kernel.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