Friday, December 11, 2020

AF_XDP and the linux kernel, this is gonna be big

I've been talking about kernel bypass for a long time. Now, it's being distributed with the linux kernel. It's now possible to intercept packets before they hit the kernel. Xilinx is now taking advantage of the feature. Amazing times!

See the github repo here.

Sunday, January 28, 2018

Howto fix the Spectre and Meltdown exploits

In prod, use bare metal servers which you completely control. Anytime there is a chance of someone running a VM on the same physical server as yourself, which is out of your control, the threat surface exists. Keep it simple, and ensure you have complete control of the bare metal server. AWS is in the process of providing bare metal options. And www.packet.net has already been doing this for quite some time.

Friday, January 5, 2018

Performance workaround for Meltdown and Spectre exploits/vulerabilities

Those of us familiar with kernel-bypass techniques are keenly aware of the overhead in the user/kernel transition, especially when multiplexing many thousands of tcp sockets.

Believe it or not, Windows already has the pieces needed to recover the lost performance, due to the new security fix overhead found in the user/kernel transition when doing socket i/o. We can create what is essentially a user-mode tcpip stack using Windows RIO (aka Registered i/o) to batch many tcpip packets into a single user/kernel transition. Combine with the User Mode Scheduler (UMS), which basically intercepts i/o calls, before incurring the overhead of the user/kernel transition, and batches these calls into our RIO based tcpip engine.

This infrastructure could then be a shim layer within windows docker containers running both windows and linux.

What we need now is a UMS concept on the linux side so the same can be done.

BTW, Intel CEO Brian Krzanich needs to go asap. Given the stock sale, he is doing more harm than good.

Tuesday, April 4, 2017

Low latency, high throughput TCP

For C++ devs looking to push the envelope with respect to latency and throughput when using TCP, checkout mTCP! https://github.com/eunyoung14/mtcp

Tuesday, March 14, 2017

Async and await on the JVM

For those interested, this is a very very big deal.  Many of us from the C# side of things have been longing for async await on the JVM.  While I realize Quasar has been around for a while, Kotlin has a much more elegant compiler supported approach.  This is awesome!!

https://blog.jetbrains.com/kotlin/2017/03/kotlin-1-1/
https://github.com/Kotlin/kotlin-coroutines
https://github.com/Kotlin/kotlinx.coroutines

Given Kotlin will support native code compilation in the future on everything from IOS, Android to the PC, the possibilities for having a single build which targets all platforms are getting closer.

Saturday, June 21, 2014

Intel, Xeon, FPGA

I've been waiting years for an on die FPGA!

http://www.extremetech.com/extreme/184828-intel-unveils-new-xeon-chip-with-integrated-fpga-touts-20x-performance-boost

Time to brush up on the Verilog.  Combine with C++ and mcorelab, we'll finally be able to really cook!  High throughput message routing based on topic paths or tag/value pairs will now be possible.  The line between network switch and application is finally starting to blur, and high throughput applications will be easier to build with commodity servers.