LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-30-2012, 08:52 AM   #1
Aritz
LQ Newbie
 
Registered: Jul 2012
Posts: 3

Rep: Reputation: Disabled
Linux networking buffers/queue monitoring


I need to display network queues by knowing its current queue length, maximum que length and drop statistic.

As far as i know, there a re 3 main queues/buffers in Linux which are socket buffer, queue discipline/backlog and ring descriptor buffer.

i had some hard time how to know the current queu length in the buffer expecially for queue discipline/backlog and ring descriptor buffer. Anyone know how i can get all this infromation?

By using what tool? Ftrace? bash scripting? kernel module? process file?

I did my reasearch for almost 6 month but still i didnt find any answer. Thats why i'm asking in forum for my final resort!
 
Old 07-30-2012, 05:39 PM   #2
Argief
LQ Newbie
 
Registered: Mar 2010
Location: South Africa
Distribution: Undecided
Posts: 28

Rep: Reputation: 0
Quite an advanced Q for a linux newbie... Have you looked at iptables, I know you can filter input and create ques it may be what you need. I mean if you artificially create the ques, you should be able to read them in some file in /proc you will have to consult the man page. I'm not sure what you are trying, but you can have iptables log que lengths and monitor your kernel messages to perform some action?
 
Old 07-30-2012, 11:29 PM   #3
Aritz
LQ Newbie
 
Registered: Jul 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
I only want to monitor all the Linux buffers exist between TX to RX. I dont want to add any more queues. I try to find the bottleneck of the communication, where the drop are, what the state of those buffers at given time. Im working with communication between android phones.

Im monitoring my kernel message with ftrace. But i can't see the function invoke from the ring buffer which is in the NIC.

Maybe i can monitor the queue at socket buffer with proc/net/udp
and maybe i can count up how much bytes is occupied in the socket buffer by ftrace and reading out malloc_skb,put_skb,push_skb,kfree_skb etc and how many byte involved.

But im having difficulties with queueing discipline,backlog and tx and rx ring buffer since its in different level than socket buffer. Also, i dont know how can i get the information about how much buffers space is occupied at any given time. Where to look it?

Any idea? Anyone has been working with Linux networking buffers?
 
  


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
[SOLVED] Qmail queue Monitoring error in Nagios mahi_nix Linux - General 2 12-09-2011 01:54 AM


All times are GMT -5. The time now is 04:50 AM.

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