On Thu, 2012-09-27 at 10:45 -0700, da...@lang.hm wrote: > But I thought that this conversation (pgbench) was dealing with long > running processes,
Ah, I think we've got a confusion on long vs short.. yes pgbench is a long-running process, however the tasks might not be long in runnable state. Ie it receives a request, computes a bit, blocks on IO, computes a bit, replies, goes idle to wait for a new request. If all those runnable sections are short enough, it will 'never' be around when the periodic load-balancer does its thing, since that only looks at the tasks in runnable state at that moment in time. I say 'never' because while it will occasionally show up due to pure chance, it will unlikely be a very big player in placement. Once a cpu is overloaded enough to get real queueing they'll show up, get dispersed and then its back to wakeup stuff. Then again, it might be completely irrelevant to pgbench, its been a while since I looked at how it schedules. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/