<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ida-tui.git/docs/PAGING_FINDINGS.md, branch main</title>
<subtitle>tui for headless ida</subtitle>
<id>https://git.sl0p.foo/ida-tui.git/atom/docs/PAGING_FINDINGS.md?h=main</id>
<link rel='self' href='https://git.sl0p.foo/ida-tui.git/atom/docs/PAGING_FINDINGS.md?h=main'/>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/ida-tui.git/'/>
<updated>2026-07-09T13:55:38Z</updated>
<entry>
<title>stop piling up idalib workers; raise max-workers headroom</title>
<updated>2026-07-09T13:55:38Z</updated>
<author>
<name>blasty</name>
<email>blasty@local</email>
</author>
<published>2026-07-09T13:55:38Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/ida-tui.git/commit/?id=4a83deb7bc2dcfed4696cd1bf2542a947ad7c4fb'/>
<id>urn:sha1:4a83deb7bc2dcfed4696cd1bf2542a947ad7c4fb</id>
<content type='text'>
Root cause of 'Maximum idalib worker count reached': the app bumped idle_ttl to
~never on every open, so sessions never freed and hit the default cap of 4.

- app: drop the immortal bump_idle_ttl(1e9); rely on the KeepAlive heartbeat
  (120s) to keep the running session warm, and open with a moderate idle_ttl
  (1800s) so the worker self-exits and frees its slot after the TUI closes.
- spawn.sh: set IDA_MCP_MAX_WORKERS (default 8) for headroom.
- doc: supervisor prunes unreachable workers before counting, so killing an idle
  worker frees a slot on the next open.

(Verified separately: big/truncated decompile results propagate renames fine via
the earlier force_recompile fix.)
</content>
</entry>
<entry>
<title>keep idle workers alive: bump_idle_ttl + KeepAlive heartbeat</title>
<updated>2026-07-09T09:55:43Z</updated>
<author>
<name>blasty</name>
<email>blasty@local</email>
</author>
<published>2026-07-09T09:55:43Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/ida-tui.git/commit/?id=21d2cbbfcdbb712b907573b784bc9d98d5c5e648'/>
<id>urn:sha1:21d2cbbfcdbb712b907573b784bc9d98d5c5e648</id>
<content type='text'>
Root cause: idalib workers run an idle watchdog (worker_lifecycle.py) that
self-exits after idle_ttl_sec (default 600s) of no requests -- deliberate
resource hygiene for a shared/ephemeral supervisor, wrong for an interactive
TUI. CLI-opened startup binary always gets 600s (no flag).

Fix (both verified against a 12s-TTL session):
- IDAClient.bump_idle_ttl(1e9): re-open (idempotent) re-applies TTL, no upper
  cap -&gt; effectively immortal. Primary fix, call once at startup.
- IDAClient.keepalive()/KeepAlive: background server_health heartbeat resets the
  watchdog; covers adopted sessions too. Safety net.

tests/test_keepalive.py: 4/4 (heartbeat + bump both keep a short-TTL worker
alive past 2x TTL). docs updated with why + fix.
</content>
</entry>
<entry>
<title>domain/paging layer: FunctionIndex, block-cached DisasmModel, decompile, resolve</title>
<updated>2026-07-09T09:45:45Z</updated>
<author>
<name>blasty</name>
<email>blasty@local</email>
</author>
<published>2026-07-09T09:45:45Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/ida-tui.git/commit/?id=5bfcfa8f01d6f0e0d7535639eaa341fcce9fd9b8'/>
<id>urn:sha1:5bfcfa8f01d6f0e0d7535639eaa341fcce9fd9b8</id>
<content type='text'>
- Program: model registry + small prefetch pool; cache invalidation hooks
- FunctionIndex: lazy pagination (advance by len, clamp page=500), filter globs,
  viewport windows; full 10,092-func enumerate matches survey in ~3.1s
- DisasmModel: block-cached windowed disasm (256/block), forward+back prefetch,
  cached instruction totals; deep window revisit 196ms -&gt; 0ms (cache proven)
- Decompilation: truncation-aware, hard-failure surfaced as data (monster funcs)
- resolve(): int/hex/symbol via lookup_funcs (string-array query shape)
- tests/test_domain.py: 17/17 on both ls (~290 funcs) and libcrypto (10k+52k-insn)
- smoke_client no longer assumes 'main' exists (works on libraries)
- doc: idle_ttl worker self-exit finding ("not reachable" needs re-open)
</content>
</entry>
<entry>
<title>stress paging on 10k-func binary; document scale constraints</title>
<updated>2026-07-09T09:35:24Z</updated>
<author>
<name>blasty</name>
<email>blasty@local</email>
</author>
<published>2026-07-09T09:35:24Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/ida-tui.git/commit/?id=60daddf0a9477c32ed51937845e792f9229fdda4'/>
<id>urn:sha1:60daddf0a9477c32ed51937845e792f9229fdda4</id>
<content type='text'>
Measured against libcrypto.so.3 (10,092 funcs, biggest 52,120 insns):
- list_* count cap ~700, disasm max_instructions cap ~500, then SILENT
  collapse to 10 (not clamped) -&gt; must clamp client-side (use 500).
- pagination must advance by len(data); next_offset=offset+count skips data.
- disasm offset paging is O(offset): 6ms@0 -&gt; 180ms@50k, no resumable cursor
  -&gt; domain layer must cache windows + prefetch + over-fetch.
- include_total scans whole func (~217ms on monster) -&gt; fetch once, cache.
- decompile hard-fails on huge funcs as a soft error (code=null) -&gt; handle.
- idb_open needs a writable path for the .i64.

tests/stress_paging.py: durable paging benchmark harness
docs/PAGING_FINDINGS.md: constraints that drive the paging layer
</content>
</entry>
</feed>
