From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.25.143.3 with SMTP id r3csp1512950lfd; Sat, 22 Aug 2015 13:54:46 -0700 (PDT) X-Received: by 10.50.117.36 with SMTP id kb4mr1692845igb.78.1440276885660; Sat, 22 Aug 2015 13:54:45 -0700 (PDT) Return-Path: Received: from mail-io0-x23c.google.com (mail-io0-x23c.google.com. [2607:f8b0:4001:c06::23c]) by mx.google.com with ESMTPS id c21si4510140iod.105.2015.08.22.13.54.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Aug 2015 13:54:45 -0700 (PDT) Received-SPF: pass (google.com: domain of rack-devel+bncBDY4TNV6V4PRBE6D4OXAKGQEWGR62VA@googlegroups.com designates 2607:f8b0:4001:c06::23c as permitted sender) client-ip=2607:f8b0:4001:c06::23c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of rack-devel+bncBDY4TNV6V4PRBE6D4OXAKGQEWGR62VA@googlegroups.com designates 2607:f8b0:4001:c06::23c as permitted sender) smtp.mailfrom=rack-devel+bncBDY4TNV6V4PRBE6D4OXAKGQEWGR62VA@googlegroups.com; dkim=pass header.i=@googlegroups.com; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com Received: by mail-io0-x23c.google.com with SMTP id s203sf25673564iod.1; Sat, 22 Aug 2015 13:54:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:mime-version:message-id:in-reply-to:references:from:to:cc :subject:content-type:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :sender:list-subscribe:list-unsubscribe; bh=CuE4TQyrSisEQyqJApO4xR5/XqzVGNKZDaLUMBWWoKs=; b=gSy+WI87ChRnRekSuVymaxoqhAA2sS3RYcCxEmVouXxn7HM1rOCHQLD5rti2/bK3oe BhPKG18JMxtOlEKAA1uuXK58pdzJxmCE1YKajI72ty4ztjUYiXQcVWWFrfW1XLXdELuU rL+SQ2sCqIpUO+nZhwd10XGA+1nQPGYr631MW8PCzeCwIi9y4eo2nUpLsBKN4YijVdyx K0x0K7GiqbSjT4xvxfnBappnj9jBH+vp+16p9aB98nm6ho1Si0BvUVVddpZ8pFICg72k uY4cMetwDuSk31lghL5OmcQbF8YtLuyaIuCsECd66Ijltll3inwz1f9KRnGdHAcTKWk6 Yutg== X-Received: by 10.50.138.70 with SMTP id qo6mr149562igb.13.1440276883993; Sat, 22 Aug 2015 13:54:43 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.50.20.5 with SMTP id j5ls818582ige.32.gmail; Sat, 22 Aug 2015 13:54:43 -0700 (PDT) X-Received: by 10.67.14.231 with SMTP id fj7mr13653821pad.33.1440276883335; Sat, 22 Aug 2015 13:54:43 -0700 (PDT) Received: from mail-qg0-x22a.google.com (mail-qg0-x22a.google.com. [2607:f8b0:400d:c04::22a]) by gmr-mx.google.com with ESMTPS id s186si1549423ywe.4.2015.08.22.13.54.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Aug 2015 13:54:43 -0700 (PDT) Received-SPF: pass (google.com: domain of richard.schneeman@gmail.com designates 2607:f8b0:400d:c04::22a as permitted sender) client-ip=2607:f8b0:400d:c04::22a; Received: by mail-qg0-x22a.google.com with SMTP id b6so65497026qge.3 for ; Sat, 22 Aug 2015 13:54:43 -0700 (PDT) X-Received: by 10.141.28.80 with SMTP id f77mr36103991qhe.100.1440276883179; Sat, 22 Aug 2015 13:54:43 -0700 (PDT) Received: from hedwig-21.prd.orcali.com (ec2-54-85-253-179.compute-1.amazonaws.com. [54.85.253.179]) by smtp.gmail.com with ESMTPSA id i2sm7421981qgf.49.2015.08.22.13.54.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 22 Aug 2015 13:54:42 -0700 (PDT) Date: Sat, 22 Aug 2015 13:54:42 -0700 (PDT) MIME-Version: 1.0 X-Mailer: Nodemailer (0.5.0; +http://www.nodemailer.com/) Message-Id: <1440276882101.d5f8b2d3@Nodemailer> In-Reply-To: <9d5cc646-0803-42c3-b118-f54a4cf8c6c0@googlegroups.com> References: <9d5cc646-0803-42c3-b118-f54a4cf8c6c0@googlegroups.com> X-Orchestra-Oid: FAA73CF2-4508-4A68-8013-F438811E0E95 X-Orchestra-Sig: 810b0e776c22ea875e7c0fffe96bff3225b181f6 X-Orchestra-Thrid: T702B6BCC-2A37-4C2F-886C-0D67B63B8DEB_1510238839012049883 X-Orchestra-Thrid-Sig: 99044464b6b78624cb82ce67cea2ab1ed8542086 X-Orchestra-Account: d16e2888c9c1fdb3546e62fcebdfeeb0251501be From: "richard schneeman" To: rack-devel@googlegroups.com Cc: "Rack Development" Subject: Re: Rack and memory usage ? Content-Type: multipart/alternative; boundary="----Nodemailer-0.5.0-?=_1-1440276882322" X-Original-Sender: richard.schneeman@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of richard.schneeman@gmail.com designates 2607:f8b0:400d:c04::22a as permitted sender) smtp.mailfrom=richard.schneeman@gmail.com; dmarc=pass (p=NONE dis=NONE) header.from=gmail.com Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: rack-devel@googlegroups.com X-Google-Group-Id: 486215384060 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , ------Nodemailer-0.5.0-?=_1-1440276882322 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Just running `irb` with no libraries is 9.9 mb for me with Ruby 2.2.3. In R= uby 2.0 it's 17.9mb for me. Ruby is not known to be the most memory efficie= nt language.=C2=A0 I wrote a tool to help debug memor use in apps, check it out https://github= .com/schneems/derailed_benchmarks You can run=C2=A0 $ derailed bundle:mem To see the memory impact of all the gems you're using at require time.=C2= =A0 Here's more information: http://www.schneems.com/2015/05/11/how-ruby-uses-m= emory.html ---Richard Schneeman http://www.schneems.com On Sat, Aug 22, 2015 at 3:39 PM, David Unric wrote: > Hi, > I'm asking if am I doing something wrong or is normal for a minimal rack= =20 > application have memory footprint over 25 MiB ? > I'd like to reduce the memory usage as possible for deployment of a Sinat= ra=20 > app on small x86 Linux NAS device. I did measured the memory usage and Ra= ck=20 > occupies about excessive 26 from total of 31 MiB (the rest is Thin server= +=20 > the app). > Is there some Rack-lite or some trick how to shake-off unnecessary code t= o=20 > get it on diet ? > Thanks. > --=20 > ---=20 > You received this message because you are subscribed to the Google Groups= "Rack Development" group. > To unsubscribe from this group and stop receiving emails from it, send an= email to rack-devel+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. --=20 ---=20 You received this message because you are subscribed to the Google Groups "= Rack Development" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to rack-devel+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------Nodemailer-0.5.0-?=_1-1440276882322 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Just running `irb` with no libraries is 9.9 mb for me = with Ruby 2.2.3. In Ruby 2.0 it's 17.9mb for me. Ruby is not known to be th= e most memory efficient language.=C2=A0

I wrote a tool to help debug memor use in apps, check = it out https://github.com/schneems/derailed_benchmarks

You can run=C2=A0

$ derailed bundle:mem

To see the memory impact of all the gems you're using = at require time.=C2=A0

Here's more information: http://www.schneems.com/2015/= 05/11/how-ruby-uses-memory.html




---
Richard Schneeman



On Sat, Aug 22, 2015 at 3:39 PM, Davi= d Unric <dunric29a@gmail.com> wrote:

Hi,

I'm asking if am I doing something wrong or is = normal for a minimal rack application have memory footprint over 25 MiB ?
I'd like to reduce the memory usage as possible for deployment of a S= inatra app on small x86 Linux NAS device. I did measured the memory usage a= nd Rack occupies about excessive 26 from total of 31 MiB (the rest is Thin = server + the app).

Is there some Rack-lite or some trick how to shak= e-off unnecessary code to get it on diet ?

Thanks.

--

---
You received this message because you are subscribed to the Google Groups "= Rack Development" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to rack-dev= el+unsubscribe@googlegroups.com.
For more options, visit http= s://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to the Google Groups &= quot;Rack Development" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to rack-dev= el+unsubscribe@googlegroups.com.
For more options, visit http= s://groups.google.com/d/optout.
------Nodemailer-0.5.0-?=_1-1440276882322--