Messages in this thread | | | Date | Tue, 05 Oct 2004 21:11:59 -0400 | From | Jeff Garzik <> | Subject | Re: Preempt? (was Re: Cannot enable DMA on SATA drive (SCSI-libsata, VIA SATA)) |
| |
Roland Dreier wrote: > Jeff> I strongly recommend disabling kernel preemption. It is a > Jeff> hack that hides bugs. > > Why do you say that? Preempt seems to be the cleanest way to low > latency, and if anything it exposes locking bugs and races rather than > hiding anything.
Clean? Hardly. It breaks up code paths that were never written to be broken up. The proper fix is to locate and fix high latency code paths. Preempt does nothing but hide those high latency code paths, and discourage people from seeking a better solution.
Fix the drivers, rather than bandaid over them with preempt.
If all code paths in the kernel were low latency, then you would not need preempt at all.
Jeff
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |