LoginSignup
1
3

More than 5 years have passed since last update.

CloudAtCostのDISKの遅さを少しでも早くする

Last updated at Posted at 2016-04-24

swapあまりさせなくする

/etc/sysctl.conf
vm.swappiness = 1

sysctl -p

ext4のジャーナルをwritebackにする

/デバイスのwritebackを有効
tune2fs -o journal_data_writeback /dev/mapper/localhost--vg-root
/etc/fstab
- /dev/mapper/localhost--vg-root / ext4    errors=remount-ro 0       1
+ /dev/mapper/localhost--vg-root / ext4    errors=remount-ro,data=writeback,noatime,nobh,discard 0       1
  • ubuntu14.04.1の場合
/デバイスのwritebackを有効
tune2fs -o journal_data_writeback /dev/mapper/CAC_VG-CAC_LV
/etc/fstab
- /dev/mapper/CAC_VG-CAC_LV / ext4    errors=remount-ro 0       1
+ /dev/mapper/CAC_VG-CAC_LV / ext4    errors=remount-ro,data=writeback,noatime,nobh,discard 0       1
  • reboot

tmpfsの活用

/etc/fstab
- /dev/mapper/localhost--vg-swap_1 none            swap    sw              0       0

+ tmpfs  /tmp  tmpfs  defaults,noatime  0  0
+ tmpfs  /var/tmp  tmpfs  defaults,noatime  0  0
+ tmpfs  /var/cache/apt/archives  tmpfs  defaults,noatime  0  0

HPETをon

/etc/default/grub
- GRUB_CMDLINE_LINUX=""
+ GRUB_CMDLINE_LINUX="clocksource=hpet"
update-grub2

その他

diskベンチマーク
dd if=/dev/zero of=a.tmp bs=512M count=5 oflag=direct; rm a.tmp
preloadインストール
apt-get install preload
open-vm-tools-dkmsインストール
apt-get install open-vm-tools-dkms
1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3