l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2003 Apr 15 08:20

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] TCP and Linux
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] TCP and Linux

> A question for you Linux networking gurus...
> Someone I know runs a game server daemon but doesn't have
> the source for it.  It has a bug that I suspect comes from
> doing send() calls to a nonblocking socket without checking
> for a buffer-full condition.  Therefore some sent data is
> lost.
> How would one enlarge whatever the kernel's output buffer is
> for the sent data?  I had this person try writing new values
> to /proc/sys/net/ipv4/tcp_wmem, but that does not seem to be
> the right tweak.

Since TCP/IP is an effective "sliding window protocol" you could try
extending the windows size. There was a kernel option for this during
config of a kernel in 1.2, 2.0, and 2.2, but I dont see it in 2.4. It was
something like "double maximum windows messaging size for TCP and sliding
window protocol." It was mostly useful for gateways/router (especially on
slower systems that were overworked with routing) and some sniffer tools.
By enabling this, the windows takes a bit longer to fill up while packets
are sent out to the remote host.

I can't seem to find it as a config option in 2.4 though. Closest thing I
can find is:


If this can be used to increase the windows size for TCP, it may help.

Consider that this may be an issue with max packet size across networks
that dont fragment and have max size less than oh, say 1450 or 1400. Mods
to interface's MTU may help too.

Many games that require lots of speed use UDP. I would then ask, "are you
sure the game uses TCP and not UDP?"


Version: 3.12
GCS/CM/IT$/LS/S/O$ !d--(++) !s !a+++(-----) C++$(++++) U++++$(+$) P+$>+++
L+++$(++) E W+++$(+) N+ o K w+$>++>+++ O-@ M+$ V-$>- !PS !PE Y+ PGP++
t@-(++) 5+@ X@ R- tv- b++ DI+++ D+ G--@ e+>++>++++ h(++)>+ r*>? z?
decode: http://www.ebb.org/ungeek/ about: http://www.geekcode.com/geek.html

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.