From Mitchell Johnston@21:1/5 to All on Tue Jul 16 08:21:51 2019
Performance tuning quick tips
Tools:
sar # historical data, "crontab -e sys" for setup
vmstat # current conditions
iostat # current conditions
se toolkit # Nice gui front end - Sun only
memtool # gui memory information - Sun only
scsiinfo# documents scsi disks
I/O:
! Put tape and CD/DVD on their own controllers
! Set faster drives at higher priority (higher target)
newfs -c # (16 for attribute-intensive, 32 for data
RAID Basics
1 - Good for root volume
3 - H/W only, good for sequntial databases
1+0 - Best for performance and reliability
5 - Best for static data <20% writes
! Map your hardware and make sureyou don't over-run buses
! Concider doing OS reload if you have to rearrange cards
Memory:
! Split swap over controllers
! Add more RAM if disks/CPU's are added
* Add the size option to vfstab for /tmp
! Use /var/tmp for larger files
! Constant non-zero in scan-rate (sr) and page-out (po), need RAM
/etc/system
set maxpgio=(60 x # swap disks) or (120 x # of controllers)
set priority_paging=1 (Solaris 7)
prtmem # Part of memtool, displays stats
Network:
! Always put servers on a switch
NFS
/etc/system
set ncsize=(5000 or higher) # keep hits >90% (vmstat -s)
set ufs_ninode=(same as above)
/etc/init.d/nfs.server
/usr/lib/nfsd -a # (start with 2500)
Force 100-Base T Full Duplex
/etc/system
set hme:hme_adv_autoneg_cap=0
set hme:hme_adv_100hdx_cap=0
set hme:hem_adv_100fdx_cap=1
CPU:
* Make sure applications are multi-threaded
* Concider running large jobs batch or with cron
* Set process priorities with priocntrl and nice
/usrucb/ps -aux # display cpu usage for processes
Basic rules for tuning
1. Tune one thing at a time
2. Tune that which has the largest effect
3. Monitor the change for a week under normal load