Tuesday, October 18, 2011

linux server optimization

Tricks to optimize linux server :

  1. increase realpath_cache_size (default 16k) to 128k(1M)
  2. optimize include_path variable for speedy search or use full path filenames
  3. exclude from /etc/updatedb.conf  unneed path: large directories, many small files (uploads, users photos etc..)
  4. if you use ispmanager, directadmin disable awstats, webalizer
  5. use tmpfs for tmp/seesion directory
  6. xcache/apc
  7. mysqltuner.pl
  8. put mysql datadir and php files on different disks
  9. sysctl swappiness
  10. mount options: noatime (order, barrier ?)

No comments: