Networking Forums

Networking Forums > Computer Networking > Linux Networking > What Causes TCP Send Queue to Grow ("netstat" -an output)?

Reply
Thread Tools Display Modes

What Causes TCP Send Queue to Grow ("netstat" -an output)?

 
 
John Davis
Guest
Posts: n/a

 
      08-13-2003, 06:36 PM
Hi,

I keep seeing the Send Queue Column growing from "netstat -an", can
someone tell me what causes this to happen? I believe in RH Linux that
the buffer is at 128K, but I'm not sure. We have been seeing some
problems lately with performance, but am not sure how to pinpoint
this.

The column with the 53576 number seems very problematic...

kernel - 2.4.20 on RH Linux 7.3

-----------------------------------------------

Active Internet connections (servers and established)
tcp 0 53576 172.22.98.99:34930 172.27.23.99:8400


Thanks!
 
Reply With Quote
 
 
 
 
David Efflandt
Guest
Posts: n/a

 
      08-13-2003, 11:26 PM
On 13 Aug 2003 11:36:36 -0700, John Davis <(E-Mail Removed)> wrote:
> I keep seeing the Send Queue Column growing from "netstat -an", can
> someone tell me what causes this to happen? I believe in RH Linux that
> the buffer is at 128K, but I'm not sure. We have been seeing some
> problems lately with performance, but am not sure how to pinpoint
> this.
>
> The column with the 53576 number seems very problematic...
>
> kernel - 2.4.20 on RH Linux 7.3
>
> -----------------------------------------------
>
> Active Internet connections (servers and established)
> tcp 0 53576 172.22.98.99:34930 172.27.23.99:8400


What we have hear is a failure to communicate. It means that either
172.27.23.99 is not accepting data right now, or there is some problem
between the two (your nic, the other nic, or network/routing between
them). Recv-Q and Send-Q should normally be near zero.

If these are dummy IPs and actually connects over the internet, it is not
uncommon to have occasional router interruptions or looping (traceroute
the other IP when that happens to see if that gives a clue).

--
David Efflandt - All spam ignored http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/
 
Reply With Quote
 
Terry Sanders
Guest
Posts: n/a

 
      08-14-2003, 09:48 AM

"John Davis" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) m...
> Hi,
>
> I keep seeing the Send Queue Column growing from "netstat -an", can
> someone tell me what causes this to happen? I believe in RH Linux that
> the buffer is at 128K, but I'm not sure. We have been seeing some
> problems lately with performance, but am not sure how to pinpoint
> this.
>
> The column with the 53576 number seems very problematic...
>
> kernel - 2.4.20 on RH Linux 7.3
>

The buffer may be 128k, but linux assumes half the buffer is used for
kernal structures so you only have 64k of space.

Terry


 
Reply With Quote
 
John Davis
Guest
Posts: n/a

 
      08-14-2003, 01:54 PM
How would I go about increasing the buffer size then? Does that mean
it's 128K buffer in total for sending/receiving? I may need to
increase these as we have been having some issues in the office.



"Terry Sanders" <(E-Mail Removed)> wrote in message news:<FVI_a.6497$(E-Mail Removed)>...
> "John Davis" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) m...
> > Hi,
> >
> > I keep seeing the Send Queue Column growing from "netstat -an", can
> > someone tell me what causes this to happen? I believe in RH Linux that
> > the buffer is at 128K, but I'm not sure. We have been seeing some
> > problems lately with performance, but am not sure how to pinpoint
> > this.
> >
> > The column with the 53576 number seems very problematic...
> >
> > kernel - 2.4.20 on RH Linux 7.3
> >

> The buffer may be 128k, but linux assumes half the buffer is used for
> kernal structures so you only have 64k of space.
>
> Terry

 
Reply With Quote
 
Terry Sanders
Guest
Posts: n/a

 
      08-14-2003, 03:23 PM
You can use setsockopt() to change the size of the send/receive buffers
within an application and sysctl to change default system settings for
all applications. See the man page socket(7) which gives details
on what values to change.

"John Davis" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) m...
> How would I go about increasing the buffer size then? Does that mean
> it's 128K buffer in total for sending/receiving? I may need to
> increase these as we have been having some issues in the office.
>
>
>
> "Terry Sanders" <(E-Mail Removed)> wrote in message

news:<FVI_a.6497$(E-Mail Removed)>...
> > The buffer may be 128k, but linux assumes half the buffer is used for
> > kernal structures so you only have 64k of space.
> >
> > Terry



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: what does "::ffff" mean in netstat output? Rick Jones Linux Networking 1 01-28-2010 10:50 AM
Re: what does "::ffff" mean in netstat output? David W. Hodgins Linux Networking 0 01-27-2010 07:29 PM
interpreting "input ICMP message failed" / netstat skendric@fhcrc.org Linux Networking 0 04-23-2009 05:56 PM
netstat -s output: "packets pruned" and "packets collapsed" roybatty Linux Networking 0 07-20-2007 08:44 PM
Help Needed: One "recv()" contains data sent by many "send()" ... Shashank Welankar Windows Networking 0 05-18-2004 01:17 PM



1 2 3 4 5 6 7 8 9 10 11