4 ms·
I don’t know what you think the practical benefit of running with no OS is?
by chrisseaton 6y ago
I don’t know what you think the practical benefit of running with no OS is?
- bboygravity 6y agoMore processing capacity for your application (no need to share with OS), no more interruptions by the OS that are unpredictable in duration, no more interruptions by the OS that are unpredictable in terms of timing and priority and above all, since this seems to be the main goal of the software we're talking about: lower overall latency. Standard C++/JAVA (as far as I know) talks to hardware through a software layer (the OS's system calls). This takes time. Time you can save by cutting out the middle man. There are apparently ways to do this with an OS running in parallel as well though when you have multiple cores available apparently (see another comment to this thread).
- chrisseaton 6y agoYou can get all this by pinning to a core and DMA to hardware. Think of the OS like a library - if you don't call it and don't ask it to call you it stays out of the way. There's no need to throw away the OS.
- vgatherps 6y agoThis is exactly what is done. OS’s are really nice to have around and will stay out of the way. In the day and age of fpgas no reason to ruin the software side to maybe kind of sort of get a bit faster in your software?
- toolslive 6y ago- raw, unshared access to devices. - no more interrupts. You can get really close to this via virtualization though. Run a guest machine without operating system on the hypervisor. It doesn't even have to be low level code to get most of the benefits (for example MirageOS)
- chrisseaton 6y ago> raw, unshared access to devices Get to OS to set up DMA for you. > no more interrupts If the OS has no need to interrupt you, it will never interrupt you. The OS doesn't context switch from a usefully running application on its own core unless you ask it to. Don't need virtualisation.