SSD盘上放swap file的注意事项:
摘自:http://docs.oracle.com/cd/E52668_01/E54669/html/section_h4v_3yt_tr.html
19.6 SSD Configuration Recommendations for btrfs, ext4, and swap
If you configure swap files or partitions on an SSD, reduce the tendency of the kernel to perform anticipatory writes to swap, which is controlled by the value of the
vm.swappiness kernel parameter and displayed as
/proc/sys/vm/swappiness. The value of vm.swappiness can be in the range 0 to 100, where a higher value implies a greater propensity to write to swap. The default value is 60. The suggested value when swap has been configured
on SSD is 1. You can use the following commands to change the value:
# echo "vm.swappiness = 1" >> /etc/sysctl.conf # sysctl -p ... vm.swappiness = 1
本文档介绍了在固态硬盘(SSD)上配置交换分区(swap)的最佳实践。为了减少内核对SSD进行预测性写入操作,建议调整内核参数vm.swappiness为1。默认情况下该参数值为60,较高的数值意味着更倾向于写入交换空间。
771

被折叠的 条评论
为什么被折叠?



