Re: prevent out of memory
From: Jean-David Beyer (jdbeyer_at_exit109.com)
Date: 07/30/04
- Previous message: Bit Twister: "Re: xterm stopped working after changing static ip to dynamic"
- In reply to: carloschoenberg_at_yahoo.com: "prevent out of memory"
- Next in thread: Juhan Leemet: "Re: prevent out of memory"
- Reply: Juhan Leemet: "Re: prevent out of memory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Jul 2004 09:30:51 -0400
carloschoenberg@yahoo.com wrote:
> Is there any way to configure a system so that a single user can not
> run the system out of virtual memory? I want there to always be some
> memory for root so that I can always ssh into the box or log in on the
> console and kill the offending processes.
>
> Please note that a per process limit less than available memory+swap
> is not sufficient, because two processes can still run the system out
> of memory.
If the problem is a small one, just have sufficient swap space. I have 4
GBytes RAM and four 2 GByte swap partitions (that seldom get used much;
5564K bytes used at the moment). I am not sure just how much swap space
you can have, though (at least at one time) there was a 2 GByte limit to
the size of any one swap partition. At an even earlier time, the limit on
swap partition size was about 1 GByte.
If you have users who run you out of swap space, you may need some other
limitations on them (as suggested by other posters), but they may well
need additional education as well.
In the old days in UNIX, the problem was to have at least one slot left in
the process table so root could get in to do things. That had not been
thought of at first and it was necessary to reboot when things got out of
control. I am not sure how Linux handles this, but the proc table may no
longer be of fixed size.
-- .~. Jean-David Beyer Registered Linux User 85642. /V\ Registered Machine 241939. /( )\ Shrewsbury, New Jersey http://counter.li.org ^^-^^ 09:19:59 up 3 days, 18:21, 3 users, load average: 4.19, 4.13, 4.10
- Previous message: Bit Twister: "Re: xterm stopped working after changing static ip to dynamic"
- In reply to: carloschoenberg_at_yahoo.com: "prevent out of memory"
- Next in thread: Juhan Leemet: "Re: prevent out of memory"
- Reply: Juhan Leemet: "Re: prevent out of memory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|