Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Drew Kramer <kramer@pa.dec.com>
Subject: Re: cron, inetd killed when other jobs use too much memory
Date: 1996/09/23	[thread overview]
Message-ID: <324717B7.1CFB@pa.dec.com> (raw)
In-Reply-To: 526c3p$re1@lion.embl-heidelberg.de


David Starks-Browning wrote:
> 
> In Digital Unix 3.2C running on a an AlphaStation 250 4/266, occasionally
> an application will consume excessive resources so that the system runs
> out of virtual memory.
> 
> Unfortunately, often the processes that are killed in this situation are
> crucial daemons like inetd or cron.  I understand the system's need to
> kill processes to avoid crashing, but killing crucial processes like these
> is not much better than crashing.
> 
> It seems rather absurd to me that dU would kill cron or inetd rather than
> a user application, preferably the one consuming too much memory.
> 
> Is there some way to avoid this behavior?
> 
> Thanks for your help.
> 
> Sincerely,
> David
> 
> 

It seems to me that you should run swap in what I call eager allocation
mode.  If you have removed the /sbin/swapdefault link, put it back!
This should be a symbolic link to your primary swap device. 

Here's mine: /sbin/swapdefault -> ../dev/rz0b

If you don't have this link, when the system boots it will say:

Sep  3 10:49:03 foo vmunix: vm_swap_init: warning /sbin/swapdefault swap
device not found
Sep  3 10:49:03 foo vmunix: vm_swap_init: swap is set to lazy (over
commitment) mode

This means you are in lazy (the opposite of eager) swap mode.  In a
nutshell, the difference is that in lazy mode, no swap is allocated
until a proccess tries to swap or page.  If a big fat process comes
along, it is a random chance who gets nailed during a virtual memory
starvation.  In eager mode, the swap is allocated at the same time
virutal memory is alocated.  This means that if a process has a 32MB
virtual size, then it will also "reserve" 32MB of swap space.  This
means that processes (like init or cron) will always be able to swap out
successfully.  The process that will die is the big fat one that is
trying to pig up virtual memory.

The consequence of running in eager mode is that you probably will have
to configure more swap space, which you probably need to do anyway.

-drew
-------
Drew Kramer	kramer@pa.dec.com

"Welcome to the machine"



  reply	other threads:[~1996-09-23  4:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-23  4:00 cron, inetd killed when other jobs use too much memory David Starks-Browning
1996-09-23  4:00 ` Drew Kramer [this message]
1996-10-01  4:00   ` Peter da Silva
1996-10-02  4:00     ` Ron Natalie
1996-10-02  4:00       ` Peter da Silva
1996-09-24  4:00 ` Patrick O'Rourke USG
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox