From owner-freebsd-questions Wed Jan 15 16:36:34 2003 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 A878F37B401 for ; Wed, 15 Jan 2003 16:36:32 -0800 (PST) Received: from hotmail.com (f73.sea2.hotmail.com [207.68.165.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 510B443F3F for ; Wed, 15 Jan 2003 16:36:32 -0800 (PST) (envelope-from frank19991@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 15 Jan 2003 16:36:32 -0800 Received: from 128.2.138.89 by sea2fd.sea2.hotmail.msn.com with HTTP; Thu, 16 Jan 2003 00:36:31 GMT X-Originating-IP: [128.2.138.89] From: "Frank Li" To: freebsd-questions@freebsd.org Subject: Increase memory limit ? Date: Wed, 15 Jan 2003 18:36:31 -0600 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 16 Jan 2003 00:36:32.0053 (UTC) FILETIME=[50EE3E50:01C2BCF7] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The situation is as follows: Physical memory is 128M, OS is FreeBSD 4.4. My C++ simulation code mallocs large amount of memory. When running, I found "top" shows SIZE is 514M, RES is 176M. Then the code dumpped a core. The code itself should have no problem. It's not complicated and it runs very well when running shorter. Top shows: Mem: 180M Active, 21M Inact, 32M Wired, 13M Cache, 35M Buf, 656K Free Abort trap - core dumped . PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 66351 dxu -22 0 514M 127M swread 0:11 36.96% 27.39% simulation limit shows: cputime unlimited filesize unlimited datasize 524288 kbytes stacksize 65536 kbytes coredumpsize unlimited memoryuse unlimited descriptors 1064 memorylocked unlimited maxproc 531 I tried to increase the above limits but failed. They seem to be already the maximum. Should I add more physical memory (if so should I reinstll OS)? Can I just set some parameters(what?) and recompile kernel and increase these limits ? Thanks a lot! Frank _________________________________________________________________ The new MSN 8 is here: Try it free* for 2 months http://join.msn.com/?page=dept/dialup To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message