From owner-freebsd-questions@FreeBSD.ORG Mon Mar 12 18:20:57 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9760316A401 for ; Mon, 12 Mar 2007 18:20:57 +0000 (UTC) (envelope-from dima.sorkin@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.251]) by mx1.freebsd.org (Postfix) with ESMTP id 30F8F13C459 for ; Mon, 12 Mar 2007 18:20:56 +0000 (UTC) (envelope-from dima.sorkin@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so1402389ana for ; Mon, 12 Mar 2007 11:20:56 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MLiX+1LaRP19nI+yrh84K76A17PupfrAm49jgLDPijr55v2G2KPpO4qptPw8yfosPZ/yWaNcpFmme1SZ77H21Jzu1O2pZKPjnKSr6Q+hzuYRNZ/ZPjoeT5bTjhi63peBHoGfVmSuioskkZT/lgs3my4am5osnnUo3wAIW6ZmYAM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aY2VKUwC2BKYfLVul1bjOVgldd9Dipyq/pdYRmeuMWj+raUEJtqEuHJdZaquXm8fQGYDMUpqfhDyuo/GlkoAI0pMJY4wdy2rewhdMbTIT5iInB72c0GSuKilE4XyYCvdY9iy4X9Uj9n3cys1U+dz4hnnvSVQ1D3KR7jIUydSDlw= Received: by 10.114.205.1 with SMTP id c1mr1985849wag.1173723654656; Mon, 12 Mar 2007 11:20:54 -0700 (PDT) Received: by 10.114.190.15 with HTTP; Mon, 12 Mar 2007 11:20:54 -0700 (PDT) Message-ID: Date: Mon, 12 Mar 2007 20:20:54 +0200 From: "Dima Sorkin" To: freebsd-questions@freebsd.org In-Reply-To: <6.0.0.22.2.20070309133935.024b8fd0@mail.computinginnovations.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6.0.0.22.2.20070309094909.024c9dd0@mail.computinginnovations.com> <6.0.0.22.2.20070309133935.024b8fd0@mail.computinginnovations.com> Subject: Re: limitiation on memory allocation X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2007 18:20:57 -0000 Hi. I experimented with the values: 1) On my machine 'maxusers' doesn't influence the maximum memory allowable for allocation for single process. 2) 'maxdsiz' - Yes, as long as I keep 'maxdsiz + maxssiz' below physical memory size - everything is fine. Single process allocates successfully up to 'maxdsiz'. When tried to put 'maxdsiz' > phys mem size, indeed the system failed to boot, in all modes: multiuser, singleuser, safe. So I derive from here that there is no way to cause a _single process_ on FreeBSD to allocate more than physical memory size (?) Thank you and regards, Dima. On 3/9/07, Derek Ragona wrote: > Not all the settings there are tuneable. In 6.X the allowable memory is > somewhat automatic based on the max users. Your kernel is set to 384. You > can try changing that. > > You can also make some kernel settings in: > /boot/loader.conf > > You can see the possible variables to set in: > /boot/defaults/loader.conf > > I think the one variable you may want to change is: > kern.maxdsiz="to your actual real memory size" > Don't make this larger than the real memory, in my experience that will > cause the system to not boot properly into multi-user. > At 11:06 AM 3/9/2007, Dima Sorkin wrote: > On FreeBSD 6.2 i386 with 2GB of physical memory I can't allocate > more than 500Mb for my program.