From: Daniel Borkmann <dborkman@redhat.com>
To: Cong Wang <cwang@twopensource.com>
Cc: "Ken O'Brien" <ken@kenobrien.org>,
Network Development <netdev@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: proc net statistics
Date: Mon, 07 Apr 2014 19:25:44 +0200 [thread overview]
Message-ID: <5342DF98.6070000@redhat.com> (raw)
In-Reply-To: <CAHA+R7O+1gP4U-YiBHdJeEO1hvH41NcGoRZ5iW_W25CBaXWbnA@mail.gmail.com>
On 04/07/2014 07:19 PM, Cong Wang wrote:
> On Mon, Apr 7, 2014 at 10:10 AM, Ken O'Brien <ken@kenobrien.org> wrote:
>>
>> Ok, so then, is there a way to read per process network statistics in the proc filesystem?
>
> AFAIK, we only have per-socket and per-netdev statistics, there is no
> per-process one, you probably want to try cgroup, or put these processes
> into a namespace.
You can do that with cgroups, e.g. xt_cgroup. Samsung/Tizen OS seems to make
use of this ...
https://git.kernel.org/cgit/linux/kernel/git/davem/net.git/commit/?id=a00e76349f3564bb8129fc0510dfd93248c3084d
prev parent reply other threads:[~2014-04-07 17:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-07 10:39 proc net statistics Ken O'Brien
2014-04-07 17:06 ` Cong Wang
[not found] ` <1396890659.3063.4.camel@mjolnir.site>
2014-04-07 17:19 ` Cong Wang
2014-04-07 17:25 ` Daniel Borkmann [this message]
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=5342DF98.6070000@redhat.com \
--to=dborkman@redhat.com \
--cc=cwang@twopensource.com \
--cc=ken@kenobrien.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@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;
as well as URLs for NNTP newsgroup(s).