Hacker News
Show HN: Replacing my OS process scheduler with an LLM
devmor
|next
[-]
I wouldn't call it replacing the scheduler though - more that you've made a scheduler manager.
ImPrajyoth
|next
|previous
[-]
With Groq speed (Llama 3 @ 800t/s), inference is finally fast enough to be in the system loop.
i built this TUI to monitor my process tree. instead of just showing CPU %, it checks the context (parent process, disk I/O) to decide if a process is compiling code or bloatware. It roasts, throttles, or kills based on that.
Its my experiment in "Intelligent Kernels" how they would be. i used Delta Caching to keep overhead low.
2001zhaozhao
|next
|previous
[-]
ImPrajyoth
|root
|parent
[-]
p_ing
|next
|previous
[-]
ImPrajyoth
|root
|parent
[-]
think of this more as a High-Level Governor. The NTOS scheduler decides which thread runs next, but this LLM decides if that process deserves to exist at all.
basically; NTOS tries to be fair to every process. BrainKernel overrides that fairness with judgment. if i suspend a process, i have effectively vetoed the scheduler.
p_ing
|root
|parent
[-]
This is a super simplification of the NTOS scheduler. It's not that dumb!
> if i suspend a process, i have effectively vetoed the scheduler.
I mean, I suppose? It's the NTOS scheduler doing the suspension. It's like changing the priority level -- sure, you can do it, but it's generally to your detriment outside of corner cases.
Agent_Builder
|previous
[-]
ImPrajyoth
|root
|parent
[-]
If I'm AFK and it kills my IDE? I treat that as the system telling me to touch grass.