MitseaBlog/content/post/09605e45ed8141468a1d64ae81f7148e/index.zh-cn.md

88 lines
4.2 KiB
Markdown
Raw Normal View History

2023-04-14 16:31:07 +08:00
+++
author = "FlintyLemming"
title = "Windows Electron QQ 资源占用观察"
slug = "09605e45ed8141468a1d64ae81f7148e"
date = "2023-04-07"
description = "原本 8G 显存玩 2K 3A 的同学这下 QQ 都不敢挂后台了"
2023-04-25 15:03:11 +08:00
categories = ["LifeTec"]
2023-04-14 16:31:07 +08:00
tags = ["QQ", "内存", "Electron"]
image = "https://img.mitsea.com/blog/posts/2023/04/Windows%20Electron%20QQ%20%E8%B5%84%E6%BA%90%E5%8D%A0%E7%94%A8%E8%A7%82%E5%AF%9F/malik-skydsgaard-rhqsKzvyyQo-unsplash.jpg?x-oss-process=style/ImageCompress"
+++
2023-04-14 16:34:47 +08:00
## 说明
2023-04-14 16:31:07 +08:00
测试方法是通过对比打开和关闭程序前后的内存和显存数值,只看任务管理器某几个进程的内存占用之和是不准确的
2023-04-14 16:34:47 +08:00
## 具体测试
2023-04-14 16:31:07 +08:00
2023-04-14 16:34:47 +08:00
### 环境1 有独立显卡的台式机
2023-04-14 16:31:07 +08:00
32G DDR5 内存+3090 24G 显存
| 测试条件 | 内存占用 | 显存占用 |
| --- | --- | --- |
| QQ本体 | ~300M | ~400M |
| QQ本体+频道 | ~500M | ~700M |
2023-04-14 16:34:47 +08:00
### 环境2 没有显卡的服务器
2023-04-14 16:31:07 +08:00
128G 内存 远程桌面
| 测试条件 | 内存占用 | 显存占用 |
| --- | --- | --- |
| QQ本体 | ~600M | 0M |
| QQ本体+频道 | ~900M | 0M |
2023-04-14 16:34:47 +08:00
### 环境3 核显轻薄本
2023-04-14 16:31:07 +08:00
AMD Ryzen 5 5500U核显分配 1G 内存
| 测试条件 | 内存占用 | 显存占用 |
| --- | --- | --- |
| QQ本体 | ~400M | ~300M |
| QQ本体+频道 | ~800M | ~600M |
显存在打开新频道对话时会达到1G爆显存建议显存分配2G
![](https://img.mitsea.com/blog/posts/2023/04/Windows%20Electron%20QQ%20%E8%B5%84%E6%BA%90%E5%8D%A0%E7%94%A8%E8%A7%82%E5%AF%9F/Untitled.png?x-oss-process=style/ImageCompress)
2023-04-14 16:34:47 +08:00
## 其他观察
2023-04-14 16:31:07 +08:00
2023-04-14 16:39:53 +08:00
### 突发占用
2023-04-14 16:31:07 +08:00
当新打开一个 QQ 群或者频道聊天时,显存会有一个突发占用。比如这里两张图,第一张是刚打开一个聊天的时候,显存总占用 2.6G,静等一会,会掉到 2.3G。
如果你的显存没有这额外的 300M我不确定会不会影响性能。
![](https://img.mitsea.com/blog/posts/2023/04/Windows%20Electron%20QQ%20%E8%B5%84%E6%BA%90%E5%8D%A0%E7%94%A8%E8%A7%82%E5%AF%9F/Untitled%201.png?x-oss-process=style/ImageCompress)
![](https://img.mitsea.com/blog/posts/2023/04/Windows%20Electron%20QQ%20%E8%B5%84%E6%BA%90%E5%8D%A0%E7%94%A8%E8%A7%82%E5%AF%9F/Untitled%202.png?x-oss-process=style/ImageCompress)
2023-04-14 16:34:47 +08:00
## 附件
2023-04-14 16:31:07 +08:00
2023-04-14 16:34:47 +08:00
### 环境1截图
2023-04-14 16:31:07 +08:00
![](https://img.mitsea.com/blog/posts/2023/04/Windows%20Electron%20QQ%20%E8%B5%84%E6%BA%90%E5%8D%A0%E7%94%A8%E8%A7%82%E5%AF%9F/Snipaste_2023-03-24_19-13-00.png?x-oss-process=style/ImageCompress)
![](https://img.mitsea.com/blog/posts/2023/04/Windows%20Electron%20QQ%20%E8%B5%84%E6%BA%90%E5%8D%A0%E7%94%A8%E8%A7%82%E5%AF%9F/Snipaste_2023-03-24_19-14-25.png?x-oss-process=style/ImageCompress)
![](https://img.mitsea.com/blog/posts/2023/04/Windows%20Electron%20QQ%20%E8%B5%84%E6%BA%90%E5%8D%A0%E7%94%A8%E8%A7%82%E5%AF%9F/Snipaste_2023-03-24_19-14-46.png?x-oss-process=style/ImageCompress)
2023-04-14 16:34:47 +08:00
### 环境2截图
2023-04-14 16:31:07 +08:00
![](https://img.mitsea.com/blog/posts/2023/04/Windows%20Electron%20QQ%20%E8%B5%84%E6%BA%90%E5%8D%A0%E7%94%A8%E8%A7%82%E5%AF%9F/Untitled%203.png?x-oss-process=style/ImageCompress)
![](https://img.mitsea.com/blog/posts/2023/04/Windows%20Electron%20QQ%20%E8%B5%84%E6%BA%90%E5%8D%A0%E7%94%A8%E8%A7%82%E5%AF%9F/Untitled%204.png?x-oss-process=style/ImageCompress)
![](https://img.mitsea.com/blog/posts/2023/04/Windows%20Electron%20QQ%20%E8%B5%84%E6%BA%90%E5%8D%A0%E7%94%A8%E8%A7%82%E5%AF%9F/Untitled%205.png?x-oss-process=style/ImageCompress)
2023-04-14 16:34:47 +08:00
### 环境3截图
2023-04-14 16:31:07 +08:00
![](https://img.mitsea.com/blog/posts/2023/04/Windows%20Electron%20QQ%20%E8%B5%84%E6%BA%90%E5%8D%A0%E7%94%A8%E8%A7%82%E5%AF%9F/Snipaste_2023-03-24_20-08-56.png?x-oss-process=style/ImageCompress)
![](https://img.mitsea.com/blog/posts/2023/04/Windows%20Electron%20QQ%20%E8%B5%84%E6%BA%90%E5%8D%A0%E7%94%A8%E8%A7%82%E5%AF%9F/Snipaste_2023-03-24_20-08-30.png?x-oss-process=style/ImageCompress)
![](https://img.mitsea.com/blog/posts/2023/04/Windows%20Electron%20QQ%20%E8%B5%84%E6%BA%90%E5%8D%A0%E7%94%A8%E8%A7%82%E5%AF%9F/Snipaste_2023-03-24_20-07-46.png?x-oss-process=style/ImageCompress)
> Photo by [Malik Skydsgaard](https://unsplash.com/@malikskyds?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)