@storage_qi · Post #1177 · 04/21/2025, 09:05 AM
#冷知识#开发#WSL2#内存 在WSL2环境下出现内存不足等情况,具体现象为内存占用飙升,导致程序崩溃退出,但是实际内存占用未满,其实是因为WSL2的内存总量被限制了。 因为WSL2的默认情况下内存是宿主机的50%(文档),所以按照文档中的说明 调整相关参数即可 如果还不够的话,还可以调整交换空间(虚拟内存)的值
TGINSIGHT SIMILAR POSTS
Source channel @githubtrending · Post #14731 · May 21
#cplusplus#high_performance#interior_point_method#linear_optimization#mixed_integer_programming#parallel#quadratic_programming#simplex HiGHS is a free, high-performance software that solves large and complex optimization problems like linear, quadratic, and mixed-integer programming. It works fast on many computers, including Linux, MacOS, and Windows, without needing extra software. You can use it through various programming languages like Python, C, C#, and Fortran, making it easy to integrate into your projects. HiGHS supports both serial and parallel computing, and it is advancing GPU acceleration for even faster solutions. This helps you efficiently find the best solutions for planning, scheduling, and decision-making problems in science, engineering, and business. Installation is straightforward, and detailed documentation is available to guide you[1][2][3][4]. https://github.com/ERGO-Code/HiGHS
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