msg00249.html

2000Q1/msg00249.html · 8.0 KB

From the archive 2000Q1.zip

Download the archive   « Back to the archive contents

<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Question about multithreaded servers -->
<!--X-From-R13: =?vfb&#45;8859&#45;1?C?Szvy_Svse=S9z?= <rzvyNjvaqu.pbz> -->
<!--X-Date: Mon, 31 Jan 2000 09:29:38 &#45;0800 -->
<!--X-Message-Id: 0B8B193792F5D111B1BB00A0C9B0FC351C2A97#exchange,windh.net -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Question about multithreaded servers</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:emil#windh,com">
</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>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00250.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00251.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00178.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00251.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00249">Author</A>
&nbsp;|&nbsp;<A HREF="#00249">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00249">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Question about multithreaded servers</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>'" &lt;<A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A>&gt;</LI>
<LI><em>Subject</em>: Re: [MUD-Dev] Question about multithreaded servers </LI>
<LI><em>From</em>: Emil Eifrém &lt;<A HREF="mailto:emil#windh,com">emil#windh,com</A>&gt;</LI>
<LI><em>Date</em>: Mon, 31 Jan 2000 10:37:18 +0100</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Sender</em>: <A HREF="mailto:mud-dev-admin#kanga,nu">mud-dev-admin#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>
&gt; -----Original Message-----
&gt; From: J C Lawrence [<A  HREF="mailto:claw#kanga,nu">mailto:claw#kanga,nu</A>]
&gt; Sent: Sunday, January 30, 2000 8:22 PM
&gt; To: mud-dev#kanga,nu
&gt; Subject: Re: [MUD-Dev] Question about multithreaded servers 
&gt; 

[snip]

&gt; Most current OSes do not handle large numbers of threads well,
&gt; meaning that if you player base grows, you'll start running into
&gt; scaling problems with your OS as your thread count rises
&gt; proportionally and your OS starts gagging.

Very true. For a hobby project, however, this may not be that big of a
problem. For my own project, I have chosen a combination of OS and language
that's probably as slow and non-scalable as it goes (Linux + Java) and
simple tests show that I can do at least 2500 concurrent connections before
the performance impact on the rest of the server is too high.

And this is on fairly modest hardware, running an operating system that
doesn't scale all that well in this particular domain (yet) and with the
added layer of a Java virtual machine. And my threading model penalizes me
with twice as much threads as connections [no asynchronous I/O in Java :(].
A server written in C or C++ can probably do *much* better than this. So for
the hobby project, I think it may be a reasonable choice with one thread per
connection.

As a quick FYI (I know others on the list work on Java-based
implementations), IBM just published a very interesting paper called "Java,
threads, and scheduling in Linux" that discusses these issues:

	<A  HREF="http://www-4.ibm.com/software/developer/library/java2/index.html">http://www-4.ibm.com/software/developer/library/java2/index.html</A>

Dan Kegel has a good page on the "C10k problem," or how to handle over
10'000 concurrent connections in Linux. I think it's in the library but
here's a shortcut:

	<A  HREF="http://www.kegel.com/c10k.html">http://www.kegel.com/c10k.html</A>

---
Emil Eifrem [emil#windh,net]
Java Developer, .windh AB 



_______________________________________________
MUD-Dev maillist  -  MUD-Dev#kanga,nu
<A  HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</A>

</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00251" HREF="msg00251.html">Re: [MUD-Dev] Question about multithreaded servers</A></strong>
<ul compact><li><em>From:</em> J C Lawrence &lt;claw#kanga,nu&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00250.html">RE: player politics (was RE: [MUD-Dev] An introduction...)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00251.html">Re: [MUD-Dev] Question about multithreaded servers</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00178.html">Re: [MUD-Dev] Question about multithreaded servers</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00251.html">Re: [MUD-Dev] Question about multithreaded servers</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00249"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00249"><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>RE: [MUD-Dev] Question about multithreaded servers</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00147" HREF="msg00147.html">RE: [MUD-Dev] Question about multithreaded servers</A></strong>, 
Greg Underwood <a href="mailto:gunderwood#donet,com">gunderwood#donet,com</a>, Wed 19 Jan 2000, 04:32 GMT
</LI>
</ul>
</ul>
<LI><strong><A NAME="00149" HREF="msg00149.html">RE: [MUD-Dev] Question about multithreaded servers</A></strong>, 
cg <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Wed 19 Jan 2000, 05:33 GMT
<UL>
<LI><strong><A NAME="00151" HREF="msg00151.html">Re: [MUD-Dev] Question about multithreaded servers</A></strong>, 
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Wed 19 Jan 2000, 05:48 GMT
<UL>
<LI><strong><A NAME="00178" HREF="msg00178.html">Re: [MUD-Dev] Question about multithreaded servers</A></strong>, 
Greg Underwood <a href="mailto:gunderwood#donet,com">gunderwood#donet,com</a>, Thu 20 Jan 2000, 05:59 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00249" HREF="msg00249.html">Re: [MUD-Dev] Question about multithreaded servers</A></strong>, 
Emil Eifrém <a href="mailto:emil#windh,com">emil#windh,com</a>, Mon 31 Jan 2000, 17:29 GMT
<UL>
<LI><strong><A NAME="00251" HREF="msg00251.html">Re: [MUD-Dev] Question about multithreaded servers</A></strong>, 
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Mon 31 Jan 2000, 18:09 GMT
</LI>
</UL>
</LI>
</ul>
</LI>
<LI><strong><A NAME="00079" HREF="msg00079.html">[MUD-Dev] A quick business question...</A></strong>, 
Geoffrey A. MacDougall <a href="mailto:geoffrey#poptronik,com">geoffrey#poptronik,com</a>, Mon 10 Jan 2000, 21:20 GMT
<UL>
<LI><strong><A NAME="00080" HREF="msg00080.html">Re: [MUD-Dev] A quick business question...</A></strong>, 
Matthew Mihaly <a href="mailto:diablo#best,com">diablo#best,com</a>, Mon 10 Jan 2000, 21:37 GMT
<UL>
<LI><strong><A NAME="00082" HREF="msg00082.html">Re: [MUD-Dev] A quick business question...</A></strong>, 
Darrin Hyrup <a href="mailto:shades#mythicgames,com">shades#mythicgames,com</a>, Mon 10 Jan 2000, 22:57 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>

Site Stats

Snippets: 1791
Codebases: 571