当前位置:网站首页>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

边栏推荐
- Introduction and construction of consul Registration Center
- Aircraft PID control (rotor flight control)
- wallys//IPQ5018/IPQ6010/PD-60 802.3AT Input Output 10/100/1000M
- sentinel简单限流和降级demo问题记录
- RF, gbdt, xgboost feature selection methods "recommended collection"
- Deeplobv1 and V2
- The use of new promise, async and await in the project, and the practical application of promise.all in the project
- Is QQ 32-bit or 64 bit software (where to see whether the computer is 32-bit or 64 bit)
- wallys//wifi6 wifi5 router IPQ6018 IPQ4019 IPQ4029 802.11ax 802.11ac
- SecureCRT garbled code solution [easy to understand]
猜你喜欢
![[today in history] July 17: Softbank acquired arm; The first email interruption; Wikimedia International Conference](/img/0f/8ce2d5487b16d38a152cfd3ab454bb.png)
[today in history] July 17: Softbank acquired arm; The first email interruption; Wikimedia International Conference

When AI encounters life and health, Huawei cloud builds three bridges for them

笔记——记录一个CannotFindDataSourceException: dynamic-datasource can not find primary datasource问题解决

参与开源社区还有证书拿?

【高等数学】【5】定积分及应用
![[advanced mathematics] [6] differential calculus of multivariate functions](/img/9e/84fe6f74b58cbaabab1b6eed0df556.png)
[advanced mathematics] [6] differential calculus of multivariate functions
![[today in history] July 18: Intel was founded; The first photo was posted on the world wide web; EBay spins off PayPal](/img/7d/7a01c8c6923077d6c201bf1ae02c8c.png)
[today in history] July 18: Intel was founded; The first photo was posted on the world wide web; EBay spins off PayPal

【高等数学】【6】多元函数微分学
![[today in history] July 19: the father of IMAP agreement was born; Project kotlin made a public appearance; New breakthroughs in CT imaging](/img/e9/5751dc435cfbbefc22d84fd9ebbaea.png)
[today in history] July 19: the father of IMAP agreement was born; Project kotlin made a public appearance; New breakthroughs in CT imaging
![Partial interpretation of yolov7 paper [including my own understanding]](/img/80/95d00565c4ec89a388ae4386801a02.png)
Partial interpretation of yolov7 paper [including my own understanding]
随机推荐
Link list of sword finger offer question bank summary (III) (C language version)
CarSim仿真快速入门(十六)—CarSim传感器仿真之ADAS Sensor Objects (2)
TGA file format (waveform sound file format)
【NOI模拟赛】字符串匹配(后缀自动机SAM,莫队,分块)
CarSim仿真快速入门(十四)—CarSim-Simulink联合仿真
[advanced mathematics] [5] definite integral and its application
从瞳代到“瞳代”再到品牌,暴利的美瞳的变与未变
During the interview, I was asked how to remove the weight of MySQL, and who else wouldn't?
当AI邂逅生命健康,华为云为他们搭建三座桥
分享 25 个有用的 JS 单行代码
Share 25 useful JS single line codes
[Infographics Show] 248 Public Domain Name
随机梯度下降法、牛顿法、冲量法、AdaGrad、RMSprop以及Adam优化过程和理解
网络爬虫原理解析「建议收藏」
Mindspore1.1.1 source code compilation and installation -- errors in the core compilation stage
UNET and mask RCNN
QML combines qsqltablemodel to dynamically load data MVC "recommended collection"
[advanced mathematics] [6] differential calculus of multivariate functions
DIY个人服务器(diy存储服务器)
笔记——记录一个CannotFindDataSourceException: dynamic-datasource can not find primary datasource问题解决