LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   updation of /proc about the network traffic (https://www.linuxquestions.org/questions/linux-newbie-8/updation-of-proc-about-the-network-traffic-625335/)

linuxdoniv 03-03-2008 05:32 AM

updation of /proc about the network traffic
 
Hi,

Could anybody elaborate on how exactly the network traffic information is updated in /proc/process_id directory. I could not find much in task_struct
about the network traffic.

Thanks for any help

bigrigdriver 03-04-2008 02:09 PM

You might find some useful information in this excerpt from the Absolute Bash-scripting Guide:

http://tldp.org/LDP/abs/html/procref1.html

linuxdoniv 03-05-2008 02:56 AM

Hi,

Actually, in /proc, the information about the network traffic is updated but about the entire system , not on single process basis.. In task_struct , there are no links to the network information structures.. so how exactly can we know about the traffic generated by a process...

Thanks for any help

unSpawn 03-05-2008 03:11 AM

Then you'll have to do per-process accounting. Depending on logging purpose and application you could use some iptables rules ("owner" module?) or a traffic dissector.


All times are GMT -5. The time now is 03:23 AM.