From owner-freebsd-stable@FreeBSD.ORG Thu Aug 14 08:00:25 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BFB7106567A for ; Thu, 14 Aug 2008 08:00:25 +0000 (UTC) (envelope-from css@alkar.net) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id 092288FC08 for ; Thu, 14 Aug 2008 08:00:24 +0000 (UTC) (envelope-from css@alkar.net) Received: from while.alkar.net (account css@alkar.net [212.86.226.7] verified) by cmail.optima.ua (CommuniGate Pro SMTP 5.1.14) with ESMTPA id 194583007; Thu, 14 Aug 2008 11:00:23 +0300 Date: Thu, 14 Aug 2008 11:00:22 +0300 From: Sergey Chumakov To: Jeremy Chadwick Message-ID: <20080814110022.053d117d@while.alkar.net> In-Reply-To: <20080814074430.GA4096@eos.sc1.parodius.com> References: <20080814093000.4842b37c@while.alkar.net> <20080814074430.GA4096@eos.sc1.parodius.com> Organization: Optima Telecom ISP X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit Cc: freebsd-stable@freebsd.org Subject: Re: Process size. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 08:00:25 -0000 На Thu, 14 Aug 2008 00:44:30 -0700 Jeremy Chadwick записано: > On Thu, Aug 14, 2008 at 09:30:00AM +0300, Sergey Chumakov wrote: > > Hello, > > > > FreeBSD 7.0-RELEASE-p3 #3 > > > > $top > > ... > > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND > > 36032 root 2838 44 0 1917M 1493M ucond 0 406:39 3.03% CGServer > > ... > > > > $cat /boot/loader.conf.local > > ... > > kern.maxdsiz="1073741824" > > kern.maxssiz="134217728" > > kern.dfldsiz="1073741824" > > > > $limits > > Resource limits (current): > > ... > > datasize 1048576 kB > > stacksize 131072 kB > > > > How and why is it possible for process to grow up to 1493M and even > > more? I suppose, it will be able to eat all available system memory (was > > killed). > > Do resource limits apply to root? Yes, of course. > > I wonder if it's an issue of calculation in top; top might be including > page sizes and other VM-related things, while limits datasize and stacksize > may only be specific to those allocated amounts. > > If this machine was running RELENG_7 (STABLE), it would have procstat, > which could help discern where the "extra" memory is. > > Also: is this i386 or amd64? > i386 -- Sincerely, Sergey Chumakov