Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Bob Vickers <R.Vickers@dcs.rhbnc.ac.uk>
To: steffen@latrade.com
Subject: Re: out of swap -> killing inetd
Date: 1996/07/09	[thread overview]
Message-ID: <4rt691$2jl@sun.rhbnc.ac.uk> (raw)
In-Reply-To: 4rr9md$gsc@xensei3.xensei.com


steffen@latrade.com (Steffen Ullrich) wrote:
>A while ago I run a really big process (user process - no root!) on an 
>DEC UNIX 3.2C machine with 64MByte so that the machine run out of swap
>space. Instead of killing the process which caused this problem it
>randomly killed other processes - among them the inetd. This made it
>unable to rlogin/telnet to the machine in order to maintain it (or at
>least to reboot it). luckely enough the machine was located in the next
>room so I could maintain it locally, otherwise I had a big problem.
>The questions I got:

Processes are not being killed. They are trying to allocate or write virtual
memory and failing because it is not there. Probably they are getting bus
errors or memory faults.

>
>Note: I don't think that this questions is primary related to the 
>different swap modes on DEC UNIX (although this machine run in 
>deferred mode). I believe this situation might also happen in the
>immediate swap mode (e.g. if for each memory the process needs the 
>same amount will be reserved in the swap space) in case that inetd should 
>(temporary) need more memory to startup a process but there is no more 
>swap available on the system. In this situation another (user) process 
>should be killed, but inetd should get all the memory it needs (otherwise 
>I get the same situation = no more remote control possible).
>

It is almost certainly directly related to your swap mode. In immediate swap
mode an error occurs at malloc time if swap space is unavailable, and a well
written process can easily recover from this. In deferred mode the malloc
succeeds but random errors occur later on when the process tries to write to
the memory. This is the penalty you pay for the disc space saving which
deferred mode gives you.

Regards,
Bob
-- 
==============================================================================
Bob Vickers			R.Vickers@dcs.rhbnc.ac.uk
Department of Computer Science, Royal Holloway College, University of London
WWW:	http://www.dcs.rhbnc.ac.uk/~bobv/




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

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-08  4:00 out of swap -> killing inetd Steffen Ullrich
1996-07-09  4:00 ` Randy Kaelber
1996-07-10  4:00   ` Steffen Ullrich
1996-07-09  4:00 ` Bob Vickers [this message]
1996-07-09  4:00   ` Peter da Silva
     [not found]     ` <ufivbxlzpc.fsf@microl6.microlise.uucp>
1996-07-10  4:00       ` Peter da Silva
1996-07-11  4:00     ` Patrick O'Rourke USG
1996-07-10  4:00   ` Jim Reid
1996-07-10  4:00   ` Andrew Gierth
1996-07-10  4:00   ` Patrick O'Rourke USG
1996-07-09  4:00 ` Boyd Roberts
1996-07-09  4:00   ` John Hascall
1996-07-12  4:00   ` Steffen Ullrich
1996-07-23  4:00 ` Brian James O'Connor
  -- strict thread matches above, loose matches on Subject: below --
1996-07-13  4:00 Steffen Ullrich
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