Skip to content

Instantly share code, notes, and snippets.

View harshavmb's full-sized avatar
🎯
NannyAI

Harshavardhan Musanalli harshavmb

🎯
NannyAI
View GitHub Profile
@harshavmb
harshavmb / ghostty-memleak.md
Last active January 11, 2026 17:33
ghostty memleak detection with bpf

Replicate ghostty memleak as suggested here. This works only on Linux with bcc-tools package installated.

Modify your current ghostty config file to have a very small scrollback limit. This ensures you hit the pruning logic immediately.

# Most likely in ~/.config/ghostty/config file
scrollback-limit = 100

Below code forces ghostty to non-standard page allocation. Run this on ghostty terminal (that doesn't contain the fix)