5 ms·
It's an interesting idea, but as far as I can tell, it doesn't take advantage of the fact that all usermode code is sandboxed. You could potentially run everyth
by lachlan-sneff 8y ago
It's an interesting idea, but as far as I can tell, it doesn't take advantage of the fact that all usermode code is sandboxed. You could potentially run everything in supervisor mode/ring 0 and remove a lot of the systemcall overhead.
- earenndil 8y agoAs predicted by gary bernhardt[1]. FWIW, I don't think doing that will be a net win. I/O-bound applications might run slightly faster (I think gary bernhardt's number was 5%), but in exchange they'll take quite a bit more system resources, which mean increased power use and reduced lifespan. 1: https://www.destroyallsoftware.com/talks/the-birth-and-death-of-javascript https://www.destroyallsoftware.com/talks/the-birth-and-death...
- lachlan-sneff 8y agoCould you explain what you mean by saying that they'll take more system resources?
- earenndil 8y agoMore ram, cpu usage, etc. So, imagine you have a given task. One option is it takes 60ms to execute and during that time it takes 50% cpu. Or, it takes 50ms to execute but takes 80% cpu. The second one takes less wallclock time but more cpu time.