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.3 required=3.0 tests=MSGID_FROM_MTA_HEADER, RDNS_NONE shortcircuit=no autolearn=no version=3.3.2 Path: news.gmane.org!not-for-mail From: Alexandre Riveira Newsgroups: gmane.comp.lang.ruby.rainbows.general Subject: Re: memory usage Date: Tue, 22 Oct 2013 18:08:40 +0000 Message-ID: <5266BF28.5020505@objectdata.com.br> References: <52663744.6040600@objectdata.com.br> <20131022160930.GA3020@dcvr.yhbt.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1382472540 24493 80.91.229.3 (22 Oct 2013 20:09:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Oct 2013 20:09:00 +0000 (UTC) To: "Rainbows! list" Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Tue Oct 22 22:09:05 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 X-Greylist: delayed 30887 seconds by postgrey-1.31 at rubyforge; Tue, 22 Oct 2013 20:08:57 UTC X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=nLHURg6LG8aAqCOh1z3pc59EGEm/FLFrpwcEzuBOkEQ=; b=S2S99hWuwQNCA0pp6qWLQaJD2td2WuunXDyA0GE6vKOsdNawKe8o1zb5kknpd2cTrt P3XIil2FBCq4kf14qHeFCZR21BM8DQ8AuwRlq/mD0clINEoSiZZYNSXHYrcdXl8AfSps Dz+65blKT+5cjEONru1c3eNjAvyUmRMNxClSELesqe3rLWxJkiQGQ3B8IHtlxxOXoitj mDR/pCJejY7yP38P1m+3gP3OoVm1SlWeldHEdKqS97xz1L58XEeUgqJa7rk4Lh2Plxha U51xmCjYRRXPNMTdH8m15Rwts8D11+WPuXV1r/uiVQgyvTAIS93yD3yQCiSUqhjWcq4p d/sg== X-Gm-Message-State: ALoCoQmMVs3VGMZ7XCRsO6GQyD71bqg9Y9+6XbVD7XAY2Uf6j3aOSPUk0xdlLBKSk7C1luWUucWP X-Received: by 10.236.27.196 with SMTP id e44mr17472641yha.16.1382472535636; Tue, 22 Oct 2013 13:08:55 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130911 Thunderbird/17.0.9 In-Reply-To: <20131022160930.GA3020-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org> 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:563 Archived-At: Received: from [50.56.192.79] (helo=rubyforge.org) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VYiGD-00088v-Kn for gclrrg-rainbows-talk@m.gmane.org; Tue, 22 Oct 2013 22:09:02 +0200 Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 35F592E19A; Tue, 22 Oct 2013 20:09:01 +0000 (UTC) Received: from mail-gg0-f172.google.com (mail-gg0-f172.google.com [209.85.161.172]) by rubyforge.org (Postfix) with ESMTP id 37A362E18B for ; Tue, 22 Oct 2013 20:08:57 +0000 (UTC) Received: by mail-gg0-f172.google.com with SMTP id k3so765913ggn.3 for ; Tue, 22 Oct 2013 13:08:55 -0700 (PDT) Received: from [192.168.1.5] (177.205.188.227.dynamic.adsl.gvt.net.br. [177.205.188.227]) by mx.google.com with ESMTPSA id c44sm38862022yho.20.2013.10.22.13.08.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 22 Oct 2013 13:08:55 -0700 (PDT) Yes, XEpollThreadPool 4 times more memory than ThreadPool will do tests as you indicated and verifying systems that have other glibc Tanks Alexandre Riveira On 22-10-2013 16:09, Eric Wong wrote: > Alexandre Riveira wrote: >> I usually use XEpollThreadPool however persebi a large memory usage >> for sites that have a lot of content and access reaching over 1 GB. >> Changed to ThreadPool and memory fell not from 4x 256MB. However >> XEpollThreadPool is faster than ThreadPool. Accepted suggestions for >> configuration. I tested also with CoolioThreadPool speed was good >> but the memory consumption and large too. > Wait, ThreadPool uses significantly less than XEpollThreadPool? > > Since this is likely glibc/eglibc, try setting MALLOC_ARENA_MAX=1 and > MALLOC_ARENA_TEST=1 in the env before starting Rainbows! AFAIK, these > are mainly documented by Red Hat, but in all recent-ish versions of > glibc/eglibc support it. > > Then increase the values if you see performance gains (unlikely unless > your app releases the GVL a lot or don't have one (rbx)). > _______________________________________________ > 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 > _______________________________________________ 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