News for hackers. Stuff that matters.
Re:IBM CTO Sees Smaller Container Platforms Ahead by ahoka on Tuesday December 31, 2019 @10:14AM (#21921469)
What's so wrong with the context switch? You need to have some anyway if you want threads in your unikernel.
Re:IBM CTO Sees Smaller Container Platforms Ahead by eyberg on Tuesday December 31, 2019 @10:27AM (#21921580)
This is a common misunderstanding. There are many different types of context switching and you need the context (heh!) To compare apples to apples.

Kernel to userland, thread to thread, process to process, kernel thread vs user thread, etc. It's conflated because different threading models and different kernel/userland separations exist.

Generally speaking (in linux) threads perform much much faster than switching processes.

Re:IBM CTO Sees Smaller Container Platforms Ahead by rwmj on Wednesday January 01, 2020 @11:24AM (#21928700)
This is right, and the other mistake people make is measuring just the context switch, and not the many hundreds of thousands of cycles after the context switch spent repopulating the cache.