From owner-freebsd-hackers Tue Jun 4 10:26:02 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA26935 for hackers-outgoing; Tue, 4 Jun 1996 10:26:02 -0700 (PDT) Received: from kon.icp.ac.ru (kon.icp.ac.ru [193.233.37.132]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id KAA26911 for ; Tue, 4 Jun 1996 10:25:16 -0700 (PDT) Received: (root@localhost) by kon.icp.ac.ru (8.6.12/8.6.5) id VAA02138 for hackers@freebsd.org; Tue, 4 Jun 1996 21:21:44 +0400 Date: Tue, 4 Jun 1996 21:21:44 +0400 From: Victor Anisimov Message-Id: <199606041721.VAA02138@kon.icp.ac.ru> To: hackers@freebsd.org Subject: Problems with swaping Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi everybody, I'm a computational chemist and use FreeBSD as a best PCs UNIX for scientific computations. 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. If you have any commentsor suggestions, please, reply directly to me, because I'm not on mailing list. Thanks, Victor. vam@kon.icp.ac.ru P.S. Here is my kernel confyguration: # # GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks # # $Id: GENERIC,v 1.46.2.6 1995/10/25 17:29:51 jkh Exp $ # machine "i386" cpu "I386_CPU" cpu "I486_CPU" cpu "I586_CPU" ident GENERIC maxusers 10 options GPL_MATH_EMULATE #Support for x87 emulation options INET #InterNETworking options FFS #Berkeley Fast Filesystem options NFS #Network Filesystem options PROCFS #Process filesystem options "COMPAT_43" #Compatible with BSD 4.3 options BOUNCE_BUFFERS #include support for DMA bounce buffers options SYSVSHM options SYSVSEM options SYSVMSG options GATEWAY options "NSWAPDEV=3" options "CHILD_MAX=128" options "OPEN_MAX=128" config kernel root on wd0 dumps on wd0 controller isa0 controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr disk fd0 at fdc0 drive 0 disk fd1 at fdc0 drive 1 controller wdc0 at isa? port "IO_WD1" bio irq 14 flags 0x00ff8004 vector wdintr disk wd0 at wdc0 drive 0 disk wd1 at wdc0 drive 1 device sc0 at isa? port "IO_KBD" tty irq 1 vector scintr device npx0 at isa? port "IO_NPX" irq 13 vector npxintr device sio0 at isa? port "IO_COM1" tty irq 4 vector siointr device sio1 at isa? port "IO_COM2" tty irq 3 vector siointr device ed0 at isa? port 0x320 net irq 11 iomem 0xd0000 vector edintr device ed1 at isa? port 0x300 net irq 5 iomem 0xd8000 vector edintr pseudo-device loop pseudo-device ether pseudo-device log pseudo-device sl 1 pseudo-device ppp 1 pseudo-device tun 1 pseudo-device pty 16 pseudo-device gzip # Exec gzipped a.out's pseudo-device vn 2