From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5d1eae2c7cf1d044 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-04-26 09:04:18 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!nntp.gmd.de!xlink.net!howland.reston.ans.net!EU.net!julienas!ubu!news From: jlb@acri.fr (Jean-Luc Bernard) Subject: Re: swap space running out ? Message-ID: <1994Apr26.134621.2064@acri.fr> Sender: news@acri.fr (News Admin) Reply-To: jlb@acri.fr Organization: Advanced Computer Research Institute References: <1994Apr18.113631.2709@bay.cc.kcl.ac.uk> Date: Tue, 26 Apr 1994 13:46:21 GMT In article 2709@bay.cc.kcl.ac.uk, sjg@phlim.ph.kcl.ac.uk (Simon Gornall) writes: >The new alpha (osf1) has 155Mb of swap space. Every now and again it >reports 'swap space less than 10%' or something similar. I run the >'swapon -s' command and it reports the total swap space to be almost >full, but the swap partition to be only 50% full. The system only has >the one swap partition, so how come it's getting different values for >swap availability. I'm confused. > >Any help much appreciated (I didn't know about 'swapon -s' until I >was told here :-) > >Simon. >-- DEC-OSF/1 can handle 2 modes for the program loading. The first one (the default) is called 'eager', which means all the memory that CAN be used by the program is reserved at the load time. The second one is the 'lazy' mode where the memory is allocated as soon as it is required. In eager mode, a program is long to load and fast to execute, but can run out of swap space even if the reserved memory is not used (i.e. like in the oldy-buggy Fortran programs that handle huge tables). In lazy mode, a program is faster to load by slower to execute, as reserving memory needs some time, but it can allow a program to run without reaching a limit it could break. To run in lazy mode, delete or rename the /sbin/swapdefault file. --- _________________________________________________________________ Jean-Luc BERNARD Computer Center Advanced Computer Research Institute Email: jlbernard@acri.fr 1 Boulevard Marius Vivier-Merle Voice: (+33) 72.35.84.03 69443 LYON CEDEX 03 - FRANCE Fax (+33) 72.35.84.10