当前位置:网站首页>Increase swap space
Increase swap space
2022-07-25 20:18:00 【Jia ming】
List of articles
Linux The kernel will RAM Divide into memory blocks and swap (Swap) process , In exchange for (Swap) Process is when Linux The kernel uses hard disk space ( Swap space ) To store RAM Information in , So as to release some RAM Space . Use exchange (Swap) It 's an extension RAM It's a very useful way to , Because it is in RAM Provide the necessary additional memory when the space is exhausted and the process must continue . When installed Linux Memory of is less than 1Gb when , This is especially recommended .
Be careful : One disadvantage of swap space is that it is better than RAM Much slower . therefore , Adding swap space won't make your computer faster , It will only help overcome RAM Size brings some limitations .
1. see swap The size

2. establish swap file
Create in the root directory 4GB The size of Swap file .
mkdir /swap
cd /swap
sudo dd if=/dev/zero of=swapfile bs=1024 count=4000000
sudo mkswap swapfile
Activate swapfile:
sudo swapon swapfile
uninstall swapfile:
sudo swapoff swapfile
3. Power on auto mount swap
sudo vim /etc/fstab
Add content :
/swap/swapfile /swap swap defaults 0 0

边栏推荐
- Sentinel simple current limiting and degradation demo problem record
- Apache Mina framework "suggestions collection"
- 03-树1 树的同构
- Myormframeworkjdbc review and problem analysis of user-defined persistence layer framework, and thought analysis of user-defined persistence layer framework
- 谷歌Pixel 6a屏下指纹扫描仪存在重大安全漏洞
- Recommended system topic | Minet: cross domain CTR prediction
- Proxy implements MySQL read / write separation
- 分享 25 个有用的 JS 单行代码
- During the interview, I was asked how to remove the weight of MySQL, and who else wouldn't?
- 4everland storage node portal network design
猜你喜欢

How much memory does bitmap occupy in the development of IM instant messaging?

10. < tag dynamic programming and subsequence, subarray> lt.53. maximum subarray and + lt.392. Judge subsequence DBC

当AI邂逅生命健康,华为云为他们搭建三座桥

【NOI模拟赛】字符串匹配(后缀自动机SAM,莫队,分块)

Do you still have certificates to participate in the open source community?

4. Server startup of source code analysis of Nacos configuration center

4、Nacos 配置中心源码解析之 服务端启动

【高等数学】【1】函数、极限、连续

"Share" devaxpress asp Net v22.1 latest version system environment configuration requirements

分享 25 个有用的 JS 单行代码
随机推荐
FormatDateTime说解[通俗易懂]
4everland storage node portal network design
[today in history] June 30: von Neumann published the first draft; The semiconductor war in the late 1990s; CBS acquires CNET
Export and call of onnx file of pytorch model
Interpretation of repartitioned network structure in repvgg network [with code]
接口请求合并的3种技巧,性能直接爆表!
Configure and install cocos2dx development environment under Tongxin UOS
Network RTK UAV test [easy to understand]
JVM(二十三) -- JVM运行时参数
Google pixel 6A off screen fingerprint scanner has major security vulnerabilities
03 isomorphism of tree 1
tiktok如何破零播放?
推荐系统专题 | MiNet:跨域CTR预测
10. < tag dynamic programming and subsequence, subarray> lt.53. maximum subarray and + lt.392. Judge subsequence DBC
【高等数学】【4】不定积分
CarSim simulation quick start (XV) - ADAS sensor objects of CarSim sensor simulation (1)
Formatdatetime explanation [easy to understand]
RF, gbdt, xgboost feature selection methods "recommended collection"
test
How to set tiktok mobile network environment? How can tiktok break the playback volume?