Skip to content

feat(glyph): tune transmission settings for RPC performance#325

Merged
stackptr merged 1 commit intomainfrom
glyph/transmission-perf-tuning
Mar 10, 2026
Merged

feat(glyph): tune transmission settings for RPC performance#325
stackptr merged 1 commit intomainfrom
glyph/transmission-perf-tuning

Conversation

@stackptr
Copy link
Copy Markdown
Owner

@stackptr stackptr commented Mar 7, 2026

Summary

  • Increase Transmission disk write cache from default 4MB to 256MB to reduce I/O contention blocking the single-threaded RPC event loop
  • Enable download queue (max 5 active, 30min stall timeout) to limit concurrent disk I/O
  • Addresses slow web UI load times (~9-17s) caused by 2000+ loaded torrents

Context

Transmission 4.1.1 has a confirmed performance regression with large torrent counts. The root cause is synchronous disk I/O blocking the RPC thread (#2462, targeted for 5.0). These settings reduce I/O pressure as a mitigation. If insufficient, next step is pinning to transmission 4.0.6.

Test plan

  • Deploy to glyph via nh os switch
  • Verify curl -w "%{time_total}\n" -o /dev/null -s http://localhost:9091 response time improves
  • Confirm torrents.zx.dev loads in reasonable time from browser

🤖 Generated with Claude Code

With 2000+ torrents loaded, Transmission's RPC takes 9-17 seconds to
respond. Increase disk write cache from default 4MB to 256MB and enable
download queue to reduce I/O contention blocking the RPC thread.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@stackptr
Copy link
Copy Markdown
Owner Author

These changes don't fix the issue but are probably sensible to have anyways

@stackptr stackptr merged commit 978605c into main Mar 10, 2026
4 checks passed
@Sekkyo
Copy link
Copy Markdown

Sekkyo commented Mar 22, 2026

@stackptr That's my main question. How was this area of performance degraded so much between 4.0.6 and 4.1? 4.0.6 still works great. What did 4.1 introduce in this area that caused such I/O contention blocking?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants