From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: * X-Spam-ASN: AS33070 50.56.128.0/17 X-Spam-Status: No, score=1.6 required=3.0 tests=AWL,HK_RANDOM_FROM, MSGID_FROM_MTA_HEADER,RDNS_NONE shortcircuit=no autolearn=no version=3.3.2 Path: news.gmane.org!not-for-mail From: Eric Wong Newsgroups: gmane.comp.lang.ruby.rainbows.general Subject: Re: c10k paradigm Date: Mon, 15 Apr 2013 18:30:11 +0000 Message-ID: <20130415183011.GA27317@dcvr.yhbt.net> References: <516BE872.5060006@objectdata.com.br> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1366051297 27907 80.91.229.3 (15 Apr 2013 18:41:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Apr 2013 18:41:37 +0000 (UTC) Cc: Alexandre Riveira To: Rainbows! list Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Mon Apr 15 20:41:41 2013 Return-path: Envelope-to: gclrrg-rainbows-talk@m.gmane.org X-Original-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Delivered-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Content-Disposition: inline In-Reply-To: <516BE872.5060006-VwDbj2YsoUp0ZRtCdD4y8VAUjnlXr6A1@public.gmane.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Errors-To: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Broken-Reverse-DNS: no host name found for IP address 50.56.192.79 Xref: news.gmane.org gmane.comp.lang.ruby.rainbows.general:468 Archived-At: Received: from [50.56.192.79] (helo=rubyforge.org) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1URoLV-0006Nd-7d for gclrrg-rainbows-talk@m.gmane.org; Mon, 15 Apr 2013 20:41:41 +0200 Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id E4C4F2E0FA; Mon, 15 Apr 2013 18:41:40 +0000 (UTC) Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by rubyforge.org (Postfix) with ESMTP id C9FFE2E0EA for ; Mon, 15 Apr 2013 18:30:14 +0000 (UTC) Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id EE63E1F43B; Mon, 15 Apr 2013 18:30:12 +0000 (UTC) Alexandre Riveira wrote: > What is A better paradigm for C10K paradigm > > > From what I'm seeing are the best: > > EventMachine (less memory and cpu usage) Not all DB adapters are fully non-blocking. If you want to do uncached filesystem I/O, you'll either have to use threads or block, too. > XEpollThreadPool (more memory and cpu usage but there are problems > when blocking io, for example database Maybe not CPU usage, but probably more memory. But this is probably the most compatible with existing apps/gems and Ruby stdlib (assuming you use Linux). Fwiw, I usually go with this one (or something close[1]) when uncached disk I/O is a requirement. If you're not on Linux, (nginx + (portable)ThreadPool) should get you close to XEpollThreadPool. Likewise for (nginx + (portable)ThreadSpawn) and XEpollThreadSpawn [1] http://bogomips.org/cmogstored/queues.txt _______________________________________________ Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org http://rubyforge.org/mailman/listinfo/rainbows-talk Do not quote signatures (like this one) or top post when replying