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.7 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: memory usage Date: Mon, 28 Oct 2013 00:37:55 +0000 Message-ID: <20131028003755.GA6569@dcvr.yhbt.net> References: <52663744.6040600@objectdata.com.br> <20131022160930.GA3020@dcvr.yhbt.net> <526CFA8C.7000300@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 1382920686 26112 80.91.229.3 (28 Oct 2013 00:38:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Oct 2013 00:38:06 +0000 (UTC) To: Rainbows! list Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Mon Oct 28 01:38:11 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: <526CFA8C.7000300-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:566 Archived-At: Received: from [50.56.192.79] (helo=rubyforge.org) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VaaqO-0008Ol-Gb for gclrrg-rainbows-talk@m.gmane.org; Mon, 28 Oct 2013 01:38:08 +0100 Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 906842E215; Mon, 28 Oct 2013 00:38:06 +0000 (UTC) Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by rubyforge.org (Postfix) with ESMTP id 79EE42E204 for ; Mon, 28 Oct 2013 00:37:57 +0000 (UTC) Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id D1F941FD63; Mon, 28 Oct 2013 00:37:55 +0000 (UTC) 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