Advertisement

Slow transmission with Linux

Started by April 14, 2002 03:47 AM
2 comments, last by division 22 years, 9 months ago
Hi everybody, I''ve coded a server application for SCO-UNIX. It works well and even fast. I ported it to Linux and now it''s awfully slow. There isn''t a continous data stream anymore, but the packets arrive in pushes... I have no idea were my fault is. Thank you for advice.
Are you using TCP or UDP? You might be falling foul of Nagle compression.


Martin Piper
Argonaut Games plc.
Martin Piper
Advertisement
Hello Martin,

thank you for your answer. But I don''t know the meaning of "falling foul of Nagle compression". Can you say it in other words please?

By the way, I''m sending/receiving packets of 256 bytes using TCP.

Greetings from Germany
"Read the tcp(7) manpage. Enabling the TCP_NODELAY socket option disables nagle per socket. The Config option is a noop and hasn''t done anything for a long time."

This is a quote from somewhere else, so don''t give me credit, I just did a search to hunt down the solution to your problem.

Nagle compression occurs to save the bandwidth used and would appear to be occuring in your situation, particularly since everything seems to be coming through in packet bunches, or the router is flaky... have you tried to isolate the network to get rid of networking as a possible cause yet?


This topic is closed to new replies.

Advertisement