3 ms·
> Any other tips for squeezing some more perf out? Ditch the OS and go into huge unreal mode ala LoseThos. Disable interrupts in the loop. No MMU means no page
by userbinator 13y ago
> Any other tips for squeezing some more perf out?
Ditch the OS and go into huge unreal mode ala LoseThos. Disable interrupts in the loop. No MMU means no page faults, no TLB, no interrupts, you can't possibly get any faster than that! :-)
More seriously, I think 14.5GB/s is getting close to the limits of memory bandwidth on a single core already. Multicore CPU's memory controllers are optimised for multiple cores accessing memory, so a single one trying to saturate the bus might not perform so well.
- logicchains 13y agoSeriously, someone should take TempleOS (if it's open source) or else make something similar and market it in some form of really high-speed server, I'm sure there'd be demand. Of course, that's assuming it would be possible to achieve decent security on the software level to ensure safe operation without memory protection.
- sbierwagen 13y agoSomething Snabb Switch-like, then, where they disable the Linux task scheduler on 6 out of 8 cores, and do all the scheduling manually: https://news.ycombinator.com/item?id=7250505 https://news.ycombinator.com/item?id=7250505
- Locke1689 13y agoPlaces where people care about this (like HPC) already have customized kernels that run with large pages by default and don't suffer from the poor quality of TempleOS. See https://software.sandia.gov/trac/kitten https://software.sandia.gov/trac/kitten for an example.
- lhgaghl 13y agoWhat exactly do you mean by poor quality? Have you ever run the OS? Do you have a reference to some results that reveal some aspect of it that is poor?
- nkurz 13y agoI haven't explored it, but you might check out http://www.returninfinity.com/baremetalnode.html http://www.returninfinity.com/baremetalnode.html You can also get pretty far on modern Linux by reserving cores for computation with NOHZ_FULL: http://www.breakage.org/2013/11/nohz_fullgodmode/ http://www.breakage.org/2013/11/nohz_fullgodmode/
- count 13y agoHah, that's how Novell Netware got such high performance in file serving back in the day (no protected memory). Funny how things come full circle sometimes...