@storage_qi · Post #1177 · 04/21/2025, 09:05 AM
#冷知识#开发#WSL2#内存 在WSL2环境下出现内存不足等情况,具体现象为内存占用飙升,导致程序崩溃退出,但是实际内存占用未满,其实是因为WSL2的内存总量被限制了。 因为WSL2的默认情况下内存是宿主机的50%(文档),所以按照文档中的说明 调整相关参数即可 如果还不够的话,还可以调整交换空间(虚拟内存)的值
TGINSIGHT SIMILAR POSTS
Source channel @githubtrending · Post #15166 · Sep 25
#python#ai#ai_chat#chatgpt#enterprise_search#gen_ai#information_retrieval#llm#llm_ui#nextjs#python#rag Onyx is an open-source AI platform that lets you easily create and use custom AI chat agents with any large language model (LLM). It supports advanced features like web search, document search, code execution, and connecting to over 40 apps, all while keeping your data secure and private. You can deploy it quickly on your own servers or cloud, making it great for individuals or large teams. Onyx helps you get accurate, reliable answers from your own knowledge and automates tasks, improving productivity and collaboration in your work. It’s flexible, secure, and free to start with. https://github.com/onyx-dot-app/onyx
Search: #wsl2
@storage_qi · Post #1177 · 04/21/2025, 09:05 AM
#冷知识#开发#WSL2#内存 在WSL2环境下出现内存不足等情况,具体现象为内存占用飙升,导致程序崩溃退出,但是实际内存占用未满,其实是因为WSL2的内存总量被限制了。 因为WSL2的默认情况下内存是宿主机的50%(文档),所以按照文档中的说明 调整相关参数即可 如果还不够的话,还可以调整交换空间(虚拟内存)的值
@realSpencerWoo · Post #156 · 04/19/2020, 02:29 PM
#WSL#WSL2#Ubuntu#Windows 🚀Ubuntu 20.04 WSL 2 升级 为各位踩了踩坑,目前 Windows Store 已经上架了 Ubuntu 20.04 LTS,可以直接前往下载。如果之前安装了 Ubuntu 旧版本(18.04、16.04 等等),可以用 do-release-upgrade 直接升级,前提是你使用的是支持 WSL 2 的 Windows 版本(目前已经可以在 Release Preview 通道更新支持 WSL 2 的 Windows 2004 版本了),并将默认 WSL 发行版切换为 WSL 2。看了下貌似 WSL 1 还有一些问题,不能直接平滑迁移。 之后,在原 Ubuntu 中运行 sudo do-release-upgrade -d 即可完成 Ubuntu 20.04 的平滑升级。中途我唯一遇到的问题就是 lxd 在升级过程中连不上 Snap Store,可以先 skip 掉(官方大佬说 skip 掉,我 abort 掉也成了),然后等待升级完成之后卸掉 lxd(运行下面两行命令): sudo dpkg --force depends -P lxd sudo dpkg --force depends -P lxd-client 再进行软件升级:sudo apt update; sudo apt upgrade,即可。 相关链接(强烈建议通读之后再进行升级): - 官方提供的 WSL 2 升级 Ubuntu 20.04 体验尝鲜方法 - WSL issue #3364(有关 lxd 无法连接网络的问题解决方法) 📮 Via channel: @realSpencerWoo