krg_tuning: kerrighed_tuning.sh

File kerrighed_tuning.sh, 630 bytes (added by rider, 17 years ago)

Kerrighed NFS Performance Tuning

Line 
1#!/bin/bash
2# Program:
3#   Kerrighed NFS Performance Tuning
4# History:
5# 2008/03/20 VER.1
6PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin~/bin
7export PATH
8
9#TCP Tuning
10sysctl -w net.core.rmem_default=262140
11sysctl -w net.core.rmem_max=8388608
12sysctl -w net.core.wmem_default=262144
13sysctl -w net.core.wmem_max=8388608
14sysctl -w net.ipv4.tcp_rmem="4096 87380 4194304"
15sysctl -w net.ipv4.tcp_wmem="4096 87380 4194304"
16
17#IPC Tuning
18echo "kernel.shmall = 796917578" >> /etc/sysctl.conf
19echo "kernel.shmmax = 796917578" >> /etc/sysctl.conf
20echo "kernel.shmmni = 4096" >> /etc/sysctl.conf
21exit 0
22