Tuning for maximum performance on a linux platform – Oracle Audio Technologies Sun Oracle SunDual 10GbE XFP User Manual

Page 59

Advertising
background image

Chapter 5

Configuring the nxge Device Driver Parameters

49

3. To set a particular variable, use the /usr/local/bin/nxge_config

if_name

set

param_name value:

Tuning for Maximum Performance on a
Linux Platform

The following tunings will improve the performance of the Sun x8 Express Dual 10
Gigabit Ethernet device driver on a system running the Linux operating system.

1. Create the conf file (for example, sysctl_nxge.conf) that will be called by

the sysctl utility.

# /usr/local/bin/nxge_config eth4 set class_opt_ipv4_tcp 0xfe0

### IPV4 specific settings

# turns TCP timestamp support off, default 1, reduces CPU use

net.ipv4.tcp_timestamps = 0

# turn SACK support off, default on systems with a VERY fast bus ->

# memory interface this is the big gainer

net.ipv4.tcp_sack = 0

# sets min/default/max TCP read buffer, default 4096 87380 174760

net.ipv4.tcp_rmem = 10000000 10000000 10000000

# sets min/pressure/max TCP write buffer, default 4096 16384 131072

net.ipv4.tcp_wmem = 10000000 10000000 10000000

# sets min/pressure/max TCP buffer space, default 31744 32256 32768

net.ipv4.tcp_mem = 10000000 10000000 10000000

### CORE settings (mostly for socket and UDP effect)

# maximum receive socket buffer size, default 131071

net.core.rmem_max = 524287

# maximum send socket buffer size, default 131071

net.core.wmem_max = 524287

# default receive socket buffer size, default 65535

net.core.rmem_default = 524287

# default send socket buffer size, default 65535

net.core.wmem_default = 524287

# maximum amount of option memory buffers, default 10240

net.core.optmem_max = 524287

# number of unprocessed input packets before kernel starts dropping

# them, default 300

net.core.netdev_max_backlog = 300000

Advertising