3 ms·
you do this to minimize latency. to ensure things happen in usecs instead of msecs, this is what you have to do. deliberate tradeoff. it is better to waste
by bdavis__ 8y ago
you do this to minimize latency. to ensure things happen in usecs instead of msecs, this is what you have to do.
deliberate tradeoff. it is better to waste electricity, and to ensure your deadlines are met than for some to be late and some to be early.
changing the speed of a cpu is very expensive in time, and can take a couple of ms to complete (of course, most of this is caused by how it is mechanized in the OS).
- gpderetta 8y agoTrue. Also overclocking and watercooling are common.
- amluto 8y agoTransitions from C0 to C1 and back are very fast [0], and basically any application has at least a core and probably several doing kernel things like servicing network IRQs. I agree that HFT applications should not be using deep C states. [0] Unless you have a misguided feature like C1E auto-promotion on. Fortunately, recent Linux kernels will overriding firmware and turn it off. On Sandy Bridge and possibly newer CPUs with C1E auto-promotion on, resuming from C1 can take many, many milliseconds.