LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-03-2008, 06:32 AM   #1
linuxdoniv
Member
 
Registered: Mar 2008
Posts: 63

Rep: Reputation: 15
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
 
Old 03-04-2008, 03:09 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

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

http://tldp.org/LDP/abs/html/procref1.html
 
Old 03-05-2008, 03:56 AM   #3
linuxdoniv
Member
 
Registered: Mar 2008
Posts: 63

Original Poster
Rep: Reputation: 15
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
 
Old 03-05-2008, 04:11 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Network Traffic Stops After High Traffic windisch Linux - Networking 6 12-17-2007 06:45 PM
Boot hang after 'proc on /proc type proc (rw)' Hagoromo Slackware 13 10-05-2007 06:03 PM
Any way to monitor network traffic without accessing /proc/net? Scorper Linux - Networking 1 11-30-2006 09:03 PM
LXer: Darkstat - Network Traffic Analyzer or Network Monitor LXer Syndicated Linux News 0 07-04-2006 09:33 AM
When the network traffic increase over some limit network works interruptedly therrman Linux - Hardware 0 11-15-2005 03:23 AM


All times are GMT -5. The time now is 04:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration