From owner-freebsd-questions@FreeBSD.ORG Mon Nov 3 03:35:47 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ACEFB16A4CE for ; Mon, 3 Nov 2003 03:35:47 -0800 (PST) Received: from mx3.mail.ru (mx3.mail.ru [194.67.23.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id D473A43FDF for ; Mon, 3 Nov 2003 03:35:46 -0800 (PST) (envelope-from menshutin_anton@mail.ru) Received: from [193.233.46.13] (port=1289 helo=evil) by mx3.mail.ru with smtp id 1AGczp-0006TK-00 for freebsd-questions@freebsd.org; Mon, 03 Nov 2003 14:35:45 +0300 Message-ID: <005a01c3a25a$bc0fe320$0d2ee9c1@evil> From: "anton menshutin" To: Date: Mon, 3 Nov 2003 14:35:07 -0800 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam: Not detected Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: FreeBSD 5.1; max amount of memory X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2003 11:35:47 -0000 I have wrote a program that needs a lot of memory. But the reason is = that it doesn't need a lot of physical RAM simultaneously, and system = swapping is a good solution and it should work well.=20 Previously i was using 4.7-RELEASE, but it seems that it can't work with = big enought address space. Init don't want to work with such options in = kernel config : options MAXDSIZ=3D"(2048*1024*1024)" options MAXSSIZ=3D"(256*1024*1024)" options DFLDSIZ=3D"(2048*1024*1024)". Application could not allocate more than 1G of memory. That's why I try to use the 5.1.=20 But under this version of system my program works even worse. Here what the program says after I have set additional options to = malloc: dla in malloc(): error: out of memory And this is a vmstat listing at the end of execution: procs memory page disks faults cpu r b w avm fre flt re pi po fr sr ad0 ad2 in sy cs us = sy id 0 1 2 609840 108284 10 0 0 0 0 0 0 0 341 0 328 49 = 1 50 0 1 1 609888 108156 8 0 0 0 0 0 0 1 340 0 321 49 = 1 50 0 1 1 609936 108024 11 0 0 0 1 0 0 0 340 0 322 49 = 1 50 0 2 0 609968 86620 7 0 0 0 31 0 0 69 406 0 726 38 = 3 59 0 2 0 609968 87732 8 0 0 0 2192 0 0 203 545 0 1424 = 0 6 94 At this stage application is using only 526 Mb of memory. The system is = a 2 Athlon SMP with 1G of RAM and 2G swap. Does anybody know what options and where one should set to solve such a = problem? Should I try another version of FreeBSD?