Re: gradual timeofday overhaul

From: Chris Friesen
Date: Thu Oct 21 2004 - 17:56:44 EST


Perez-Gonzalez, Inaky wrote:

Now, the ugly case would be if number_of_context_swiches_per_second > HZ.
In HZ = 100, this could be happening, but in HZ=1000, in a single CPU
...well, that would be TOO weird [of course, a real-time app with a 1ms period would do that, but it'd require at least an HZ of 10000 to
work more or less ok and we'd be below the watermark].

It's easy to have >>1000 context switches per second on a server. Consider a web server that receives a network packet, issues a request to a database, hands some work off to a thread so the main app doesn't block, then sends a response. That could be a half dozen context switches per packet. If you have 20000 packets/sec coming in....


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/