Re: Xterm Hangs - Possible scheduler defect?

From: Chris Friesen
Date: Thu Feb 24 2005 - 15:30:42 EST


Chad N. Tindel wrote:

OK. Would you say it would be a reasonable default to have SCHED_FIFO userspace
threads running at a lower priority than essential kernel threads (say, the
load balancer and the events thread), and give root the ability to explicitly have userspace threads preempt the kernel?

The current scheduler has a 1-100 priority range for soft realtime tasks. To insert a task into a realtime class, you need to have root privileges.

As long as you make sure that kernel threads get set to higher priorities than your user threads, then you get the above behaviour. Ultimately, however, the administrator is responsable for ensuring that everything is running with sane priority levels.

Chris
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/