[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: memory overcommitment
> If you can suggest a good algorithm for selecting processes to kill,
> we'd love to hear about it. The best algorithm will not be the same for
> all users.
How bout: if(no_more_ram) kill(process_using_most_ram());
Of course to be useful it would have to add together the usage of multiple
instances of a program of the same uid(and then kill all of them too!).
Furthermore you might even want to kill uid 0 progs last. This way hopefully an
attacker mallocing way too much or starting a fork bomb would be the one that
gets shafted. (Maybe even write an interface to pass the offending uid to a
userspace program which can then invalidate that user account, send mail, do
cool things etc.) Then what if you(the admin)C do something evil?
Well... don't!
- Chris
--------------------------------------------------------------------------------
Chris Atenasio (chrisa@ultranet.com) -- Friends dont let friends use Windows.
Send me mail with subject "send pgp key" or "word of the day" for autoresponse.
--
This is a majordomo managed list. To unsubscribe, send a message with
the body 'unsubscribe linux-mm me@address' to: majordomo@kvack.org