From owner-freebsd-ports@freebsd.org Fri Feb 23 20:00:10 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4A93AF17B31 for ; Fri, 23 Feb 2018 20:00:10 +0000 (UTC) (envelope-from karli@inparadise.se) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D5BEC753DD for ; Fri, 23 Feb 2018 20:00:09 +0000 (UTC) (envelope-from karli@inparadise.se) Received: by mailman.ysv.freebsd.org (Postfix) id 9351EF17B30; Fri, 23 Feb 2018 20:00:09 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6BE60F17B29; Fri, 23 Feb 2018 20:00:09 +0000 (UTC) (envelope-from karli@inparadise.se) Received: from mail.inparadise.se (h-246-50.A444.priv.bahnhof.se [155.4.246.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E4186753DC; Fri, 23 Feb 2018 20:00:07 +0000 (UTC) (envelope-from karli@inparadise.se) Received: from localhost (localhost [127.0.0.1]) by mail.inparadise.se (Postfix) with ESMTP id 4B2CD42C08; Fri, 23 Feb 2018 21:00:00 +0100 (CET) Received: from mail.inparadise.se ([127.0.0.1]) by localhost (mail.inparadise.se [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Jd0Z3VQXaWfX; Fri, 23 Feb 2018 20:59:59 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.inparadise.se (Postfix) with ESMTP id 5B43742C09; Fri, 23 Feb 2018 20:59:59 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.inparadise.se 5B43742C09 X-Virus-Scanned: amavisd-new at inparadise.se Received: from mail.inparadise.se ([127.0.0.1]) by localhost (mail.inparadise.se [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id rkXEnglZbaXE; Fri, 23 Feb 2018 20:59:59 +0100 (CET) Received: from gametop-wl.inparadise.se (gametop-wl.inparadise.se [172.16.1.131]) by mail.inparadise.se (Postfix) with ESMTPSA id 2A5C142C08; Fri, 23 Feb 2018 20:59:59 +0100 (CET) Message-ID: <1519415997.5031.2.camel@inparadise.se> Subject: Re: monitoring ruby app memory usage with passenger-recycler (was: Cannot require library for passenger in ruby) From: Karli =?ISO-8859-1?Q?Sj=F6berg?= Reply-To: karli@inparadise.se To: Marcin Cieslak Cc: ports@freebsd.org, ruby@freebsd.org Date: Fri, 23 Feb 2018 20:59:57 +0100 In-Reply-To: References: <1519282237.1980.26.camel@inparadise.se> <1519290717.1980.31.camel@inparadise.se> <1519307212.1980.36.camel@inparadise.se> Organization: InParadise Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Feb 2018 20:00:10 -0000 On Thu, 2018-02-22 at 18:28 +0000, Marcin Cieslak wrote: > On Thu, 22 Feb 2018, Karli Sj=C3=B6berg wrote: >=20 > >=20 > > >=20 > > > How do I interpret the output of 'procstat -v ' though? Can > > > I > > > sum > > > up all of the RES or PRES numbers to get the total virtual memory > > > that > > > this process is consuming? > > I hacked at it a bit and came up with an updated patch that > > includes > > the changes you made, plus my own. > >=20 > > Since "private dirty RSS" isn=C2=B4t available, I=C2=B4ve used "maxim= um RSS" > > from > > 'procstat -r ', which is far from perfect, but it=C2=B4s better > > than > > nothing. It now runs and does what you=C2=B4d expect :) > >=20 > > I have attached it to this email. > Thanks! Now we should try to integrate it into the passenger itself > :) No it=C2=B4s just 'foreman_maintain' that needs fixing. I=C2=B4m actually= d oing the git dance right now getting it accepted upstream :) https://github.com/theforeman/foreman_maintain/pull/146 /K >=20 > I think you might be looking for "private resident pages" (PRES), > but I am not sure.=C2=A0 >=20 > For your particular problem I would log procstat -v output in its > entirety > at regular intervals and see where the memory grows. >=20 > Happy you got there somehow :) >=20 > Marcin