Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

What are benefits of an ordinary Ubuntu kernel compared to realtime one? What are realtime kernel's tradeoffs?

share|improve this question

2 Answers 2

up vote 8 down vote accepted

Realtime kernels can guarantee a certain response time to a process. For example the process has to read each 10ms the values from an control system. In realtime you can assure that no value is dropped.

If you don't operate some kind of manufactoring control system, you simple don't need it.

The overall system performance may be better if the kernel has not to guarantee every process a time slice in a period. (Better I/O utilization, lower process switch overhead etc etc)

To sum up: Realtime does not increase the throughput of a system.

share|improve this answer

Expanding on this answer, there's a general trade-off between throughput and latency (or responsiveness). Throughput is how much work you can do per unit time; latency is how long you wait before you can start new work.

Since there's overhead in switching from one task to another (you need to re-load the old task's state, flush caches, etc), throughput is maximised by switching task as infrequently as possible. On the other hand, latency is minimised by switching rapidly between tasks, so no individual task needs to wait a long time before it can run again. As such, the improved latency in the realtime kernel will come at the cost of decreased peak throughput.

Outside the throughput/latency trade-off there are others to consider; the realtime kernel isn't mainline (yet), so doesn't have as much testing, and the realtime kernel will consume more power (because it wakes the processor more aggressively).

share|improve this answer
    
I read somewhere that even without preemption the Linux kernel already gets good latency. So would even the -server kernel do quite well for normal use? –  NightwishFan Oct 4 '10 at 5:39
1  
Pretty much. You'll get better desktop responsiveness out of the -generic kernel, but I don't think you'll find the -server kernel unusable. –  RAOF Oct 4 '10 at 6:02
    
Yeah, works great. I can run stress with 8cpu 4 vms 1 disk and the audio does not stutter. –  NightwishFan Oct 5 '10 at 3:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.