From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id F206CBB84 for ; Thu, 11 Sep 2008 14:51:56 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiUCAMixyEjAXQIniGdsb2JhbACSZAEBAQ8gpS+BZA X-IronPort-AV: E=Sophos;i="4.32,379,1217800800"; d="scan'208";a="14828641" Received: from concorde.inria.fr ([192.93.2.39]) by mail2-smtp-roc.national.inria.fr with ESMTP; 11 Sep 2008 14:51:56 +0200 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id m8BCpqo6000492 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Thu, 11 Sep 2008 14:51:56 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhsBAJuwyEhQW+UCgWdsb2JhbACSZAEBECAEpTCBZA X-IronPort-AV: E=Sophos;i="4.32,379,1217800800"; d="scan'208";a="29064778" Received: from main.gmane.org (HELO ciao.gmane.org) ([80.91.229.2]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/AES256-SHA; 11 Sep 2008 14:51:56 +0200 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KdleJ-0002SB-T3 for caml-list@inria.fr; Thu, 11 Sep 2008 12:51:52 +0000 Received: from ks300734.kimsufi.com ([91.121.65.225]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Sep 2008 12:51:51 +0000 Received: from sylvain by ks300734.kimsufi.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Sep 2008 12:51:51 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Sylvain Le Gall Subject: Re: ocamlnet and kernel poll Date: Thu, 11 Sep 2008 12:51:39 +0000 (UTC) Message-ID: References: <01677251-3A8D-4DCA-9E39-7D17FAC92645@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ks300734.kimsufi.com User-Agent: slrn/pre0.9.9-102 (Linux) Sender: news X-Miltered: at concorde with ID 48C91468.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; le-gall:01 ocamlnet:01 ocamlnet:01 wrote:01 kernel:02 kernel:02 executable:03 seems:03 handles:03 fork:05 suggestions:07 suppose:09 top:89 maybe:10 bit:11 On 11-09-2008, Joel Reymont wrote: > 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? > I am not sure about what kind of server you want to create, but for this high number of connection, I think "fork"ing a little bit will help you to have more connection and is to my mind more secure et al. Handling more than 10k connection in a single executable is not a "general" good idea... But maybe in your case, you have no choice. Regards, Sylvain Le Gall