Linux Performance and Tuning RHEL 6

Built based on this

What is a bottleneck?

Types of bottlenecks

How to identify a bottleneck

ps -o pid,tt,user,fname,wchan -C apache (why is a process around and what is is waiting on)

ps -uapache -o wchan=WIDE-WCHAN-COLUMN,cmd

iftop   http://www.thegeekstuff.com/2008/12/iftop-guide-display-network-interface-bandwidth-usage-on-linux/

disk io issues:

iostat -d -x
Linux 2.6.32-431.29.2.el6.x86_64 (web.x.com) 09/25/2014 _x86_64_ (16 CPU)

Device: rrqm/s wrqm/s r/s    w/s rsec/s      wsec/s avgrq-sz     avgqu-sz await    svctm %util
sda        0.37       12.34    8.04 5.58 1299.72 143.13   105.96          0.81        59.82    9.55    13.01

http://bencane.com/2012/08/06/troubleshooting-high-io-wait-in-linux/

Reference:
http://www.linux-tutorial.info/modules.php?name=MContent&pageid=84
http://www.gurkulindia.com/main/2013/03/help-me-to-find-the-linux-performance-bottleneck/
Pinpointing I/O bottlenecks on Linux
http://www.cyberciti.biz/tips/linux-resource-utilization-to-detect-system-bottlenecks.html
http://www.cloudiquity.com/2012/05/finding-disk-bottlenecks-on-linux/
How to Monitor Apache Web Server Load and Page Statistics
How to graph Apache Statistics on Cacti
20 Command Line Tools to Monitor Linux Performance

Spacewalk Installation on EPEL 5 WIP

We will be doing an install using PostGresql for the database.

  1. rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
  2. rpm -Uvh http://spacewalk.redhat.com/yum/1.7/RHEL/5/x86_64/spacewalk-repo-1.7-5.el5.noarch.rpm
  3. yum install spacewalk-postgresql

References

  • http://www.darkoperator.com/blog/2011/12/16/spacewalk-15-basic-installation-for-package-management.html
  • https://fedorahosted.org/spacewalk/wiki/HowToInstall
  • Download: http://spacewalk.redhat.com/yum/
  • http://www.itzgeek.com/how-tos/linux/centos-how-tos/installing-spacewalk-on-centos-6-rhel-6.html#axzz2sN5vOG39
  • http://www.linuxtoday.com/infrastructure/2007042500626INHLRH
  • http://www.linuxtoday.com/upload/spacewalk-installation-tutorial-step-by-step-on-centosrhelfedorascientific-linux-130526181014.html