From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,52c08f87c157adca X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-11-02 10:44:15 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!xlink.net!sol.ctr.columbia.edu!spool.mu.edu!sdd.hp.com!decwrl!decwrl!rtech!ingres!sergio From: sergio@Ingres.COM (Sergio L Aponte) Subject: Re: Swap space Message-ID: <1993Nov2.170700.24342@pony.Ingres.COM> Organization: Ingres Corporation, A subsidiary of The ASK Group, Inc. X-Newsreader: TIN [version 1.2 PL2] References: <2afn8a$6tl@huon.itd.adelaide.edu.au> Distribution: net Date: 2 Nov 93 17:07:00 GMT Mike Coleman (coleman@sparc1.cstp.umkc.edu) wrote: : mferrare@physics.adelaide.edu.au (Mark Ferraretto) writes: : |How do you tell how much swap you have left under OSF/1 I have an alpha : |500 that keeps on saying reached 10% of swap space or something like that. : |There is no pstat command so how do I do it? : Say swapon -s. You don't need to be root. : Note that on a DEC OSF machine as shipped, only about 10% of your swap : partition is usable. Or, to put it another way, you need about ten times as : much swap space as you would need on a typical Unix box in order to support : the same amount of activity. Well, after some research, I found some info. Actually, it is explained in the OSF manual System Admin chapter 7 files and file systems. It would seem OSF on the Alpha (everywhere?) can do swapping two different ways. The default one (at least on our machine), the OS reserves a page of swap for every modified page in memory, even if no swapping is been done. This caused our 64Mb mach to run out of 84Mb swap for the simplest of operations (like a compile), when it wasn't even swapping yet. You just run out of space to reserve. The second way is to go get a page of swap WHEN YOU NEED TO SWAP. The danger implied is that, under heavy load, if you need to swap and you ran out of swap, that process might die. So, we eliminated a link from /sbin/swapdefault to the swap device and rebooted. With the link gone, you run under method #2. With the link there, you run method #1. After this, we were able to compile programs, run Windows, etc, etc without the 10% deal... Off course, you assume responsability for not running out of swap... Hope this helps. : -- : Prodigy--The network for censored minds. -- ========================================================================== Sergio L. Aponte, The ASK Group, Inc. Internet : sergio@ingres.com UUCP : {sun,mtxinu,pyramid,pacbell}!ingres!sergio