infiniteregrets/kv-psi
kv-psi
Use Linux Pressure Stall Information to trim an LLM KV cache
5stars
infiniteregrets/kv-psi
kv-psi
A reference implementation using Linux Pressure Stall Information (PSI) to dynamically trim an LLM KV cache under memory pressure, targeting edge devices with unified memory.
Visit project- First shared
- Jun 27, 2026
- HN activity
- 80
Show HN@infiniteregretsJun 27, 2026
Show HN: KV-psi, using Linux PSI to to trim an LLM KV cache
I thought it'd be interesting to use Linux PSI (Pressure Stall Information) for an LLM runtime to trim the KV cache. This is mainly useful imo for edge devices like the Jetson Orin super nano kit which have unified memory. I haven't benched much, but plan to do so more over time and see if I can make a real use of it as I run local LLMs. Let me know if it makes sense :P (I of course vibed this idea)
Community