For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > September 2005 > Increasing TCP buffer space on AIX 5.1?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Increasing TCP buffer space on AIX 5.1?
Dan Stromberg

2005-09-28, 9:57 pm


Is there a way of increasing the amount of memory available for TCP
buffers, that could be used for large TCP windows?

Specifically, I'm trying to set a TCP window size of 2 megabytes using
SO_SNDBUF, but I get an error like:

esmf04m-strombrg> ~/npf/pnetcat -w $[2*1024*1024] -O seki.nac.uci.edu 5432 -i -v < /dev/zero
Traceback (most recent call last):
File "/u/strombrg/npf/pnetcat", line 299, in ?
output_socket.setsockopt(socket.SOL_SOCKET, socket.SO_SNDBUF, tcp_window_size)
File "<string>", line 1, in setsockopt
socket.error: (74, 'No buffer space available')
Tue Sep 27 18:47:43

....but using just 1 megabyte works fine.

(For info about TCP buffers, please see Stanford's excellent course
notes: http://www.stanford.edu/class/cs244...6_Transport.ppt -
and there's a web version available via google, or openoffice can
convert it to html or pdf, and if you want a PalmOS .pdb of it, drop me
a note :)

Thanks!
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com