Operating Systems

AIX

Use the following commands to set the SAS recommended TCP/IP settings:
/usr/sbin/no -o tcp_timewait =1 
/usr/sbin/no -o tcp_keepidle=600 
/usr/sbin/no -o tcp_keepintvl=10 
/usr/sbin/no -o tcp_keepinit=40
In some environments, the maximum number of user processes might need to be increased, particularly on the system running the SAS Web Infrastructure Platform Data Server when the max_connections value is increased. The default value is 128.
To increase the max_connections value, run the following command:
chdev -l sys0 -a maxuproc=new_value
A new value of 1024 or 2048 (or higher) might be appropriate, depending on how many processes and connections are configured.

HP-UX

Use the following commands to set the SAS recommended TCP/IP settings:
ndd -set /dev/tcp tcp_conn_request_max 8192 
ndd -set /dev/tcp tcp_keepalive_interval 7200000 
ndd -set /dev/tcp tcp_keepalives_kill 1
In addition, SAS recommends tuning the following kernel parameters by using the SAM utility or the kctune utility.
Recommended Kernel Parameters to Tune
Kernel Parameter
Recommended Value
swchunk
8192
shmseg
512
maxdsiz
3221225472
maxdsiz_64bit
64424509440
maxfiles_lim
10000
Note: Change this value before changing maxfiles.
maxfiles
8192
semume
512
semmsl
3072
msgssz
512
Note: Change this value before changing msgmax.
nkthread
10000
nproc
10240
Note: Change this value before changing maxuprc.
maxuprc
4096
nflocks
11585
ninode
8110
msgmap
13109
msgseg
32767
Note: Change this value before changing msgmax.
msgmnb
65535 (0x10000)
Note: Change this value before changing msgmax.
msgmnb
131070
Note: Set when running multiple JVMs on the same system.
msgmax
65535 (0x10000)
msgmax
131070
Note: Set when running multiple JVMs on the same system.
msgmni
4634
semmns
11586
semmni
8192
semmnu
8180
shmmax
1.85514E+11
shmmni
8192
STRMSGSZ
65535
dbc_max_pc
10
nstrpty
60
cmc_plat_poll
15
msgtql
13107

Linux

Use the following commands to temporarily set the SAS recommended TCP/IP settings:
echo 30 > /proc/sys/net/ipv4/tcp_fin_timeout  
echo 3000 > /proc/sys/net/core/netdev_max_backlog 
echo 3000 > /proc/sys/net/core/somaxconn 
echo 15 > /proc/sys/net/ipv4/tcp_keepalive_intvl 
echo 5 > /proc/sys/net/ipv4/tcp_keepalive_probes
Note: These settings will be lost upon rebooting your system.
Use the following commands to permanently set the SAS recommended TCP/IP settings:
/sbin/sysctl -w net.ipv4.tcp_fin_timeout=30
/sbin/sysctl -w net.core.netdev_max_backlog=3000
/sbin/sysctl -w net.core.somaxconn=3000
/sbin/sysctl -w net.ipv4.tcp_keepalive_intvl=15
/sbin/sysctl -w net.ipv4.tcp_keepalive_probes=5
In addition, set the operation system limits by accessing the /etc/security/limits.conf file. Add or change the values, based on the following information:
Linux System Limits
Domain
Type
Item
Recommended Value
*
nproc
10240
*
stack
10240
*
nofile
20480
Some Linux distributions include additional settings in *.conf files in the /etc/security/limits.d directory. The values specified in the files in this directory override the limits specified in the limits.conf file. For example, some distributions set an explicit soft limit for the nproc ulimit value. This is specified in the /etc/security/limits.d/90-nproc.conf file. In this file, change the nproc value to correspond to the value specified in the preceding table.

Solaris SPARC and Solaris x86-64

Use the following commands to set the SAS recommended TCP/IP settings:
ndd -set /dev/tcp tcp_keepalive_interval 300000 
ndd -set /dev/tcp tcp_time_wait_interval 60000 
ndd -set /dev/tcp tcp_conn_req_max_q 256 
ndd -set /dev/tcp tcp_conn_req_max_q0 2500 
ndd -set /dev/tcp tcp_max_buf 4000000

Windows

The Windows registry must be updated. Microsoft recommends performing a system backup before editing the registry. To set the SAS recommended parameters, use the REGEDIT command as follows:
  1. Access the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters registry subkey. Add the DWORD value with a name of TcpTimedWaitDelay and a value of 30 (0xle).
  2. Access the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\AFD\Parameters registry subkey. Add the following DWORD values:
    AFD Service Parameters
    Name
    Recommended Value
    EnableDynamicBacklog
    1 decimal
    MinimumDynamicBacklog
    20 decimal
    MaximumDynamicBacklog
    1000 decimal
    DynamicBacklogGrowthDelta
    10 decimal
    The recommended values specify the number of connections that you want to be available. These values request a minimum of 20 and a maximum of 1000 available connections. The number of available connections is increased by 10 each time there are fewer than the minimum number of available connections.
  3. In addition, the user port range should be updated. From a command prompt, run the following commands, based on the version of your Internet protocol:
    netsh int ipvn set dynamicport tcp start=32768 num=32767
    netsh int ipvn set dynamicport udp start=32768 num=32767
    
    where n indicates the version of your Internet protocol and is either 4 or 6.
  4. Restart Windows.

Additional Windows System Configurations

The following list includes general recommendations for configuring Windows systems:
  • Disable Windows indexing on any directories that are used by SAS software.
  • Set Windows performance settings so that background processes are favored.
  • Set the maximum power profile in the system BIOS for all systems, except Intel Sandy Bridge.
  • Disable the C1E BIOS setting on Dell systems.