Re:Sub-10 ms Latency in Java: Concurrent GC with Green Threads
by rowanG077 on Wednesday August 05, 2020 @02:13PM
(#24063787)
That's really insanity to me. 10µs is a goddamn long time for a modern computer. That's 30000 clock cycles for a 3Ghz CPU. Each clock cycle can handle multiple instruction. It should be trivial to handle most light computations in this time as long as you ensure the data is in cache.
Re:Sub-10 ms Latency in Java: Concurrent GC with Green Threads
by PaulDavisThe1st on Wednesday August 05, 2020 @08:20PM
(#24067015)
That's a very fair point. I suppose I'm too used to the idea that the code which runs with sub-N-µs latency is going to process a "lot" of data, and that there's no way it will all be in the cache (any cache).
I suppose that if you're working on small amounts of data every time your code executes, then this becomes vastly more reasonable.
10µs ? You can't even afford that many function calls.
Seriously, 10µs is not a sensible target for a general purpose OS, maybe not even for a general purpose CPU. Achievable? Perhaps. But sensible? Not really.