ubuntu swappiness 修改
来源:互联网 发布:数据库系统概念中文版 编辑:程序博客网 时间:2024/06/05 20:16
https://if_you_are_human_please_remove_help.ubuntu.com/community/SwapFaq
What is swappiness and how do I change it?
The swappiness parameter controls the tendency of the kernel to move processes out of physical memory and onto the swap disk. Because disks are much slower than RAM, this can lead to slower response times for system and applications if processes are too aggressively moved out of memory.
- swappiness can have a value of between 0 and 100
- swappiness=0 tells the kernel to avoid swapping processes out of physical memory for as long as possible
- swappiness=100 tells the kernel to aggressively swap processes out of physical memory and move them to swap cache
The default setting in Ubuntu is swappiness=60. Reducing the default value of swappiness will probably improve overall performance for a typical Ubuntu desktop installation. A value of swappiness=10 is recommended, but feel free to experiment. Note: Ubuntu server installations have different performance requirements to desktop systems, and the default value of 60 is likely more suitable.
To check the swappiness value
cat /proc/sys/vm/swappiness
To change the swappiness value A temporary change (lost on reboot) with a swappiness value of 10 can be made with
sudo sysctl vm.swappiness=10
To make a change permanent, edit the configuration file with your favorite editor:
gksudo gedit /etc/sysctl.conf
Search for vm.swappiness and change its value as desired. If vm.swappiness does not exist, add it to the end of the file like so:
vm.swappiness=10
Save the file and reboot.
if you want speed your ubuntu OS more, please try
sudo apt-get install preload
- ubuntu swappiness 修改
- ubuntu change swappiness
- linux系统swappiness swap修改
- CDH5.4.0安装中,Validations界面提示修改swappiness
- 使用cloudera manager 安装CDH时,界面提示修改swappiness
- vm.swappiness
- couchbase swappiness
- 修改linux swap空间的 swappiness,降低对硬盘的缓存
- 修改linux swap空间的swappiness,降低对硬盘的缓存
- 修改linux swap空间的swappiness,降低对硬盘的缓存
- 修改linux swap空间的swappiness,降低对硬盘的缓存
- 修改linux swap空间的swappiness,降低对硬盘的缓存
- 修改linux swap空间的swappiness,降低对硬盘的缓存
- hadoop优化:修改linux swap空间的swappiness,降低对硬盘的缓存
- CDH 系统优化之禁止透明大页及修改swappiness
- 修改linux swap空间的swappiness,降低对硬盘的缓存
- swappiness设置实际内存和swap的使用比率 /ubuntu优化
- 【linux】 swap swappiness相关
- HTML5 学习----------视频上手操作
- CSS中强大的EM
- 【转载】解决input file 的onchange事件只生效一次的问题
- FFMPEG实现的转码程序
- matlab 中imshow的用法
- ubuntu swappiness 修改
- iOS通过http post上传图片
- LeetCode Minimum Window Substring
- javascript迭代器
- 解决ubuntu 中man手册不全的问题!!!
- ls报错: arguments too long
- Android游戏之音频类设计
- HDU 3555 Bomb 数位dp
- activity界面劫持--qq钓鱼应用分析