@storage_qi · Post #1177 · 04/21/2025, 09:05 AM
#冷知识#开发#WSL2#内存 在WSL2环境下出现内存不足等情况,具体现象为内存占用飙升,导致程序崩溃退出,但是实际内存占用未满,其实是因为WSL2的内存总量被限制了。 因为WSL2的默认情况下内存是宿主机的50%(文档),所以按照文档中的说明 调整相关参数即可 如果还不够的话,还可以调整交换空间(虚拟内存)的值
TGINSIGHT SIMILAR POSTS
Source channel @githubtrending · Post #14965 · Jul 16
#rust#agent#ai#amazon_q#cli#linux#llm#macos#mcp#open_source#productivity#rust#shell#terminal#typescript Amazon Q CLI is a powerful tool that lets you interact with AWS and your development environment using natural language right from your terminal. It helps you write code, run commands, and manage AWS resources faster by understanding your context and providing smart suggestions, autocompletion, and even translating plain English into shell commands. It supports multi-turn conversations, so you can ask follow-up questions and get real-time help without leaving the command line. This boosts your productivity by simplifying complex tasks, reducing errors, and speeding up development workflows, making it easier to manage projects and infrastructure efficiently[1][2][3]. https://github.com/aws/amazon-q-developer-cli
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