Messages in this thread | | | Date | Thu, 24 Feb 2005 15:00:26 -0800 | From | Andrew Morton <> | Subject | Re: Xterm Hangs - Possible scheduler defect? |
| |
"Chad N. Tindel" <chad@tindel.net> wrote: > > I would make the following assertion for any kernel: > > No single userspace thread of execution running on an SMP system should be > able to hose a box by going CPU-bound, bug in the software or no bug.
But if we were to enforce that policy, realtime policy would become less useful. You havn't even acknowledged that such a tradeoff exists, let alone demonstrated that we're on the wrong side of it.
Here's a quicky which will convert all your kernel threads to SCHED_RR, priority 99. Please test.
#!/bin/sh
PIDS=$(ps axo pid,command | grep ' \[.*\]$' | sed -e 's/ \[.*\]$//')
for i in $PIDS do chrt -r 99 -9 $i done
- 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/
| |