We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
不得不在家办公,给电脑装了个Ubuntu虚拟机跑ROS,结果在编译的时候遇到了问题:
原因是没有足够的运行内存给编译程序用,我参考这篇博客:Linux虚拟机增加内存后增加swap空间,成功扩大了内存。
其实swap空间就是把硬盘上的空间用来当内存使用,是一种折中的处理方法。
sudo dd if=/dev/zero of=/var/swapfile bs=1024 count=2097152
sudo mkswap /var/swapfile
sudo swapon /var/swapfile1
sudo gedit /etc/fstab
里面写入如下内容
/var/swapfile1 swap swap defaults 0 0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
不得不在家办公,给电脑装了个Ubuntu虚拟机跑ROS,结果在编译的时候遇到了问题:
原因是没有足够的运行内存给编译程序用,我参考这篇博客:Linux虚拟机增加内存后增加swap空间,成功扩大了内存。
其实swap空间就是把硬盘上的空间用来当内存使用,是一种折中的处理方法。
1. 用dd命令创建一个2G的文件(2G=1024×1024×2=2097152)
2. 将它创建为Linux Swap虚拟交换文件
3. 激活并使用/var/swapfile交换文件
4. 设置系统启动后自动激活虚拟交换文件。
里面写入如下内容
The text was updated successfully, but these errors were encountered: