|
|
|
@ -100,7 +100,7 @@ def kill_hogs(memory_threshold,
@@ -100,7 +100,7 @@ def kill_hogs(memory_threshold,
|
|
|
|
|
username = proc.username() |
|
|
|
|
if not ((username[0] in ('s', 'p', 'f') and username[1:].isdigit()) |
|
|
|
|
or username[:5] == 'umcg-'): |
|
|
|
|
continue # we only kill processes of p, s and f accounts.a |
|
|
|
|
continue # we only kill processes of p, s and f accounts |
|
|
|
|
|
|
|
|
|
users[username]['memory_percent'] += proc.cached_memory_percent |
|
|
|
|
users[username]['cpu_percent'] += proc.cached_cpu_percent |
|
|
|
|