From owner-freebsd-ports@FreeBSD.ORG Fri Sep 17 09:53:14 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 831691065670 for ; Fri, 17 Sep 2010 09:53:14 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id C2AC18FC1C for ; Fri, 17 Sep 2010 09:53:13 +0000 (UTC) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id MAA20150; Fri, 17 Sep 2010 12:53:10 +0300 (EEST) (envelope-from avg@icyb.net.ua) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1OwXcz-0008I5-VE; Fri, 17 Sep 2010 12:53:09 +0300 Message-ID: <4C933A85.8080703@icyb.net.ua> Date: Fri, 17 Sep 2010 12:53:09 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100912 Lightning/1.0b2 Thunderbird/3.1.3 MIME-Version: 1.0 To: Jeremy Chadwick References: <4C926418.2050407@gmail.com> <4C9328B9.4010100@gmail.com> <20100917085621.GA48570@icarus.home.lan> <4C933284.6050601@icyb.net.ua> <20100917094212.GA49319@icarus.home.lan> In-Reply-To: <20100917094212.GA49319@icarus.home.lan> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: Fwd: Tomcat6 port keeps locking up?? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2010 09:53:14 -0000 on 17/09/2010 12:42 Jeremy Chadwick said the following: > On Fri, Sep 17, 2010 at 12:19:00PM +0300, Andriy Gapon wrote: >> on 17/09/2010 11:56 Jeremy Chadwick said the following: >>> I don't think you understand how Solaris's VM behaves with ZFS. It >>> behaves very differently than FreeBSD. On Solaris/OpenSolaris with ZFS, >>> you'll see the ARC taking up as much memory as possible -- but unlike >>> FreeBSD (AFAIK), when a userland or kernel application requires more >> ^^^^^^^^^^^^^^^^^ >>> memory, the Solaris kernel dynamically releases portions of the ARC. >> >> Can you please explain that "unlike" part? > > When ZFS was first introduced to FreeBSD, I was given the impression > from continual posts on the mailing lists that memory which was > allocated to the ARC was never released in the situation that a userland > program wanted memory. > > An example scenario. These numbers are in no way accurate given many > other things (network mbufs, UFS and VFS cache, etc.): > > - amd64 system has 2GB physical RAM (assume ~1920MB usable) > - vm.kmem_size="1536M" + vfs.zfs.arc_max="1400M" > - Heavy ZFS I/O results in ARC maxing out at ~1400MB > - Userland application runs, requests malloc() of 1024MB > - Userland gets 384MB from physical RAM, remaining 640MB from swap > - ARC remains at 1400MB > > Is this no longer the case? > I am not sure if this has even been the case :-) It is definitely not the case now. -- Andriy Gapon