当前位置:网站首页>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
- Stochastic gradient descent method, Newton method, impulse method, adagrad, rmsprop and Adam optimization process and understanding
- Working principle of radar water level gauge and precautions for installation and maintenance
- 飞行器pid控制(旋翼飞控)
- 数字信息化(先枚举假设,再看是否满足条件)(1089 狼人杀-简单版)
- DIY personal server (DIY storage server)
- 第六章 修改规范(SPEC)类
- 【云原生 | 从零开始学Kubernetes】八、命名空间资源配额以及标签
- redis源码 -ziplist
- Socket error Event: 32 Error: 10053. Connection closing...Socket close
猜你喜欢
![[advanced mathematics] [5] definite integral and its application](/img/b2/62748b7533982f2b864148e0857490.png)
[advanced mathematics] [5] definite integral and its application

9. < tag dynamic programming and subsequence, subarray> lt.718. Longest repeated subarray + lt.1143. Longest common subsequence

Working principle of radar water level gauge and precautions for installation and maintenance

10.< tag-动态规划和子序列, 子数组>lt.53. 最大子数组和 + lt.392. 判断子序列 dbc

JVM (XXIII) -- JVM runtime parameters
![[today in history] June 29: SGI and MIPS merged; Microsoft acquires PowerPoint developer; News corporation sells MySpace](/img/86/abeb82927803712a98d2018421c3a7.png)
[today in history] June 29: SGI and MIPS merged; Microsoft acquires PowerPoint developer; News corporation sells MySpace

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

随机梯度下降法、牛顿法、冲量法、AdaGrad、RMSprop以及Adam优化过程和理解

Docker 搭建 Redis Cluster集群

Recommended system topic | Minet: cross domain CTR prediction
随机推荐
EZDML reverse engineering import database analysis practical operation tutorial
How to get started quickly in software testing
Introduction and construction of consul Registration Center
[today in history] July 18: Intel was founded; The first photo was posted on the world wide web; EBay spins off PayPal
Partial interpretation of yolov7 paper [including my own understanding]
火山引擎项亮:机器学习与智能推荐平台多云部署解决方案正式发布
PMP practice once a day | don't get lost in the exam -7.25
随机梯度下降法、牛顿法、冲量法、AdaGrad、RMSprop以及Adam优化过程和理解
qml 结合 QSqlTableModel 动态加载数据 MVC「建议收藏」
[today in history] June 29: SGI and MIPS merged; Microsoft acquires PowerPoint developer; News corporation sells MySpace
Link list of sword finger offer question bank summary (III) (C language version)
CarSim simulation quick start (XV) - ADAS sensor objects of CarSim sensor simulation (1)
Dataframe first performs grouping operation and then combines output
Stochastic gradient descent method, Newton method, impulse method, adagrad, rmsprop and Adam optimization process and understanding
10.< tag-动态规划和子序列, 子数组>lt.53. 最大子数组和 + lt.392. 判断子序列 dbc
CarSim simulation quick start (16) - ADAS sensor objects of CarSim sensor simulation (2)
Is QQ 32-bit or 64 bit software (where to see whether the computer is 32-bit or 64 bit)
第六章 修改规范(SPEC)类
Notes - record a cannotfinddatasourceexception: dynamic datasource can not find primary datasource problem solving
YOLOv7论文部分解读【含自己的理解】