lkml.org 
[lkml]   [2002]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Killing/balancing processes when overcommited
Date
On 11 September 2002 16:08, Jim Sibley wrote:
> resource
> group priority kill priority
> system 0 0 - never kill
> support 1 1
> payroll 2 2
> production 3 3
> general user 4 4
> production backgournd 5 3
^^^
make sure testing and general user are killed
BEFORE production
> testing 6 5


I like this. Maybe map it to user gid and provide /proc interface?

Let's say on your server you allocated gids this way:
0 - system
100 - support
110 - payroll
120 - production
200 - general user
130 - production background
500 - testing

# echo "0 100 110 120 200 130 500" >/proc/resourceprio
# echo "0 100 110 120 130 200 500" >/proc/killprio
--
vda
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.085 / U:0.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site