From: "Markus Mottl" <markus.mottl@gmail.com>
To: "Mattias Engdegård" <mattias@virtutech.se>
Cc: joelr1@gmail.com, caml-list@yquem.inria.fr
Subject: Re: [Caml-list] ocamlnet and kernel poll
Date: Thu, 11 Sep 2008 11:32:58 -0400 [thread overview]
Message-ID: <f8560b80809110832j3dfb077by655511b4b596a778@mail.gmail.com> (raw)
In-Reply-To: <20080911143735.EF7EC29B2A@kicki.hq.vtech>
On Thu, Sep 11, 2008 at 10:37 AM, Mattias Engdegård
<mattias@virtutech.se> wrote:
> 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.
Note that if your application is I/O-intensive, you can already
exploit parallelism within one process. Use bigstrings as buffers and
perform I/O outside of the OCaml-lock if releasing it (depends on
I/O-size) is more efficient. That way you can have many threads
performing I/O-system calls simultaneously.
Regards,
Markus
--
Markus Mottl http://www.ocaml.info markus.mottl@gmail.com
next prev parent reply other threads:[~2008-09-11 15:33 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
2008-09-11 15:32 ` Markus Mottl [this message]
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=f8560b80809110832j3dfb077by655511b4b596a778@mail.gmail.com \
--to=markus.mottl@gmail.com \
--cc=caml-list@yquem.inria.fr \
--cc=joelr1@gmail.com \
--cc=mattias@virtutech.se \
/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