LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-25-2009, 09:19 PM   #1
zerobane
Member
 
Registered: Jan 2006
Posts: 47

Rep: Reputation: 16
chelsio dual port 10 gigabit card T320, tuning?


Anyone play with the chelsio 10 gigabit cards yet?

Any other parameters that i can play with?



testing using netperf

Start server on the desitnation ip (10.10.10.2)
#netserver
Then run the client connect on other machine
#netperf -H 10.10.10.2

IT will do a 10 second bandwidth test (adjustable by the -l flag)

or use ftp:
login into ftp, connect to server
put "|dd if=/dev/zero bs=1024 count=10000000" /dev/null


first test:

Recv Send Send
Socket Socket Message Elapsed
Size Size Size Time Throughput
bytes bytes bytes secs. 10^6bits/sec

4194304 4194304 4194304 5.04 2853.85




Enable jumbo frames
#ifconfig eth1 mtu 9000

second test:

[root@cricket tmp]# netperf -H 10.10.10.2 -l 5
TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.10.10.2 (10.10.10.2) port 0 AF_INET
Recv Send Send
Socket Socket Message Elapsed
Size Size Size Time Throughput
bytes bytes bytes secs. 10^6bits/sec

4194304 4194304 4194304 5.01 3639.24


txqueue len = 2000
#ifconfig eth1 txqueuelen 2000

Third test:

[root@cricket tmp]# ifconfig eth0 txqueuelen 2000
[root@cricket tmp]# netperf -H 10.10.10.2 -l 5
TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.10.10.2 (10.10.10.2) port 0 AF_INET
Recv Send Send
Socket Socket Message Elapsed
Size Size Size Time Throughput
bytes bytes bytes secs. 10^6bits/sec

4194304 4194304 4194304 5.01 3784.78




Run the following script:
#!/bin/bash
echo "Optimise TCP parameters"
# enable timestamps, window scaling
echo 1 > /proc/sys/net/ipv4/tcp_timestamps
echo 1 > /proc/sys/net/ipv4/tcp_window_scaling

echo 1 > /proc/sys/net/ipv4/tcp_moderate_rcvbuf

# buffers 4k 4M 60M
# (calc example: 1.0 Gbps/8 * 100ms delay = 125 MByte)
echo 60000000 > /proc/sys/net/core/wmem_max
echo 60000000 > /proc/sys/net/core/rmem_max
echo 4194304 > /proc/sys/net/core/rmem_default
echo 4194304 > /proc/sys/net/core/wmem_default
echo "4096 4194304 60000000" > /proc/sys/net/ipv4/tcp_rmem
echo "4096 4194304 60000000" > /proc/sys/net/ipv4/tcp_wmem

# echo "Optimise ethernet queue 040826pb"
/sbin/ifconfig eth0 txqueuelen 20000
/sbin/ifconfig eth1 txqueuelen 20000

# UKL/Janet Jumbo Frames Oct 05
# /sbin/ifconfig eth1 mtu 4470

#--JW
# sysctl -a | grep net

# enable path mtu discovery
sysctl -w net.ipv4.tcp_mtu_probing=1
sysctl -w net.ipv4.ip_no_pmtu_disc=0

# re-enable SACK since this isn't gigabit LAN but internet:
sysctl -w net.ipv4.tcp_sack=1

# increase backlog ("rxqueuelen"):
sysctl -w net.core.netdev_max_backlog=25000

# discard metrics of old connections:
sysctl -w net.ipv4.tcp_no_metrics_save=1

# select htcp congestion control algorithm:
# (or, another interesting one, bic)
sysctl -w net.ipv4.tcp_congestion_control=htcp

[root@cricket tmp]# netperf -H 10.10.10.2
TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.10.10.2 (10.10.10.2) port 0 AF_INET
Recv Send Send
Socket Socket Message Elapsed
Size Size Size Time Throughput
bytes bytes bytes secs. 10^6bits/sec

4194304 4194304 4194304 10.00 3854.09
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Which 24-Port GIgabit switches would you recommend for Ubuntu 8.04 Server? rozilla Linux - Networking 6 07-29-2008 09:18 AM
Linux and windows conflict the marvel yukon gigabit ethernet card on dual boot guelzimtr Linux - Software 4 04-26-2007 03:06 AM
ISC-DHCPD Intel Dual Port 10/100 Card zandee Linux - Networking 12 02-10-2007 01:53 PM
RedHat 9 on Intel Dual Processors ??? and Tuning for Oracle 9i ? nuwanguy Linux - Software 9 10-20-2003 06:44 AM
anyone can recomend a quad/dual port 10/100 ethernet card manaskb Linux - Hardware 3 11-11-2002 10:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration