ubuntu gnome-shell 进程占用内存过多的问题
问题表现
设备运行一段时间后, gnome-shell 会占用系统中大量的内存,甚至导致设备假死,只能强行断电源,强制关机后启动
检查内存占用
valgrind qcachegrind 性能分析工具
介绍
qcachegrind 查看 valgrind 性能检测结果的工具
Valgrind 分析
macOS
https://stackoverflow.com/questions/69792467/memory-check-on-macos-12-monterey
install windows tool
wincachegrind
- 分析工具 wincachegrind https://sourceforge.net/projects/wincachegrind/
kcachegrind
- 分析工具 kcachegrind https://apps.kde.org/kcachegrind/
- 使用文档 https://docs.kde.org/stable5/en/kcachegrind/kcachegrind/index.html
安装:kcachegrind ,由于kcachegrind只能在kde环境下运行,所以需要安装 kdewin-installer-gui
drone fatal: could not read Username for ‘xxxx‘: terminal prompts
表现
Initialized empty Git repository in /drone/src/.git/
+ git fetch origin +refs/heads/main:
fatal: could not read Username for 'https://xxxx': terminal prompts disabled
原因
- drone 默认情况下不会做公开代码库的认证,即不会在拉取公开仓库时验证 git 账号
- 使用本地模式运行,默认 git 仓库的 所有操作都要验证用户信息,即使是 pull 公开的代码仓库也不会认证
解决方法
启动 drone 的时候传递一个环境变量 DRONE_GIT_ALWAYS_AUTH=true
drone fatal gitlab ACTIVATE REPOSITORY 500
故障表现
drone 能查看 Repository 但在点击 ACTIVATE REPOSITORY
时报错 500
原因
drone 是通过 webhook 来根 gitlab 通信的,需要 gitlab 打开某些安全设置
gitlab 配置,参加官方文档 https://docs.gitlab.com/ee/security/webhooks.html
修复方法
勾选 Allow requests to the local network from webhooks and integrations
checkbox
JittorLLMs windows 使用
介绍
JittorLLL 计图大模型推理库
- 成本低:相比同类框架,本库可大幅降低硬件配置要求(减少80%),没有显卡,2G内存就能跑大模型,人人皆可在普通机器上,实现大模型本地部署;是目前已知的部署成本最低的大模型库;
- 支持广:目前支持了4种大模型:ChatGLM大模型;鹏程盘古大模型;BlinkDL的ChatRWKV;国外Meta的LLaMA大模型
JittorLLMs macOS Apple Silicon 使用
介绍
JittorLLL 计图大模型推理库
- 成本低:相比同类框架,本库可大幅降低硬件配置要求(减少80%),没有显卡,2G内存就能跑大模型,人人皆可在普通机器上,实现大模型本地部署;是目前已知的部署成本最低的大模型库;
- 支持广:目前支持了4种大模型:ChatGLM大模型;鹏程盘古大模型;BlinkDL的ChatRWKV;国外Meta的LLaMA大模型