⏺ Bash(sudo footprint 680 2>/dev/null || footprint -p 680 2>/dev/null || echo "footprint not available, trying vmmap" && vmmap -summary 680 2>/dev/null | head -30) ⎿  ====================================================================== ghostty [680]: 64-bit Footprint: 20 GB (16384 bytes per page) ====================================================================== Dirty Clean Reclaimable Regions Category --- --- --- --- --- 20 GB 0 B 0 B 34277 untagged (VM_ALLOCATE) 247 MB 0 B 0 B 23 IOSurface 169 MB 0 B 2288 KB 174 IOAccelerator (graphics) 51 MB 0 B 0 B 1 page table 16 MB 0 B 320 KB 11 MALLOC_MEDIUM 14 MB 0 B 16 KB 15 MALLOC_SMALL 11 MB 0 B 0 B 1 MALLOC_NANO 8256 KB 0 B 0 B 3 IOAccelerator 7856 KB 0 B 0 B 208 Owned physical footprint (unmapped) 7504 KB 0 B 16 KB 34 MALLOC_TINY 4296 KB 16 KB 0 B 934 __DATA 2736 KB 0 B 0 B 93 CoreAnimation 1392 KB 0 B 0 B 45 stack 1344 KB 0 B 0 B 16 CG image 1216 KB 0 B 0 B 9 CoreUI image data 1194 KB 0 B 0 B 710 __AUTH 1088 KB 0 B 0 B 6 CoreImage 821 KB 0 B 0 B 341 __DATA_DIRTY 592 KB 0 B 0 B 49 MALLOC metadata 592 KB 0 B 0 B 31 ColorSync 537 KB 0 B 0 B 2068 unused dyld shared cache area 128 KB 0 B 0 B 1 Accelerate image backing stores 112 KB 144 KB 0 B 965 __DATA_CONST 112 KB 0 B 0 B 8 IOKit 96 KB 0 B 0 B 954 __AUTH_CONST 64 KB 0 B 0 B 2 __TPRO_CONST 48 KB 0 B 0 B 3 CoreGraphics 32 KB 0 B 0 B 1 Activity Tracing 32 KB 0 B 0 B 3 MALLOC_LARGE 16 KB 0 B 0 B 1 os_alloc_once 16 KB 0 B 0 B 2 Foundation 0 B 0 B 22 MB 1 MALLOC_LARGE_REUSABLE 0 B 0 B 16 KB 2 ImageIO 0 B 9456 KB 0 B 76 mapped file 0 B 4704 KB 0 B 987 __TEXT 0 B 16 KB 0 B 6 __LINKEDIT 0 B 0 B 0 B 1 __FONT_DATA 0 B 0 B 0 B 1 __INFO_FILTER 0 B 0 B 0 B 1 __CTF --- --- --- --- --- 20 GB 14 MB 25 MB 42066 TOTAL Auxiliary data: phys_footprint: 20 GB phys_footprint_peak: 20 GB Process: ghostty [680] Path: /Applications/Ghostty.app/Contents/MacOS/ghostty Load Address: 0x100714000 Identifier: ghostty Version: ??? Code Type: ARM64 Platform: macOS Parent Process: launchd [1] Target Type: corpse Date/Time: 2026-01-01 21:06:18.650 -0600 Launch Time: 2026-01-01 20:28:30.669 -0600 OS Version: macOS 15.7.3 (24G419) Report Version: 7 Analysis Tool: /usr/bin/vmmap Physical footprint: 20.2G Physical footprint (peak): 20.3G Idle exit: untracked ---- ReadOnly portion of Libraries: Total=1.7G resident=329.6M(19%) swapped_out_or_unallocated=1.3G(81%) Writable regions: Total=22.1G written=58.2M(0%) resident=114.4M(1%) swapped_out=19.7G(89%) unallocated=2.3G(10%) VIRTUAL RESIDENT DIRTY SWAPPED VOLATILE NONVOL EMPTY REGION REGION TYPE SIZE SIZE SIZE SIZE SIZE SIZE SIZE COUNT (non-coalesced) =========== ======= ======== ===== ======= ======== ====== ===== ======= Accelerate framework 128K 128K 0K 128K 0K 128K 0K 1 Activity Tracing 256K 32K 32K 0K 0K 32K 0K 1 AttributeGraph Data 1024K 336K 336K 16K 0K 0K 0K 1 ∴ Thinking… Found it! Look at this line: 20 GB 0 B 0 B 34277 untagged (VM_ALLOCATE) And then at the bottom: Writable regions: Total=22.1G written=58.2M(0%) resident=114.4M(1%) swapped_out=19.7G(89%) unallocated=2.3G(10%) So 19.7 GB is swapped out - it's not actually in RAM. There's some memory that Ghostty allocated (via VM_ALLOCATE) that's mostly swapped to disk. This is likely a memory leak or large buffer allocation in Ghostty that's not actually being used (hence swapped out). This could be: 1. A memory leak in Ghostty itself (34,277 regions of untagged VM_ALLOCATE = 20GB) 2. Terminal scrollback buffers that have grown very large 3. Some GPU-related memory allocation The key insight is: this isn't actually consuming 20GB of physical RAM - it's 89% swapped out. But it IS a potential problem in Ghostty. The user has been running 3 Claude sessions with lots of output, which could create massive scrollback buffers. Let me check if there's a scrollback setting or if this is a known Ghostty issue. ⏺ Found it! Look at this: 20 GB 0 B 0 B 34277 untagged (VM_ALLOCATE) And: Writable regions: swapped_out=19.7G(89%) 20 GB of untagged (VM_ALLOCATE) memory - and 89% of it is swapped to disk, not actually in RAM. This is likely scrollback buffer accumulation in Ghostty from your 3 Claude sessions running for ~35 minutes with lots of output. This is a Ghostty issue, not Claude. Options: 1. Restart Ghostty - quickest fix 2. Reduce scrollback - in your Ghostty config, add: scrollback-limit = 10000 3. Clear scrollback in each tab: Cmd+K or clear && printf '\e[3J' The good news: it's not actually using 20GB of physical RAM (it's 89% swapped), but Ghostty is leaking/accumulating memory in scrollback that should probably be limited.