@storage_qi · Post #1177 · 04/21/2025, 09:05 AM
#冷知识#开发#WSL2#内存 在WSL2环境下出现内存不足等情况,具体现象为内存占用飙升,导致程序崩溃退出,但是实际内存占用未满,其实是因为WSL2的内存总量被限制了。 因为WSL2的默认情况下内存是宿主机的50%(文档),所以按照文档中的说明 调整相关参数即可 如果还不够的话,还可以调整交换空间(虚拟内存)的值
TGINSIGHT SIMILAR POSTS
Source channel @githubtrending · Post #14880 · Jun 28
#go#github_actions#kubernetes#operator Actions Runner Controller (ARC) is a tool that helps you automatically manage and scale self-hosted GitHub Actions runners using Kubernetes. It creates runner scale sets that grow or shrink based on how many workflows you are running, making your CI/CD process more efficient and cost-effective. ARC uses containers for runners, so new instances can start or stop quickly and cleanly. You can install ARC easily with Helm on Kubernetes and customize runners with features like custom images, volumes, and scripts. This automation saves you time and resources by matching runner capacity to your actual workload needs[1][2][3]. https://github.com/actions/actions-runner-controller
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