Re: [patch] memory hog protection

Rik van Riel
2000-04-24T11:01:18Z

On Mon, 24 Apr 2000, Jeff Garzik wrote:
> Rik van Riel wrote:
> > the patch below changes the mm->swap_cnt assignment to put
> > memory hogs at a disadvantage to programs with a smaller
> > RSS.
> [...]
>
> There are many classes of problems where preserving
> interactivity at the expense of a resource hog is a bad not good
> idea. Think of obscure situations like database servers for
> example :)

Firstly, if this code turns out to work, I'll make it sysctl
switchable.

Secondly, about the issue you bring up; suppose a database
server has 75% of memory and with this patch that would be
reduced to 70% of memory, that's only a very small difference
to the database server itself, but a BIG difference to the
dozen or so smaller processes in the system...

regards,

Rik
--
The Internet is not a network of computers. It is a network
of people. That is its real strength.

Wanna talk about the kernel? irc.openprojects.net / #kernelnewbies
http://www.conectiva.com/ http://www.surriel.com/