From owner-freebsd-questions@FreeBSD.ORG Sat Mar 10 16:59:30 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 6102516A400 for ; Sat, 10 Mar 2007 16:59:30 +0000 (UTC) (envelope-from dima.sorkin@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.242]) by mx1.freebsd.org (Postfix) with ESMTP id 1995513C46B for ; Sat, 10 Mar 2007 16:59:29 +0000 (UTC) (envelope-from dima.sorkin@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so941513ana for ; Sat, 10 Mar 2007 08:59:29 -0800 (PST) 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=hCUG1Jo22HqoDqT42XSff5aMAFPCiUbzzd2TGCuJ/l4NFmRmbM8VgVmkWIMFmRLnPEISQL3FB6EmdlWDRN/kNdg5qe8mb+nOu/au21ypsdBm0Ar6NqUZ9vvWD8d4IHmO3AiMIVIlTucjJv85rjgDXPTQW/k/cjhMhhUYE1xXbNA= 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=rHOUQNW9qMj2n13BpK0hYtpfOGxC76CiAwOUqvCpu1l9jPv3l/+KSyKXeuDsEQGdEJyeaWU0XIq380+fNq+rl0Wg85Wjo9mt/PHJQhDEvM7nqHnZoo3dHfIVXNK6Lbxa0Lwpjc6gDUzKclh5E0Oo+frMfEXBw/0BHj82Gv415os= Received: by 10.115.14.1 with SMTP id r1mr405319wai.1173545969035; Sat, 10 Mar 2007 08:59:29 -0800 (PST) Received: by 10.114.184.11 with HTTP; Sat, 10 Mar 2007 08:59:28 -0800 (PST) Message-ID: Date: Sat, 10 Mar 2007 18:59:29 +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: Sat, 10 Mar 2007 16:59:30 -0000 Hi. I've read some pages about 'kern.maxusers', 'kern.maxdsize'. I have questions: 1) After I reduce 'maxusers' to some reasonable amount for that computer (say 10), and enlarge 'maxdsize', will a user process be able to allocate arrays that are considerably bigger than the physical memory size ? This is what I really need. I run processes in which it can come to 1.5x-2x ratio. 2) Following the http://www.opennet.ru/openforum/vsluhforumID1/40543.html#1 Should I put maxdsize == phys mem size, or should I put it lower (by how much) ? 3) On Intel pentium 4 machine with 2GB phys memory, during installation where almost all options were taken as defaults, should I worry that kernel is not configured to use PAE ? Installation program by default allocated 4GB swap, so totally it is 6GB. How do I check this ? Thanks, Dima. On 3/9/07, Derek Ragona wrote: > > Dima, > > 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. > > -Derek ... > > On FreeBSD 6.2 i386 with 2GB of physical memory I can't allocate > more than 500Mb for my program.