* out of swap -> killing inetd
@ 1996-07-08 4:00 Steffen Ullrich
1996-07-09 4:00 ` Bob Vickers
` (3 more replies)
0 siblings, 4 replies; 15+ messages in thread
From: Steffen Ullrich @ 1996-07-08 4:00 UTC (permalink / raw)
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:
- can I prevent processes from beeing killed on this kind of
problems (or at least killed as the last ones) ? Maybe I
could tell the system to first kill the user processes and only
if nothing helps to kill the root processes. Better yet,
specify the "essential" processes which should never be killed
(and if the system cannot solve the problem this way it should
better reboot itself).
- can a process have a higher priority in the way that if the process
requests more memory it should get it, even if other processes
with less "memory priority" needs to be killed?
- What solutions to these problems (killing the wrong, memory priorities)
offer other systems (process quota are of no help in this situation).
Does anybody know how these problems are handled on non UNIX's like
VMS and WindowsNT?
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).
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: out of swap -> killing inetd
1996-07-08 4:00 out of swap -> killing inetd Steffen Ullrich
1996-07-09 4:00 ` Bob Vickers
1996-07-09 4:00 ` Randy Kaelber
@ 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
3 siblings, 2 replies; 15+ messages in thread
From: Boyd Roberts @ 1996-07-09 4:00 UTC (permalink / raw)
In article <4rr9md$gsc@xensei3.xensei.com>, steffen@latrade.com says...
>
>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.
Process killing based on memory/swap resource problems was always a
bad idea. It's next to impossible to determine what to kill and a worst
case scenario is that everything is killed before the offending process is.
At least with Digital UNIX you can choose a swap policy to be eager or lazy.
I'd make it eager and then the chance of this scenario is lessened.
--
Boyd Roberts <boyd@france3.fr> 48 51 7 N 2 16 23 E
``Not only is UNIX dead, but it's starting to smell really bad.'' -- rob
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: out of swap -> killing inetd
1996-07-08 4:00 out of swap -> killing inetd Steffen Ullrich
@ 1996-07-09 4:00 ` Bob Vickers
1996-07-09 4:00 ` Peter da Silva
` (3 more replies)
1996-07-09 4:00 ` Randy Kaelber
` (2 subsequent siblings)
3 siblings, 4 replies; 15+ messages in thread
From: Bob Vickers @ 1996-07-09 4:00 UTC (permalink / raw)
To: steffen
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/
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: out of swap -> killing inetd
1996-07-08 4:00 out of swap -> killing inetd Steffen Ullrich
1996-07-09 4:00 ` Bob Vickers
@ 1996-07-09 4:00 ` Randy Kaelber
1996-07-10 4:00 ` Steffen Ullrich
1996-07-09 4:00 ` Boyd Roberts
1996-07-23 4:00 ` Brian James O'Connor
3 siblings, 1 reply; 15+ messages in thread
From: Randy Kaelber @ 1996-07-09 4:00 UTC (permalink / raw)
Steffen Ullrich (steffen@latrade.com) wrote:
> - can I prevent processes from beeing killed on this kind of
> problems (or at least killed as the last ones) ? Maybe I
> could tell the system to first kill the user processes and only
> if nothing helps to kill the root processes. Better yet,
> specify the "essential" processes which should never be killed
> (and if the system cannot solve the problem this way it should
> better reboot itself).
I don't know if this will help, but check out the plock subroutine.
Basically what it can do is mark a process unswappable, which I would like
to think would notify your OS not to kill it if you're out of swap space.
--
Randy Kaelber: kaelbers@muohio.edu
DARS Programmer/Analyst, Miami University, Oxford, OH 45056 USA
http://avian.dars.muohio.edu/~kaelbers/
"...As the most participatory form of mass speech yet developed, the
Internet deserves the highest protection from governmental intrusion."
-District Judge Stewart Dalzell, in ACLU et al. v. Reno, USAG; ALA Inc.,
et al. v. US DOJ et al. June 12, 1996 US District Court, Eastern PA
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: out of swap -> killing inetd
1996-07-09 4:00 ` Boyd Roberts
@ 1996-07-09 4:00 ` John Hascall
1996-07-12 4:00 ` Steffen Ullrich
1 sibling, 0 replies; 15+ messages in thread
From: John Hascall @ 1996-07-09 4:00 UTC (permalink / raw)
Boyd Roberts <boyd@france3.fr> wrote:
}steffen@latrade.com says...
}>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.
}Process killing based on memory/swap resource problems was always a
}bad idea. It's next to impossible to determine what to kill and a worst
}case scenario is that everything is killed before the offending process is.
}At least with Digital UNIX you can choose a swap policy to be eager or lazy.
}I'd make it eager and then the chance of this scenario is lessened.
Well, they give you the choice between two not real pleasent choices.
a) lazy mode = take your chances, but save swap space
b) eager mode = offending process gets it, but need LOTS of swap
What would be nice (I think) is:
1) per-process control of lazy/eager
2) ability to mark a process non-swappable
3) a wait/die per-process flag for what to do when no swap available.
all of which can be set external to a process (e.g., no need to
have source/recompile). For example:
# swapctl -noswap `cat /etc/inetd.pid`
# swapctl -lazy 34 47 59
John
--
John Hascall, Software Engr. Shut up, be happy. The conveniences you
ISU Computation Center demanded are now mandatory. -Jello Biafra
john@iastate.edu
http://www.cc.iastate.edu/staff/systems/john/welcome.html <-- the usual crud
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: out of swap -> killing inetd
1996-07-09 4:00 ` Bob Vickers
@ 1996-07-09 4:00 ` Peter da Silva
[not found] ` <ufivbxlzpc.fsf@microl6.microlise.uucp>
1996-07-11 4:00 ` Patrick O'Rourke USG
1996-07-10 4:00 ` Patrick O'Rourke USG
` (2 subsequent siblings)
3 siblings, 2 replies; 15+ messages in thread
From: Peter da Silva @ 1996-07-09 4:00 UTC (permalink / raw)
In article <4rt691$2jl@sun.rhbnc.ac.uk>,
Bob Vickers <R.Vickers@dcs.rhbnc.ac.uk> wrote:
> 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.
That's pretty broken. It should be possible to simply allocate memory pretty
close to real memory + swap without problems, and then have malloc (actually,
sbrk()) and friends generate errors at that point. I don't see why it should
ever be necessary to kill random processes.
--
Peter da Silva (NIC: PJD2) `-_-' 1601 Industrial Boulevard
Bailey Network Management 'U` Sugar Land, TX 77487-5013
+1 713 274 5180 "Har du kramat din varg idag?" USA
Bailey pays for my technical expertise. My opinions probably scare them
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: out of swap -> killing inetd
1996-07-09 4:00 ` Bob Vickers
` (2 preceding siblings ...)
1996-07-10 4:00 ` Andrew Gierth
@ 1996-07-10 4:00 ` Jim Reid
3 siblings, 0 replies; 15+ messages in thread
From: Jim Reid @ 1996-07-10 4:00 UTC (permalink / raw)
Peter> That's pretty broken. It should be possible to simply
Peter> allocate memory pretty close to real memory + swap without
Peter> problems, and then have malloc (actually, sbrk()) and
Peter> friends generate errors at that point.
Sure, but who ever checks the return value from malloc()? :-)
Another solution is to do what's done here: give the servers enough
RAM so that they *never* swap. The down side is that it takes 15-20
minutes to perform the boot-time memory checks....
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: out of swap -> killing inetd
[not found] ` <ufivbxlzpc.fsf@microl6.microlise.uucp>
@ 1996-07-10 4:00 ` Peter da Silva
0 siblings, 0 replies; 15+ messages in thread
From: Peter da Silva @ 1996-07-10 4:00 UTC (permalink / raw)
In article <ufivbxlzpc.fsf@microl6.microlise.uucp>,
Andrew Gierth <andrewg@microlise.co.uk> wrote:
> >>>>> "Bob" == Bob Vickers <R.Vickers@dcs.rhbnc.ac.uk> wrote:
> Bob> It is almost certainly directly related to your swap mode. In
> Bob> immediate swap mode an error occurs at malloc time if swap space
> Bob> is unavailable, and a well written process can easily recover
> Bob> from this. In deferred mode the malloc succeeds but random
> Bob> errors occur later on when the process tries to write to the
> Bob> memory. This is the penalty you pay for the disc space saving
> Bob> which deferred mode gives you.
> >>>>> "Peter" == Peter da Silva <peter@nmti.com> writes:
> Peter> That's pretty broken. It should be possible to simply allocate
> Peter> memory pretty close to real memory + swap without problems,
> Peter> and then have malloc (actually, sbrk()) and friends generate
> Peter> errors at that point. I don't see why it should ever be
> Peter> necessary to kill random processes.
> Errors can only be reported by sbrk() when swap-space allocation is
> being done early.
If you allocate "swap space", yes. If you allocate "virtual memory", which
is the total of swap plus real memory, then you will never allocate memory
that can't be delivered. But you won't need to lock down swap space for each
block of "real" memory that you use. That is, if I have 64M of RAM and 64M
of swap, "eager" allocation will give me 64M total VM, while "lazy" allocation
will give me some number over 128M of VM allowing for blocks backed by
files (programs, mmaped files). Allocation from a total memory pool will
give me 128M of VM, without losing any programs.
While deferred allocation is a reasonable option, eager allocation forces
you to waste a lot of swap.
Another problem I've found is that if you have two swap partitions of uneven
sizes, it will allocate from them evenly and complain when the smallest is
out. *sigh*
--
Peter da Silva (NIC: PJD2) `-_-' 1601 Industrial Boulevard
Bailey Network Management 'U` Sugar Land, TX 77487-5013
+1 713 274 5180 "Har du kramat din varg idag?" USA
Bailey pays for my technical expertise. My opinions probably scare them
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: out of swap -> killing inetd
1996-07-09 4:00 ` Randy Kaelber
@ 1996-07-10 4:00 ` Steffen Ullrich
0 siblings, 0 replies; 15+ messages in thread
From: Steffen Ullrich @ 1996-07-10 4:00 UTC (permalink / raw)
In article <4rtlcg$vua@rose.muohio.edu>,
kaelbers@avian.dars.muohio.edu (Randy Kaelber) writes:
> Steffen Ullrich (steffen@latrade.com) wrote:
>> - can I prevent processes from beeing killed on this kind of
>> problems (or at least killed as the last ones) ? Maybe I
>> could tell the system to first kill the user processes and only
>> if nothing helps to kill the root processes. Better yet,
>> specify the "essential" processes which should never be killed
>> (and if the system cannot solve the problem this way it should
>> better reboot itself).
>
> I don't know if this will help, but check out the plock subroutine.
> Basically what it can do is mark a process unswappable, which I would like
> to think would notify your OS not to kill it if you're out of swap space.
>
I think this would be waste of memory. Every locked page decreases the RAM
available for other programs - even if its nearly never used. And with this
method I could not lock precompiled programs (like inetd) where I don't have the
sources. What I need is something which lets the sysadm specify which programs
are essential - w/o the need to have the source code.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: out of swap -> killing inetd
1996-07-09 4:00 ` Bob Vickers
1996-07-09 4:00 ` Peter da Silva
@ 1996-07-10 4:00 ` Patrick O'Rourke USG
1996-07-10 4:00 ` Andrew Gierth
1996-07-10 4:00 ` Jim Reid
3 siblings, 0 replies; 15+ messages in thread
From: Patrick O'Rourke USG @ 1996-07-10 4:00 UTC (permalink / raw)
Bob Vickers wrote:
>
> 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.
Processes will be killed and unfortunately the victim is chosen somewhat
arbitarily (whoever is being swapped out at the time swap space is
exhausted). Choosing the "best" process to kill is not very easy and
generally not the one with the most virtual memory allocated.
If you want to continue to run in lazy swap mode, perhaps you could
experiment with different amounts of swap space until the problem
goes away. This should give you the minimal amount of swap space
needed for the workload running on the system.
Pat
--
Patrick O'Rourke (603) 881-0124
orourke@zk3.dec.com Office: ZK3/3S05
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: out of swap -> killing inetd
1996-07-09 4:00 ` Bob Vickers
1996-07-09 4:00 ` Peter da Silva
1996-07-10 4:00 ` Patrick O'Rourke USG
@ 1996-07-10 4:00 ` Andrew Gierth
1996-07-10 4:00 ` Jim Reid
3 siblings, 0 replies; 15+ messages in thread
From: Andrew Gierth @ 1996-07-10 4:00 UTC (permalink / raw)
>>>>> "Bob" == Bob Vickers <R.Vickers@dcs.rhbnc.ac.uk> wrote:
Bob> It is almost certainly directly related to your swap mode. In
Bob> immediate swap mode an error occurs at malloc time if swap space
Bob> is unavailable, and a well written process can easily recover
Bob> from this. In deferred mode the malloc succeeds but random
Bob> errors occur later on when the process tries to write to the
Bob> memory. This is the penalty you pay for the disc space saving
Bob> which deferred mode gives you.
>>>>> "Peter" == Peter da Silva <peter@nmti.com> writes:
Peter> That's pretty broken. It should be possible to simply allocate
Peter> memory pretty close to real memory + swap without problems,
Peter> and then have malloc (actually, sbrk()) and friends generate
Peter> errors at that point. I don't see why it should ever be
Peter> necessary to kill random processes.
Errors can only be reported by sbrk() when swap-space allocation is
being done early. The whole point of deferred swap allocation is *not*
to allocate swap space simply because sbrk() has been called; this
allows, for example, the use of sparse-memory algorithms (without
requiring gigabytes of swap). The early allocation scheme has some
particular disadvantages; on most systems I've encountered it was always
necessary to configure substantially more swap that could ever actually
be used, simply to ensure that memory *could* be allocated for things
that, in fact, were never going to consume swap space.
With deferred allocation, swap space is reserved when pages are actually
referenced. Since there is no obvious mechanism for the kernel to report
an out of memory condition on what is, after all, an innocent memory
access by the program, there is little choice except to kill the process
(or some other process, to free up some swap space).
I'm not familiar with Digital Unix (last time I used it it was called
Ultrix :-), but I have had the usual amount of fun with deferred swap
allocation on AIX. AIX has a particular order of preference for which
processes it kills when running low on swap, and also has the ability
to set early allocation on a per-process basis, with these processes
being exempt from paging-space kills.
The whole immediate vs deferred allocation thing is a tradeoff, anyway.
Having it optional seems to me to be a reasonable behaviour. I am less
impressed by the apparent majority of implementations that appear to
have simply rejected deferred allocation out of hand.
--
Andrew Gierth (andrewg@microlise.co.uk)
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: out of swap -> killing inetd
1996-07-09 4:00 ` Peter da Silva
[not found] ` <ufivbxlzpc.fsf@microl6.microlise.uucp>
@ 1996-07-11 4:00 ` Patrick O'Rourke USG
1 sibling, 0 replies; 15+ messages in thread
From: Patrick O'Rourke USG @ 1996-07-11 4:00 UTC (permalink / raw)
Peter da Silva wrote:
>
> In article <4rt691$2jl@sun.rhbnc.ac.uk>,
> Bob Vickers <R.Vickers@dcs.rhbnc.ac.uk> wrote:
> > 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.
This is not entirely accurate, as far as Digital Unix is concerned. Processes will
not get errors when attempting to write to memory. If no memory is available, the
process will block until it becomes available. The only time an error will occur
here is if there's a problem reading the page in off of some external media.
> That's pretty broken. It should be possible to simply allocate memory pretty
> close to real memory + swap without problems, and then have malloc (actually,
> sbrk()) and friends generate errors at that point. I don't see why it should
> ever be necessary to kill random processes.
This is essentially what happens. As processes consume real memory, the
pageout thread will attempt to keep memory available by paging out the
oldest resident pages. If the pageout thread cannot keep up, task swapping
will begin. So at the point that a process is killed, all of memory and
swap space have been consumed.
Pat
--
Patrick O'Rourke (603) 881-0124
orourke@zk3.dec.com Office: ZK3/3S05
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: out of swap -> killing inetd
1996-07-09 4:00 ` Boyd Roberts
1996-07-09 4:00 ` John Hascall
@ 1996-07-12 4:00 ` Steffen Ullrich
1 sibling, 0 replies; 15+ messages in thread
From: Steffen Ullrich @ 1996-07-12 4:00 UTC (permalink / raw)
In article <4rtqbf$dp9@news.iastate.edu>,
john@iastate.edu (John Hascall) writes:
> Boyd Roberts <boyd@france3.fr> wrote:
> }steffen@latrade.com says...
> }>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.
>
> }Process killing based on memory/swap resource problems was always a
> }bad idea. It's next to impossible to determine what to kill and a worst
> }case scenario is that everything is killed before the offending process is.
>
> }At least with Digital UNIX you can choose a swap policy to be eager or lazy.
> }I'd make it eager and then the chance of this scenario is lessened.
>
> Well, they give you the choice between two not real pleasent choices.
> a) lazy mode = take your chances, but save swap space
> b) eager mode = offending process gets it, but need LOTS of swap
>
> What would be nice (I think) is:
> 1) per-process control of lazy/eager
> 2) ability to mark a process non-swappable
> 3) a wait/die per-process flag for what to do when no swap available.
> all of which can be set external to a process (e.g., no need to
> have source/recompile). For example:
>
> # swapctl -noswap `cat /etc/inetd.pid`
> # swapctl -lazy 34 47 59
I think the problem is a bit harder to solve.
First it makes IMO no sense to force the system not to swap inetd. In this way
we loose some of the RAM, even if its nearly never used by the process. Then we
still can get the situation that all RAM+swap is used but somebody needs to
remote login. In this case inetd would maybe need to allocate more memory which
it could not because there is no more memory available. And even if there is a tiny
piece of memory available inetd needs to fork+exec the in.rlogind to actually
respond to the request on the port. So we must guarantee that not only inetd gets
enough mem but also some other processes which gets spawned by inetd.
That means that we need to assign memory priorities by process image and not
by PID and that other processes with less priority needs to be killed if necessary.
And if the processes with the highest mem priority cannot get more memory,
e.g. if all memory is used by this high priority processes than we know that
something went completly wrong and the system better reboots itself immediatly.
And again, I don't think that this problem has anything to do with the swap
mode you use.
^ permalink raw reply [flat|nested] 15+ messages in thread
* out of swap -> killing inetd
@ 1996-07-13 4:00 Steffen Ullrich
0 siblings, 0 replies; 15+ messages in thread
From: Steffen Ullrich @ 1996-07-13 4:00 UTC (permalink / raw)
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:
- can I prevent processes from beeing killed on this kind of
problems (or at least killed as the last ones) ? Maybe I
could tell the system to first kill the user processes and only
if nothing helps to kill the root processes. Better yet,
specify the "essential" processes which should never be killed
(and if the system cannot solve the problem this way it should
better reboot itself).
- can a process have a higher priority in the way that if the process
requests more memory it should get it, even if other processes
with less "memory priority" needs to be killed?
- What solutions to these problems (killing the wrong, memory priorities)
offer other systems (process quota are of no help in this situation).
Does anybody know how these problems are handled on non UNIX's like
VMS and WindowsNT?
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).
--
Steffen Ullrich
ccrlphr@xensei.com
http://www.xensei.com/users/ccrlphr/
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: out of swap -> killing inetd
1996-07-08 4:00 out of swap -> killing inetd Steffen Ullrich
` (2 preceding siblings ...)
1996-07-09 4:00 ` Boyd Roberts
@ 1996-07-23 4:00 ` Brian James O'Connor
3 siblings, 0 replies; 15+ messages in thread
From: Brian James O'Connor @ 1996-07-23 4:00 UTC (permalink / raw)
Steffen Ullrich (steffen@latrade.com) 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:
: - can I prevent processes from beeing killed on this kind of
: problems (or at least killed as the last ones) ? Maybe I
: could tell the system to first kill the user processes and only
: if nothing helps to kill the root processes. Better yet,
: specify the "essential" processes which should never be killed
: (and if the system cannot solve the problem this way it should
: better reboot itself).
: - can a process have a higher priority in the way that if the process
: requests more memory it should get it, even if other processes
: with less "memory priority" needs to be killed?
: - What solutions to these problems (killing the wrong, memory priorities)
: offer other systems (process quota are of no help in this situation).
: Does anybody know how these problems are handled on non UNIX's like
: VMS and WindowsNT?
: 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).
I have had the same experiences with 3.2b.
I may just be lucky, but after I installed the following patch
===============================================================================
/usr/sys/BINARY/syscall_subr.o
CHECKSUM: 37762 18 RCS: 4.3.27.2
-----------------------
Patch ID: OSF325-320127
Installation Instructions - A kernel build is required.
Problem 1: (Patch ID: OSF325-320127) (HPAQ5459E)
**********
A bug in swtch() allows a lower priority job to preempt a
job with a higher priority.
===============================================================================
I have not had any more problems.
The patch doesn't specifically address the memory problems,
but as I said, it seemed to work!
boc
--
------------------------------------------------------------
Brian O'Connor, Unix Systems Consultant
Latrobe University,Bendigo
boc@ironbark.bendigo.latrobe.edu.au
------------------------------------------------------------
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~1996-07-23 4:00 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-07-08 4:00 out of swap -> killing inetd Steffen Ullrich
1996-07-09 4:00 ` Bob Vickers
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 ` Patrick O'Rourke USG
1996-07-10 4:00 ` Andrew Gierth
1996-07-10 4:00 ` Jim Reid
1996-07-09 4:00 ` Randy Kaelber
1996-07-10 4:00 ` Steffen Ullrich
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox