Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 10下SWAP占用大于100% #18

Closed
Cathgao opened this issue Jan 6, 2023 · 9 comments
Closed

Windows 10下SWAP占用大于100% #18

Cathgao opened this issue Jan 6, 2023 · 9 comments
Labels
wontfix This will not be worked on

Comments

@Cathgao
Copy link

Cathgao commented Jan 6, 2023

系统:Windows 10 22H2
python:Python 3.9.13

获取的状态中SWAP占用率超过100%
QQ截图20230106154342
QQ图片20230106154313

@lgc2333
Copy link
Member

lgc2333 commented Jan 6, 2023

呃呃貌似其他也有遇到过这种问题但我不清楚是什么情况 所以先放一放吧……

@lgc2333 lgc2333 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 6, 2023
@lgc2333 lgc2333 pinned this issue Jan 6, 2023
@lgc2333 lgc2333 reopened this Jan 19, 2023
@lgc2333
Copy link
Member

lgc2333 commented Jan 19, 2023

如果有其他同样问题的用户看到了这个issue,可以跟进一下,并且提供一下下面这段代码的输出

import psutil
print(psutil.swap_memory())

@Cathgao
Copy link
Author

Cathgao commented Jan 20, 2023

如果有其他同样问题的用户看到了这个issue,可以跟进一下,并且提供一下下面这段代码的输出

import psutil
print(psutil.swap_memory())

这个是我的输出
sswap(total=1342177280, used=3349745664, free=-2007568384, percent=249.6, sin=0, sout=0)
与AIDA64中的数据对比:
image

是psutil中的已知问题
#giampaolo/psutil/issues/2074

@Misaka-Mikoto-Tech
Copy link

ubuntu docker也有此问题,直接把内存吃光,差点把宿主系统给干趴下。。。

@lgc2333
Copy link
Member

lgc2333 commented Apr 16, 2023

ubuntu docker也有此问题,直接把内存吃光,差点把宿主系统给干趴下。。。

你的图是不是很长

@Misaka-Mikoto-Tech
Copy link

Misaka-Mikoto-Tech commented Apr 16, 2023

ubuntu docker也有此问题,直接把内存吃光,差点把宿主系统给干趴下。。。

你的图是不是很长

什么配置都没动,pip install 后直接执行的 @bot 运行状态,配置了代理,但是 aiohttp 貌似不能正常使用(其它的插件比如gpt相关插件都可以正常调用,但它们貌似都是requests),然后我把google的测试给删了,只保留百度,然后再次运行,就直接把cpu和内存给干爆了,我的docker是跑在nas里的,nas有8G内存

@lgc2333
Copy link
Member

lgc2333 commented Apr 16, 2023

什么配置都没动,pip install 后直接执行的 @bot 运行状态,配置了代理,但是 aiohttp 貌似不能正常使用(其它的插件比如gpt相关插件都可以正常调用,但它们貌似都是requests),然后我把google的测试给删了,只保留百度,然后再次运行,就直接把cpu和内存给干爆了,我的docker是跑在nas里的,nas有8G内存

不太好定位问题……目前我只知道当图片很长的时候,处理图片背景会很吃内存

@Cathgao
Copy link
Author

Cathgao commented Apr 17, 2023

ubuntu docker也有此问题,直接把内存吃光,差点把宿主系统给干趴下。。。

你是自己把内存干爆了,跟我这个显示错误不是一回事

@lgc2333 lgc2333 added the wontfix This will not be worked on label Oct 8, 2023
@XieXiLin2
Copy link
Contributor

听说 psutil 已经再次修复了,如果还有问题就 Reopen 罢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants