caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Mattias Engdegård" <mattias@virtutech.se>
To: joelr1@gmail.com
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] ocamlnet and kernel poll
Date: Thu, 11 Sep 2008 16:37:35 +0200 (CEST)	[thread overview]
Message-ID: <20080911143735.EF7EC29B2A@kicki.hq.vtech> (raw)
In-Reply-To: <01677251-3A8D-4DCA-9E39-7D17FAC92645@gmail.com> (message from Joel Reymont on Thu, 11 Sep 2008 13:43:55 +0100)

>Suppose I want to build a server that runs on top of ocamlnet and  
>handles 10k+ connections.
>
>ocamlnet seems to use select exclusively.
>
>Any suggestions on how to add kernel poll? Is this possible even?

There is an ocaml wrapper for libevent: http://www.xs4all.nl/~mmzeeman/ocaml/

With that many connections, you may actually benefit from multiple
processors, which in the OCaml world usually means multiple processes.

There's nothing wrong with serving myriads of connections from a
single process, especially when using a strongly typed language, but
parallelism can be useful. On the other hand, one process per
connection may be inefficient as well - a hybrid N:M solution is
probably best.


  parent reply	other threads:[~2008-09-11 14:37 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-11 12:43 Joel Reymont
2008-09-11 12:51 ` Sylvain Le Gall
2008-09-11 13:42 ` [Caml-list] " Gerd Stolpmann
2008-09-11 14:04 ` Markus Mottl
2008-09-11 14:37 ` Mattias Engdegård [this message]
2008-09-11 15:32   ` Markus Mottl
2008-09-11 15:43     ` Joel Reymont
2008-09-11 15:50       ` Sylvain Le Gall
2008-09-11 16:31       ` [Caml-list] " Markus Mottl
2008-09-24 15:05         ` Rich Neswold
2008-09-24 15:43           ` Gabriel Kerneis
2008-09-26 15:53             ` Rich Neswold
2008-09-24 17:28           ` Markus Mottl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080911143735.EF7EC29B2A@kicki.hq.vtech \
    --to=mattias@virtutech.se \
    --cc=caml-list@yquem.inria.fr \
    --cc=joelr1@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).