LexiKernel on many CPUs
Since image d484004 LexiKernel has boot switches that
spread work over the processor's CPUs. Every switch is off by
default; with all of them off the kernel behaves as before. Set
them on the Panel's LexiKernel page for the next boot (LexiOS and Secure Boot), or on
the kernel command line.
Status, 11/27/2026 (image
d484004): with every switch below on, LexiKernel booted in a virtual machine at 2, 4 and 8 CPUs and served the Panel to 8 clients for 40 seconds each, with no fault line, no panic and no failed request. The switches have not been run on a physical machine yet.
| Switch | Effect | Line in the boot log when it works |
|---|---|---|
lk.user_cpus=all |
User threads start on any online CPU instead of the one that admits them | LK:SMP:USER-CPUS:used=<n>:parallel=<n>:... |
lk.shootdown=nmi |
TLB shootdowns are answered from an NMI, so a CPU in a long system
call with interrupts masked still answers. Needed with
lk.user_cpus=all |
LK:SMP:SHOOTDOWN:NMI |
lk.migrate=on |
A saved, idle user thread may resume on another CPU; kernel threads and running threads never move | LK:SMP:MIGRATE:ON, then
LK:SMP:MIGRATED:<count> |
lk.kthreads=all |
Kernel work and timers run on every CPU (with
lk.user_cpus=all) |
LK:SMP:KTHREADS:ALL once every CPU ran kernel work |
lk.hugepages=on |
2 MiB pages, plus 1 GiB pages when every CPU has them | LK:MEM:HUGEPAGES:2M or 2M+1G |
lk.frame_caches=on |
Per-CPU page caches in front of the page allocator | |
lk.process_lock=per-process |
Sleeps, private futexes, mprotect, munmap,
madvise, clock reads and /sys lookups run
without the machine-wide lock. Every other system call still takes it,
so this switch reports refused |
|
lk.isolcpus=<list> |
Keeps the listed CPUs free of ordinary work |
numa, drm, amdgpu,
nouveau, xe, cpu_power and
nvme_mq exist too, and report refused until
their work is joined to the running kernel; the reason is shown on the
Panel's LexiKernel page. In the virtual machine numa is
refused because it has one memory node.
The switch line
When the Panel starts, the kernel prints the state of every switch in one line:
LK:SWITCHES:user_cpus=active,process_lock=refused,shootdown=active,...
A switch is off (not asked for), active
(its path runs), or refused with a reason. A switch that
was asked for but that nothing took up reads refused, never
off. A refused switch never stops the boot.
What is not done yet
- Most system calls still take one machine-wide lock, so two processes rarely run kernel code at the same time.
- The native GPU drivers are linked in but have not run on a card; GPU work still goes through a Linux guest.
- Placement by memory node has not been tested on a machine with more than one node.
- Of the 170 items of this work list, 29 are closed, 78 partly done, 47 open and 16 not yet examined.