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 |
You might find some useful information in this excerpt from the Absolute Bash-scripting Guide:
http://tldp.org/LDP/abs/html/procref1.html |
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 |
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. |