In comp.os.linux.development.system
(E-Mail Removed) wrote in part:
>
> Tim Roberts wrote:
>> There is a commonly held misconception that kernel
>> mode is somehow faster than user mode. It ain't true.
>> The processor runs the same speed in both modes.
>> Unless you are starting this process from a kernel driver
>> and spending time calling out to user-mode, you aren't
>> ging to gain anything.
>
> Yes. But , was hoping that could avoid the overhead of
> userspace to kernel space transition through this ..
This time shouldn't be significant. The null syscall (getpid)
takes 295 clocks on my old system. This only matters iff you
have a lot of non-blocking syscalls. Then I'd wonder if it
weren't poor pgm design (polling).
Kernel code isn't any faster, and still has to wait on devices.
One case to hoist code into the kernel may be where you can reduce
the number of interrupts. These can have really slow IO overhead
using the XT-PIC. But using APIC may be a better solution.
-- Robert