as_root-enable_performance_optimizations.ksh 766 B

1234567891011121314151617181920212223242526
  1. #!/bin/ksh
  2. # 'kern.maxproc' default value is 1310
  3. sysctl kern.maxproc=8192
  4. echo "kern.maxproc=8192" >> /etc/sysctl.conf
  5. # 'kern.maxfiles' default value is 7030
  6. sysctl kern.maxfiles=32768
  7. echo "kern.maxfiles=32768" >> /etc/sysctl.conf
  8. # 'kern.maxthread' default value is 1950
  9. sysctl kern.maxthread=16384
  10. echo "kern.maxthread=16384" >> /etc/sysctl.conf
  11. # 'kern.shminfo.shmmax' default value is 33554432
  12. sysctl kern.shminfo.shmmax=2147483647
  13. echo "kern.shminfo.shmmax=2147483647" >> /etc/sysctl.conf
  14. # 'kern.shminfo.shmall' default value is 8192
  15. sysctl kern.shminfo.shmall=5242880
  16. echo "kern.shminfo.shmall=5242880" >> /etc/sysctl.conf
  17. # 'kern.shminfo.shm' default value is 1024
  18. sysctl kern.shminfo.shmmni=4096
  19. echo "kern.shminfo.shmmni=4096" >> /etc/sysctl.conf