github / github/copilot-cli

WSL2: Copilot CLI 1.0.82 consumes ~31 GB RSS and ~57% CPU

未关闭
#4,694 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

area:platform-linux
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

Describe the bug

I'm running copilot cli on WSL.
When running a the model Claud Opus 5 on High Effort on a long running session, at about 47% context usage, and with an agent similar to the thinking-beast-mode the cpu consumption went up and the memory consumption exhausted the available.

Can be related with https://github.com/github/copilot-cli/issues/2208?

Affected version

GitHub Copilot CLI 1.0.82.

Steps to reproduce the behavior

Prompted to produce python scripts to perform statistical analysis on text data. Requested a production ready program.

Expected behavior

No response

Additional context

wsl --version

WSL version: 2.7.12.0
Kernel version: 6.18.33.2-2
WSLg version: 1.0.73.2
MSRDC version: 1.2.7214
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26200.9106

lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 26.04 LTS
Release:        26.04
Codename:       resolute

copilot --version

GitHub Copilot CLI 1.0.82.

cat /proc/21178/status | egrep 'VmRSS|VmSize'

VmSize: 55347188 kB
VmRSS:  30937176 kB

ps aux --sort=-%cpu | head -20

USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
<redacted>    21178 57.3 94.9 55348468 30936924 pts/2 Sl+ 12:24  93:52 /home/<redacted>/.local/bin/copilot

贡献指南

打开贡献指南

从这里开始

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

调研方向

首先,在 WSL2 中使用报告的版本、模型、effort 级别和 agent 样式复现一个长时间运行的 Copilot CLI 会话,同时监控 /proc/21178/status 和 ps 输出。将内存和 CPU 的增长与报告的 31 GB RSS 和 57% CPU 进行比较,然后确认资源耗尽问题已得到解决。

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

评估

技术栈
linux, shell, ubuntu
领域
cli, operating-systems, performance
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

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