Re: Network traffic per process
- From: David Schwartz <davids@xxxxxxxxxxxxx>
- Date: Mon, 2 Jun 2008 12:35:37 -0700 (PDT)
On Jun 2, 9:18 am, orium <oriu...@xxxxxxxxx> wrote:
Hi,
I am writing a simple process monitor, the only thing i am interested
that i couldn't obtain is the number of bytes read/written through the
network interface. Is there any file in the proc fs that can give me
that information,? Or some system call?
Thank you,
Diogo Sousa
I don't think the question is meaningful. For example, suppose two
processes share a file descriptor for a TCP connection. One goes to
write 10 bytes, but a packet is not send immediately due to Nagle.
Then the other writes 10 bytes, and a packet containing the 20 bytes
of data is sent. How do you account for this packet?
Suppose a packet containing 10 bytes is received on a network
connection shared by two processes. Both processes terminate without
reading the data. How do you account for this?
There doesn't seem to be any meaningful way to associate bytes sent
through a network interface with a process.
DS
.
- References:
- Network traffic per process
- From: orium
- Network traffic per process
- Prev by Date: Re: Making device driver to run automatically
- Next by Date: Re: Making device driver to run automatically
- Previous by thread: Network traffic per process
- Index(es):
Relevant Pages
|