Re: [PATCH] Reserve N process to root

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Al Boldi <a1426z@...>
Cc: LKML Kernel <linux-kernel@...>, <g@...>, Valdis Kletnieks <Valdis.Kletnieks@...>
Date: Thursday, October 11, 2007 - 10:42 pm

Please don't trim CC lists

On Oct 11, 2007, at 17:02:37, Al Boldi wrote:

This isn't really necessary any more with the new CFS scheduler.  If  
you want to prevent excess memory usage then you limit memory usage,  
not process count, so just set the system max process count to  
something absurdly high and leave the user counts down at the maximum  
a user might run.  Then as long as the sum of the user processes is  
less than the max number of processes (which you just set absurdly  
high or unlimited), you may still log in.  With the per-user  
scheduling enabled CFS allows you to run an optimistically-real-time  
game as one user and several thousand busy-loops as another user and  
get almost picture perfect 50% CPU distribution between the users.   
To me that seems a much better DoS-prevention system than limits  
which don't scale based on how many people are requesting resources.

Cheers,
Kyle Moffett

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Reserve N process to root, Al Boldi, (Thu Oct 11, 5:02 pm)
Re: [PATCH] Reserve N process to root, Kyle Moffett, (Thu Oct 11, 10:42 pm)
Re: [PATCH] Reserve N process to root, Al Boldi, (Fri Oct 12, 1:37 am)
Re: [PATCH] Reserve N process to root, Kyle Moffett, (Fri Oct 12, 1:49 am)
Re: [PATCH] Reserve N process to root, Al Boldi, (Fri Oct 12, 2:29 am)
Re: [PATCH] Reserve N process to root, Gustavo Chain, (Fri Oct 12, 9:34 pm)
Re: [PATCH] Reserve N process to root, Al Boldi, (Sat Oct 13, 1:01 am)