From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e372f2df5d66845c X-Google-Attributes: gidfee84,public From: saunders@castor.che.wisc.edu (Brian Saunders) Subject: Re: swap space warning Date: 1995/04/29 Message-ID: #1/1 X-Deja-AN: 101744135 references: <3nrief$366@tenebris.rutgers.edu> organization: University of Wisconsin-Madison newsgroups: comp.unix.osf.osf1 In article <3nrief$366@tenebris.rutgers.edu>, armhold@tenebris.rutgers.edu (George Armhold) wrote: > We have a Sable 2100 with 1 GB of real memory. It's configured with > 196MB swap on it's primary disk, and 1GB swap on a second disk. I > keep getting syslog (I assume it's syslog) warnings: "swap space below > 10 percent free", when there is really plenty of swap space available, > as shown by vmstat and top. Perhaps whatever prints this message only > considers the primary swap device when deciding when to generate the > warning? 1 GB Memory!?!?!? And you are asking us for advice? :^) Are you in lazy or eager swap mode? In other words, is there a file named /sbin/swapdefault? If so, the computer reserves swap space for jobs when they are executed, rather than on a need basis. In situations like this, you usually need at least 2 times the physical memory as swap space to avoid this. If you don't see yourself using up that 1 GB too often, and want to take a slight risk, remove /sbin/swapdefault and reboot. You will get a startup warning about being in deferred swap mode (i.e. lazy swap mode - which only gets the swap when it needs it). Most of the time, this should not be a problem, but if you ever fill up all of your physical memory, you could end up needing over 1.196 GB of swap, and since it won't be available, it will kill jobs (non-critical usually) indiscriminately so that there will be enough space. -- Brian E. Saunders saunders@castor.che.wisc.edu