Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Oct 2005 03:00:37 +0400
From:      "Andrew P." <infofarmer@gmail.com>
To:        Doug Lee <dgl@dlee.org>, freebsd-questions@freebsd.org
Subject:   Re: Can a process be made immune to out-of-swap-space kills?
Message-ID:  <cb5206420510291600x4bb48712ue975ddf6a136d04d@mail.gmail.com>
In-Reply-To: <20051029203404.GA9983@kirk.dlee.org>
References:  <20051029203404.GA9983@kirk.dlee.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10/30/05, Doug Lee <dgl@dlee.org> wrote:
> Sometimes, I accidentally run something that eats up too much memory
> and causes the pager to run out of swap space and start shooting down
> processes to rectify the situation.  Sometimes, the process chosen for
> demolition happens to be `screen.'  Since this process sorta manages a
> whole lot of others and, on being zapped out of existence, leaves many
> of them running but inaccessible, I find this choice decidedly
> inconvenient.
>
> Is there a way for me to force FreeBSD to leave `screen' (or any other
> process) alone when selecting something to kill to free memory?
>
> Please Cc me any answers.
>
> Thanks much.
>
>
> --
> Doug Lee           dgl@dlee.org        http://www.dlee.org
> SSB + BART Group         doug@bartsite.com   http://www.bartsite.com
> "Is your cucumber bitter? Throw it away. Are there briars in your
> path? Turn aside. That is enough. Do not go on to say, `Why were
> things of this sort ever brought into the world?'"
> --Marcus Aurelius
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o=
rg"
>

I don't know how to do that, but by all means you
shouldn't allow that to happen. It's not windoze,
where everything is meant to be swapped. Read
limits(1) manpage to know how to prevent a user
from messing with other processes in such an
unfriendly way.

Last time I ran into a problem alike was upgrading
from fedora core 3 to FC4. Yum requested about
4000GB (4 Terabytes) of RAM. The machine
became inaccessible (as in "showing no signs of
life whatsoever") for 5 hours, but in the end
something coredumped and I could login :-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cb5206420510291600x4bb48712ue975ddf6a136d04d>