From owner-freebsd-hackers Tue Jun 4 11:56:05 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA04881 for hackers-outgoing; Tue, 4 Jun 1996 11:56:05 -0700 (PDT) Received: from Root.COM (implode.Root.COM [198.145.90.17]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id LAA04874 for ; Tue, 4 Jun 1996 11:56:03 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by Root.COM (8.7.5/8.6.5) with SMTP id LAA26186; Tue, 4 Jun 1996 11:54:34 -0700 (PDT) Message-Id: <199606041854.LAA26186@Root.COM> X-Authentication-Warning: implode.Root.COM: Host localhost [127.0.0.1] didn't use HELO protocol To: Victor Anisimov cc: hackers@FreeBSD.ORG Subject: Re: Problems with swaping In-reply-to: Your message of "Tue, 04 Jun 1996 21:21:44 +0400." <199606041721.VAA02138@kon.icp.ac.ru> From: David Greenman Reply-To: davidg@Root.COM Date: Tue, 04 Jun 1996 11:54:34 -0700 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Very recently I've collected a very strange problem with >swapping on my i486DX2/66 with 8Mb RAM, VLB IDE controller >and two Samsung HDDs and FreeBSD 2.1.0. I have a lot of >free swap space on my PC: > >Device 1K-blocks Used Avail Capacity Type >/dev/wd0s1b 100000 3712 96224 4% Interleaved >/dev/wd1b 830088 3728 826296 0% Interleaved >Total 929960 7440 922520 1% > >but any one program can't allocate maximum 45Mb of virtual space >as ps axu reports. On request of more than mentioned memory >I get an error message "Can't allocate memory". All of the >programs written on Fortran and C. One use static Fortran memory >allocation, the other use C's dynamic allocation. Both of >them show mentioned high limit on memory allocation. >The same problem I have with Pentium-133 24Mb RAM, NEC SCSI >adaptor, 1Gb Seagate HDD, i.e. there is a lot of free swap space >and error on memory allocation with the same high limit. > >Can someone, FreeBSD vizard, give me some hints what should I do. ^^^^^^ A small leathery-skinned creature that is descended from a lizard? :-) You need to incease your per-process virtual limit. This can usually be done via the "limit" or "ulimit" commands in the shell you're using. To set the global defaults/limits, see /sys/i386/include/vmparam.h (MAXDSIZ). -DG David Greenman Core-team/Principal Architect, The FreeBSD Project