Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


centos_6.5_on_apu_-_post_install

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
centos_6.5_on_apu_-_post_install [2014/05/02 08:33] – [reduce writes: tmpfs for logging and /tmp] admincentos_6.5_on_apu_-_post_install [2014/05/21 18:30] admin
Line 49: Line 49:
 </code> </code>
  
-===SSD tuning=== +bashrc example
-==elevator=noop== +
-Check current elevator setting: +
-  cat /sys/block/sda/queue/scheduler +
-   +
-Set elevator: +
-Add to /etc/rc.local, you can also add it to the kernel line in /etc/grub.conf, but that setting is for all disks. +
-  echo noop >/sys/block/sda/queue/scheduler +
-   +
-==Reduce swappiness== +
-Check current setting: +
-  cat /proc/sys/vm/swappiness +
- +
-Change setting, using /etc/sysctl.conf +
-  vm.swappiness=1 +
-  vm.vfs_cache_pressure=50 +
-Then activate: +
-  sysctl -p +
-   +
-==Edit /etc/fstab== +
-Add noatime,discard to filesystems. +
- +
-==Edit /etc/lvm/lvm.conf== +
-  issue_discards = 1 +
-   +
-====reduce writes: tmpfs for logging and /tmp==== +
-You will lose files in tmpfs after reboot! Use remote syslog for important logs. +
- +
-==/etc/fstab==+
 <code> <code>
-tmpfs   /var/log   tmpfs   defaults,size=256m  0 0 +if [ -n "$PS1" ]; then 
-tmpfs   /tmp       tmpfs   defaults,size=64m  0 0 +  echo 
-</code> +  sensors |grep temp1 |awk '{print $1 $2}' 
- +fi;
-==or set large commit interval== +
-<code> +
-/dev/mapper/vg_apu1-lv_root /                   ext4    defaults,noatime,discard,errors=remount-ro,commit=200        1 1  +
 </code> </code>
  
centos_6.5_on_apu_-_post_install.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1