<!-- MHonArc v2.4.4 --> <!--X-Subject: [MUD-Dev] Re: [Tech] socket slowdown solved --> <!--X-From-R13: X Q Znjerapr <pynjNxnatn.ah> --> <!--X-Date: Wed, 14 Oct 1998 23:02:43 -0700 --> <!--X-Message-Id: E0zTgUl-0004pH-00#mail,kanga.nu --> <!--X-Content-Type: text/plain --> <!--X-Reference: 199810140526.XAA16572@ami-cg.GraySage.Edmonton.AB.CA --> <!--X-Head-End--> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>MUD-Dev message, [MUD-Dev] Re: [Tech] socket slowdown solved</title> <!-- meta name="robots" content="noindex,nofollow" --> <link rev="made" href="mailto:claw#kanga,nu"> </head> <body background="/backgrounds/paperback.gif" bgcolor="#ffffff" text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000"> <font size="+4" color="#804040"> <strong><em>MUD-Dev<br>mailing list archive</em></strong> </font> <br> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] <br clear=all><hr> <!--X-Body-Begin--> <!--X-User-Header--> <!--X-User-Header-End--> <!--X-TopPNI--> Date: [ <a href="msg00215.html">Previous</a> | <a href="msg00217.html">Next</a> ] Thread: [ <a href="msg00196.html">Previous</a> | <a href="msg00192.html">Next</a> ] Index: [ <A HREF="author.html#00216">Author</A> | <A HREF="#00216">Date</A> | <A HREF="thread.html#00216">Thread</A> ] <!--X-TopPNI-End--> <!--X-MsgBody--> <!--X-Subject-Header-Begin--> <H1>[MUD-Dev] Re: [Tech] socket slowdown solved</H1> <HR> <!--X-Subject-Header-End--> <!--X-Head-of-Message--> <UL> <LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI> <LI><em>Subject</em>: [MUD-Dev] Re: [Tech] socket slowdown solved </LI> <LI><em>From</em>: J C Lawrence <<A HREF="mailto:claw#kanga,nu">claw#kanga,nu</A>></LI> <LI><em>Date</em>: Wed, 14 Oct 1998 23:02:43 -0700</LI> <LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI> </UL> <!--X-Head-of-Message-End--> <!--X-Head-Body-Sep-Begin--> <HR> <!--X-Head-Body-Sep-End--> <!--X-Body-of-Message--> <PRE> On Tue, 13 Oct 1998 23:26:06 -0600 Chris Gray<cg#ami-cg,GraySage.Edmonton.AB.CA> wrote: > Back in August (I was checking the archives), under the thread > "Ethernet NICS, maximum connections..mud testing", I had indicated a > performance problem I was having with communication between my > server and client, when running on the same Linux machine. Very > little of the CPU time was used, but there was no explanation for > the slowdown. ... > ...I came across the > TCP_NODELAY option to setsockopt for the TCP protocol layer. Since > the work stuff is UDP, not TCP, that was no help, but I decided to > try it on my test client and server. Voila! Drastic improvement in > performance. Stevens of course has a nice bit to say about this in his TCP/IP books (I'd quote but my copies are at work and I'm not). Vic Metcalfe's "Programming UNIX Sockets in C - Frequently Asked Questions" also covers this area, its strictures, the relevant and affecting RFC's, and implementation concerns fairly well. Among a great many other places you can find the FAQ at: <A HREF="http://www.softlab.ntua.gr/unix/unix-socket-faq/unix-socket-faq.html">http://www.softlab.ntua.gr/unix/unix-socket-faq/unix-socket-faq.html</A> With most of the good stuff from question 2.11 thru 2.17, starting at: <A HREF="http://www.softlab.ntua.gr/unix/unix-socket-faq/unix-socket-faq-2.html">http://www.softlab.ntua.gr/unix/unix-socket-faq/unix-socket-faq-2.html</A> Aside: I found the (brief) discussion of out-of-band data streams in those sections and later questions (cf 5.8) useful for my musings on error-tolerant protocol designs. > Now I can get on with real work on my MUD! Good show! -- J C Lawrence Internet: claw#kanga,nu ----------(*) Internet: coder#kanga,nu ...Honourary Member of Clan McFud -- Teamer's Avenging Monolith... </PRE> <!--X-Body-of-Message-End--> <!--X-MsgBody-End--> <!--X-Follow-Ups--> <HR> <!--X-Follow-Ups-End--> <!--X-References--> <UL><LI><STRONG>References</STRONG>: <UL> <LI><STRONG><A NAME="00196" HREF="msg00196.html">[MUD-Dev] [Tech] socket slowdown solved</A></STRONG> <UL><LI><EM>From:</EM> Chris Gray <cg#ami-cg,GraySage.Edmonton.AB.CA></LI></UL></LI> </UL></LI></UL> <!--X-References-End--> <!--X-BotPNI--> <UL> <LI>Prev by Date: <STRONG><A HREF="msg00215.html">[MUD-Dev] Network float format (RFC 1014)</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg00217.html">[MUD-Dev] Bruce Sterling on Virtual Community goals</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg00196.html">[MUD-Dev] [Tech] socket slowdown solved</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg00192.html">[MUD-Dev] Re: Trusting the Client (Re: Laws of Online World Design)</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#00216"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#00216"><STRONG>Thread</STRONG></A></LI> </UL> </LI> </UL> <!--X-BotPNI-End--> <!--X-User-Footer--> <!--X-User-Footer-End--> <ul><li>Thread context: <BLOCKQUOTE><UL> <LI><STRONG>[MUD-Dev] Re: Trusting the Client (Re: Laws of Online World D esign)</STRONG>, <EM>(continued)</EM> <ul compact> <ul compact> <ul compact> <ul compact> <LI><strong><A NAME="00260" HREF="msg00260.html">[MUD-Dev] Re: Trusting the Client (Re: Laws of Online World D esign)</A></strong>, Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Tue 20 Oct 1998, 03:31 GMT <UL> <LI><strong><A NAME="00262" HREF="msg00262.html">[MUD-Dev] Re: Trusting the Client (Re: Laws of Online World</A></strong>, Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Tue 20 Oct 1998, 04:37 GMT </LI> <LI><strong><A NAME="00274" HREF="msg00274.html">[MUD-Dev] Re: Trusting the Client (Re: Laws of Online World D esign)</A></strong>, Steve Sparks <a href="mailto:ssparks#enigma,sss.org">ssparks#enigma,sss.org</a>, Tue 20 Oct 1998, 17:09 GMT </LI> </UL> </LI> </ul> </ul> </ul> </ul> </LI> <LI><strong><A NAME="00196" HREF="msg00196.html">[MUD-Dev] [Tech] socket slowdown solved</A></strong>, Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Wed 14 Oct 1998, 05:25 GMT <UL> <LI><strong><A NAME="00216" HREF="msg00216.html">[MUD-Dev] Re: [Tech] socket slowdown solved</A></strong>, J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Thu 15 Oct 1998, 06:02 GMT </LI> </UL> </LI> <LI><strong><A NAME="00192" HREF="msg00192.html">[MUD-Dev] Re: Trusting the Client (Re: Laws of Online World Design)</A></strong>, Koster, Raph <a href="mailto:rkoster#origin,ea.com">rkoster#origin,ea.com</a>, Tue 13 Oct 1998, 23:14 GMT <UL> <li><Possible follow-up(s)><br> <LI><strong><A NAME="00194" HREF="msg00194.html">[MUD-Dev] Re: Trusting the Client (Re: Laws of Online World Design)</A></strong>, Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Wed 14 Oct 1998, 01:41 GMT <UL> <LI><strong><A NAME="00202" HREF="msg00202.html">[MUD-Dev] Re: Trusting the Client (Re: Laws of Online World Design)</A></strong>, J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 14 Oct 1998, 17:32 GMT <UL> <LI><strong><A NAME="00205" HREF="msg00205.html">[MUD-Dev] Re: Trusting the Client (Re: Laws of Online World Design)</A></strong>, Jon Leonard <a href="mailto:jleonard#divcom,slimy.com">jleonard#divcom,slimy.com</a>, Wed 14 Oct 1998, 19:21 GMT </LI> </UL> </LI> </UL> </LI> </UL> </LI> </UL></BLOCKQUOTE> </ul> <hr> <center> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] </center> <hr> </body> </html>