Desktop: medir e publicar RAM/CPU com N agentes em paralelo (bench vs Ghostty)

未关闭
#110 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
20/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
rust, tauri
领域
performance

调研方向

Start by reading the memory-related constants the issue cites: the 10k/100k scrollback ceiling in vt/mod.rs:233 and the 2 MiB per-PTY ring in pty/mod.rs:42, then check how disk scrollback (<id>.bin) and the per-tab webview are laid out. From there build a load generator under scripts/ that drives 10 and 30 tabs of agent-like TUI output, sample RSS for the app, hostd and WebContent plus idle CPU and p99 frame time, and run the same script against Ghostty 1.3.1. Done means a numbers table published under docs/, a nightly job that fails on an agreed RSS regression threshold, and a 24 h / 20-tab soak run with no dropped frames. Note the regression percentage is still undefined, so agree on it first.

由索引模型根据 Issue 内容生成。

描述

area: desktop area: terminal type: feature

Problema

Para quem roda muitos agentes em paralelo, o argumento principal para trocar de terminal é "não trava e não come RAM". Hoje não há número publicado: o README fala de 120 Hz e frames sub-ms, mas nada sobre memória por aba nem estabilidade com N agentes por dias.

Pontos que já existem e merecem número: scrollback padrão 10k linhas (teto 100k, vt/mod.rs:233), ring de 2 MiB por PTY no hostd (pty/mod.rs:42), scrollback em disco (<id>.bin), webview Tauri + view nativa por aba.

Proposta

  1. Bench reproduzível (scripts/ ou CI noturno): 10 e 30 abas com um gerador de saída tipo agente (TUI redesenhando + streaming) por 1 h; medir RSS do app, do hostd e do WebContent, CPU ociosa, tempo de frame p99.
  2. Mesma carga no Ghostty 1.3.1 como referência.
  3. Publicar a tabela em docs/ e no site; regressão de RSS > X% falha o job.
  4. Teste de duração: 24 h com 20 abas sem frame perdido (casa com o watchdog da issue anterior).

Aceite

  • Doc com números por versão; job que acusa regressão de memória.
主要语言
Rust
星标
3
派生
1
平均合并
9 小时 51 分钟
30 天内合并 PR
310

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

codeatlasdev/atlas 的其他 Issue

查看 codeatlasdev/atlas 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。