From owner-freebsd-performance@FreeBSD.ORG Thu Nov 24 18:28:16 2005 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82E3016A426 for ; Thu, 24 Nov 2005 18:28:16 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 610D543D5A for ; Thu, 24 Nov 2005 18:27:40 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: by xproxy.gmail.com with SMTP id s9so1441396wxc for ; Thu, 24 Nov 2005 10:27:37 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QDZZBihwtgSBGjsE5Wp6TiF2E7D4DPuQS3qloLWg807NJ+UPIcoGSh5k536UltQAngb4ns/47dtMj725jtRXkblLLLJj+DONnvh1K3k9KswYsSm12DYjfQZ+zF6Zy6+KBwxda93+dc2Z5A2xptI17K+zVyEbCGbK5Lxz3DfOLe8= Received: by 10.70.54.9 with SMTP id c9mr6708333wxa; Thu, 24 Nov 2005 10:21:08 -0800 (PST) Received: by 10.70.105.13 with HTTP; Thu, 24 Nov 2005 10:21:08 -0800 (PST) Message-ID: <84dead720511241021r5e591559l645a8ffe0a1e5a95@mail.gmail.com> Date: Thu, 24 Nov 2005 23:51:08 +0530 From: Joseph Koshy To: Michael Conlen In-Reply-To: <3EF0A80D-0577-46E2-9143-B849CFF48197@obmail.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <6C48A943-1AB3-4DF4-B8CC-CD75B9F36E98@obmail.net> <20051123221952.D32130@fledge.watson.org> <3EF0A80D-0577-46E2-9143-B849CFF48197@obmail.net> Cc: freebsd-performance@freebsd.org Subject: Re: mmap() X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Nov 2005 18:28:16 -0000 > So here's the problem, I've got a DB server that needs a > large datasize and a tomcat server which occasionally needs > to use a lot of memory, which java allocates from a memory > mapped space. Any ideas how to get the system to allow > processes to have either/or? IIRC, the process layout is something like the following (Kernel) ~0..[VM_MAXUSER_ADDRESS] Stack bottom (includes char *environment etc.) ... Current top of stack (Space for mmapp'ed objects.) >highest possible data segment address< malloc arena (heap) .bss .data .text >start of text< (gap) Virtual address 0 Possible solutions could be: - link statically (i.e., don't fragment the mmap arena) - reduce the data segment size (i.e., reduce the malloc arena size) by tweaking the run time limits associated with the process. -- FreeBSD Volunteer, http://people.freebsd.org/~jkoshy