From: Stephen Hemminger <stephen@networkplumber•org>
To: Matthew Hall <mh@mhcomputing•net>
Cc: netdev@vger•kernel.org
Subject: Re: per-PID network stats files in /proc
Date: Tue, 24 Sep 2013 14:04:35 -0700 [thread overview]
Message-ID: <20130924140435.5881cf76@nehalam.linuxnetplumber.net> (raw)
In-Reply-To: <20130924204442.GA5074@mhcomputing.net>
On Tue, 24 Sep 2013 13:44:42 -0700
Matthew Hall <mh@mhcomputing•net> wrote:
> On Tue, Sep 24, 2013 at 01:41:57PM -0700, Stephen Hemminger wrote:
> > No. because most of these would be associated with global state.
> > Even sockets can be shared between PID's.
>
> OK. So if this is true, then I feel compelled to ask, why does
> /proc/PID/net/snmp exist in the first place, if it would never really work?
>
> Thanks,
> Matthew.
/proc/PID/net is symlink to the processes network namespace.
You could do what you want by putting each process in own network
namespace, but that might be more work than you want to bother with.
next prev parent reply other threads:[~2013-09-24 21:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-24 20:15 per-PID network stats files in /proc Matthew Hall
2013-09-24 20:41 ` Stephen Hemminger
2013-09-24 20:44 ` Matthew Hall
2013-09-24 21:02 ` Eric Dumazet
2013-09-24 21:04 ` Stephen Hemminger [this message]
2013-09-24 21:22 ` Matthew Hall
2013-09-26 20:12 ` Matthew Hall
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=20130924140435.5881cf76@nehalam.linuxnetplumber.net \
--to=stephen@networkplumber$(echo .)org \
--cc=mh@mhcomputing$(echo .)net \
--cc=netdev@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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