一句话:提出内核空间APU加速框架LAIKA,通过零拷贝与持久内核消除I/O瓶颈,将推理延迟最多降低9.7倍并显著降功耗。
将机器学习引入操作系统内核时,卸载到独立GPU(dGPU)的高延迟是主要瓶颈:跨PCIe的数据传输可占总执行时间的93%以上。本文提出LAIKA,一个内核空间加速框架,转而利用APU中集成GPU(iGPU)的统一内存。LAIKA包含三个机制:轻量API代理AProxy安全连接内核与用户态边界;三域共享内存管理器AShm实现真正的零拷贝数据交换;APU持久内核APK消除控制路径开销。在代表性内核负载上,LAIKA通过消除I/O瓶颈,将端到端推理延迟最多降低9.7倍,并将系统总功耗降至优化dGPU基线的28.9%。工作表明iGPU是内核内ML加速的实用高效方案。
The integration of machine learning (ML) into OS kernels is severely hampered by the high latency of offloading to discrete GPUs (dGPUs), where data transfers across the PCIe bus can consume over 93% of the total execution time. This paper argues that for many latency-sensitive kernel tasks, the solution is not a more powerful dGPU but a fundamental shift to an I/O-efficient architecture: the integrated GPU (iGPU) found in modern APUs. We present LAIKA, a kernel-space acceleration framework that fully exploits the APU's unified memory. LAIKA combines three key mechanisms: a lightweight API proxy (AProxy) to safely bridge the kernel-user boundary, a tri-domain shared memory manager (AShm) for true zero-copy data exchange, and APU Persistent Kernel (APK) to eliminate control-path overhead. Across a suite of representative kernel workloads, our evaluation shows that by eliminating the I/O bottleneck, LAIKA slashes end-to-end inference latency by up to 9.7× and reduces total system power to as little as 28.9% of an optimized dGPU baseline. Our work identifies iGPUs as a practical and highly efficient alternative for machine learning acceleration within OS kernels.