Page 3 of 3
Re: Syscalls versus Call Gates
Posted: Fri Feb 13, 2009 10:52 am
by AJ
Thread necro of the year (so far) award
Re: Syscalls versus Call Gates
Posted: Fri Feb 13, 2009 3:06 pm
by xlq
For software isolation, surely array accesses would have to be bounds-checked? Static analysis can only go so far. Wouldn't the time spent bounds checking be far greater than any time saved from the MMU, address space switching, privilege level switching, TLB invalidating and the other reasons mentioned above?
Re: Syscalls versus Call Gates
Posted: Sat Feb 14, 2009 12:14 am
by Colonel Kernel
Read section 4.4 of
this paper.
In a nutshell, run-time checks add about 4.5% overhead, but for many types of real-world tasks this will be outweighed by the cost of ring transitions, TLB misses, etc.
Re: Syscalls versus Call Gates
Posted: Sat Feb 14, 2009 6:35 am
by xlq
Thank you for the link to the paper, Colonel. I tried downloading various papers from Microsoft's website, but the server just wasn't working. I wonder what server software they're running