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=AWL,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: Mon, 28 Oct 2013 18:40:06 +0000 Message-ID: <526EAF86.7070703@objectdata.com.br> References: <52663744.6040600@objectdata.com.br> <20131022160930.GA3020@dcvr.yhbt.net> <526CFA8C.7000300@objectdata.com.br> <20131028003755.GA6569@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 1382992822 15275 80.91.229.3 (28 Oct 2013 20:40:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Oct 2013 20:40:22 +0000 (UTC) To: "Rainbows! list" Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Mon Oct 28 21:40:27 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-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=9xbe5g1FQWwKlmdvSfSiyHNHA+R1ia2tp6RdWOIOqxk=; b=cQzXicUQ07oyOL9u1kPyGyRbALKy2T0YenShF0vZYlP+JTWNag4J4BMdAtW6PRt6kt G5PakC14D5A8yQQDrLRq4fSy6MGnnOB6Rs6kE4kNcwm4TZj8E6dJAFiPf4BnLY2qHfLz 5DptYyPsO8urC8FMroXPjlBDUVJjA5LLFAF3hEFFx5Q0kAy24OWHpQuE00DHKEPAxrXe CG39quITrCLvnXBRgZCGGHx2KZ3zhQeKVRft8ohpS4p42b9vzmijpO4JybQ/qlcXrJXB vZDb7mvVOJnyxyovhX7t01z88v0HaL86ifaNA4svkqkTGOidXtKCzwTVzge+X0GQi7nS kBfg== X-Gm-Message-State: ALoCoQmsJRLdK/jvLTfxOazH8S6DljQHgqvzCaW2AG1JN5k5j3s7GFaCFzmjcjxgvX9LrFX4/rFZ X-Received: by 10.236.118.148 with SMTP id l20mr2591888yhh.89.1382992818670; Mon, 28 Oct 2013 13:40:18 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130911 Thunderbird/17.0.9 In-Reply-To: <20131028003755.GA6569-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:567 Archived-At: Received: from [50.56.192.79] (helo=rubyforge.org) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vatbu-0000dX-PI for gclrrg-rainbows-talk@m.gmane.org; Mon, 28 Oct 2013 21:40:27 +0100 Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 41F782E1FE; Mon, 28 Oct 2013 20:40:26 +0000 (UTC) Received: from mail-yh0-f50.google.com (mail-yh0-f50.google.com [209.85.213.50]) by rubyforge.org (Postfix) with ESMTP id 2C1452E1FC for ; Mon, 28 Oct 2013 20:40:20 +0000 (UTC) Received: by mail-yh0-f50.google.com with SMTP id b6so2999817yha.37 for ; Mon, 28 Oct 2013 13:40:18 -0700 (PDT) Received: from [192.168.1.2] ([177.158.66.39]) by mx.google.com with ESMTPSA id e39sm35260011yhq.15.2013.10.28.13.40.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Oct 2013 13:40:18 -0700 (PDT) Hello Eric, My linux is 3.2.50, sorry my error, environment variables work fine now. Tanks for your help Alexandre Riveira On 28-10-2013 00:37, Eric Wong wrote: > Alexandre Riveira wrote: >> Hello Eric, >> >> I discovered that when you restart the server (linux 2.3.50, glibc >> 2.15) memory stopped growing indiscriminately. > Linux 2.3.50? Huh? Assuming that's 3.2.50. Anyways, user-visible > memory usage is only dependent on glibc version. > >> 2 questions: >> >> 1) The POOL_SIZE XEpollThreadPool series of the number of >> connections accepted epoll so'd have one for each thread > No, pool_size for XEpollThreadPool is the number of worker threads > capable of dispatching the application. It can hold many more clients. > >> 2) I saw the gem 'mall' and she seems to adjust as you indicted by >> glibc environment variables are correct? If yes in config / >> initializers added a file.rb with the following: >> Mall.opt (Mall :: ARENA_MAX, 1) >> Mall.opt (Mall :: ARENA_TEST, 1) > Yes, mall works, too, and you can tune a running app with some of the > knobs. However, for arena settings, I think they must be set early on > (before many threads are spawned) to be effective. So environment > variables (set before starting Ruby) are probably the best bet, since > Ruby (MRI) spawns a background timer thread right away. > _______________________________________________ > 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