- Joined
- May 3, 2016
- Messages
- 1,622
- Points
- 83
[FONT=&]
When you want to buy a VPS, most of them use SSD, because a SSD have a better capacity for reading/writing than a Hard Drive and it also have a response time up to 40x faster than HDD.
[/FONT][FONT=&]But there are some small configuration to edit to get the best performances with your SSD as linux systems are not totally optimized for them.
[/FONT][FONT=&]So we will see how to speed up your VPS and how to configure debian/ubuntu to use a SSD properly. For a new install of a server the rules are :
[/FONT]
[FONT=&]The system should answer 60. So you just have to add the line below in /etc/sysctl.conf
[/FONT]
[FONT=&]Then reboot your system. And it's done your VPS should already be faster[/FONT]
When you want to buy a VPS, most of them use SSD, because a SSD have a better capacity for reading/writing than a Hard Drive and it also have a response time up to 40x faster than HDD.
[/FONT][FONT=&]But there are some small configuration to edit to get the best performances with your SSD as linux systems are not totally optimized for them.
[/FONT][FONT=&]So we will see how to speed up your VPS and how to configure debian/ubuntu to use a SSD properly. For a new install of a server the rules are :
[/FONT]
- Use a recent linux system : Kernel 3.60+
- Keep some free space on a disk (5-15%)
- Use ext4
- in /etc/fstab add the noatime setting
Code:
# / was on /dev/sda1 during installation
UUID=33XXX-XXXX / ext4 noatime,errors=remount-ro 0 1
- Limit the swap usage :
Code:
cat /proc/sys/vm/swappiness
[/FONT]
Code:
vm.swappiness=1