Search This Blog

Wednesday, October 22, 2014

New debian SSD Server

Just build an new debian server with SSD installed, here is some optimization:

1.Disable swap

2.Enable dealine scheduler

apt-get install sysfsutils
echo "block/sda/queue/scheduler = deadline" >> /etc/sysfs.conf


test at reboot:

cat /sys/block/sda/queue/scheduler


3. Mounting SSD filesystems

# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
#
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/spool tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/log tmpfs defaults,noatime,mode=1777 0 0
# / was on /dev/sda2 during installation
UUID=9444b6b1-0be1-4c59-a383-7112156a6eeb / ext4 discard,noatime,nodiratime,errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=5FA9-ED48 /boot/efi vfat defaults 0 1

No comments:

Post a Comment