“Software-defined” Remains a Mirage Amid the Strange Worlds of Socket Cores and OS Kernels

“Software-defined” Remains a Mirage Amid the Strange Worlds of Socket Cores and OS Kernels

A proposed processor architecture, named Layer3CTX, aims to reduce the cost of context switching in data centers. Its author, Cristian Vasile, claims it could reduce the computing capacity loss associated with this mechanism from 15% to 5%. The source does not cite any manufacturer that has put this concept into production.

According to the article, major cloud providers rely on a heavy software layer, composed notably of Linux namespaces, cgroups, hypervisors, and virtual machines, to isolate thousands of containers on processors unaware of their owner. This isolation would cost, according to the author, about 10 to 15% of total server capacity. A container switch forces the Linux kernel into privileged mode (Ring 0), to save registers, lock memory queues, and then flush the TLB (Translation Lookaside Buffer, the memory that speeds up address translation). The new process then starts with empty caches, which the author describes as the “noisy neighbor” problem.

A Hardware Identifier for Each Core

The proposal relies on a triplet of physical registers, VMID (virtual machine identifier), CID (container identifier), and PID (process identifier), duplicated for each logical thread. The VMID would be controlled by the hypervisor in Ring -1, while the CID and PID would be managed by the guest kernel in Ring 0. The TLB would never be flushed again: it would be supplemented by five state bits, indicating for example if a memory page is shared within a container. The 2.6 KB backup context would be stored in a 256 KB zone of each core’s L3 cache, not in RAM.

The concept envisions eight native instructions, presented as commands managed directly by the hardware. SI_CTX_SAVE would freeze the core’s state, and SI_CTX_LOAD would restore it. SI_CTX_ROLLBACK would cancel an interrupted transition, SI_CTX_CLONE would duplicate a context, SI_CTX_YIELD would allow a microservice to yield to a neighboring container, and SI_CTX_FLUSH would erase a context when an ephemeral container ends. The SI_CTX_BEGIN and SI_CTX_COMMIT instructions frame the entire transaction.

A Business Model Based on Service Level Agreements

According to the author, reducing the loss from 15% to 5% would free up ten points of computing capacity without adding a server. In a fleet of one million nodes, this would represent a gain equivalent to 100,000 servers, which would, he says, save hundreds of millions of dollars in investment. The proposal also envisions three service levels. The Gold level would guarantee an exclusive share of the L3 cache, the Silver level would operate in best-effort mode with reduced frequency during peaks, and the Bronze level would offer “spot” instances that only run when the core has free cycles, before being suspended as soon as a Gold or Silver level load needs it.

S’abonner
Notification pour
guest

0 Commentaires
Le plus ancien
Le plus récent Le plus populaire
0
Nous aimerions avoir votre avis, veuillez laisser un commentaire.x