lkml.org 
[lkml]   [2006]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Where is RLIMIT_RT_CPU?
From
Date
> Can't you just make a prio 1 task which signals a prio 99 once say every 
> second. If the priority 99 task doesn't get the signal after say 2
> seconds, it will look for a rt task running wild. At worst it will have to do
> an O(n) algorith when things have gone wrong, not when everything is
> working.

Well, that would work in sort of preventing a complete lockup, but the
watchdog wouldn't even know if the task eating lots of CPU is privileged
(OK) or unprivileged (not OK). Also, the original RLIMIT_RT_CPU feature
allowed you to really control how much CPU is available to unprivileged
users, not just prevent them from getting 100% CPU.

Jean-Marc
-
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: 2006-07-15 01:23    [W:0.074 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site