ndd -set /dev/tcp tcp_host_param


 
Thread Tools Search this Thread
Operating Systems Solaris ndd -set /dev/tcp tcp_host_param
# 8  
Old 03-05-2010
Thanks but no, the tcp_xmit_hiwat and tcp_recv_hiwat were both set higher than the default (and higher then the limit we were setting on tcp_host_param, with no change in the time it took to transfer the file.

For whatever reason this worked in Solaris 8, it seems to fail to change the transfer rate in Solaris 10. I was hoping to hear that these settings now had to be done with a different parameter. The application owner believes it's SUN's way of making them upgrade all their servers to Solaris 10.
# 9  
Old 03-06-2010
I suggest to use iperf to test bandwidth, iperf will show the theoretical bandwith, The scp result is affected by disk I/O, CPU (encryption).
Please run vmstat to check CPU while copying files, maybe the bottleneck is cpu not network.
As a bonus, Iperf also show the window size detected, so It can verify if the change is effective.

you can get iperf from www.sunfreeware.com

an example.
Code:
# iperf   -n 900M -mc 172.16.1.12
------------------------------------------------------------
Client connecting to 172.16.1.12, TCP port 5001
TCP window size:   192 KByte (default)
------------------------------------------------------------
[  3] local 172.16.1.11 port 36932 connected with 172.16.1.12 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 7.9 sec    900 MBytes    955 Mbits/sec
[  3] MSS size 8948 bytes (MTU 8988 bytes, unknown interface)


Last edited by honglus; 03-06-2010 at 02:05 AM..
# 10  
Old 03-06-2010
Unfortunately, I can't put freeware on the server.

Output from iostat, vmstat, top during a scp transfer (all of these from the new server). You have to remember, if I try a scp transfer from another server in the same location (but not on the same subnet), the transfer rate shown in the scp is 4 to 5 times faster, so the server isn't having an issue when accepting a transfer. Also, showing netstat at the time of transfer shows the increased values are getting used.

netstat -an (cut down to just the scp process and my ssh to the server)
TCP: IPv4
Local Address Remote Address Swind Send-Q Rwind Recv-Q State
-------------------- -------------------- ----- ------ ----- ------ -----------
10.140.16.20.22 172.16.10.10.44764 280912 135 280912 0 ESTABLISHED
10.140.16.20.49395 172.16.10.10.22 280912 0 525624 0 ESTABLISHED

As you can see, the scp (first process shown) is at the rate set up with tcp_host_params. My ssh to the old server has the higher rate on Rwind of 525624.


iostat 5 200
tty ramdisk1 sd0 sd1 sd2 cpu
tin tout kps tps serv kps tps serv kps tps serv kps tps serv us sy wt id
0 2 0 0 0 1 0 4 0 0 0 262 48 47 0 0 0 100
0 143 0 0 0 0 0 0 0 0 0 7 1 5 0 0 0 100
0 111 0 0 0 0 0 0 0 0 0 8 2 6 0 0 0 100
0 111 0 0 0 0 0 0 0 0 0 2 0 8 0 0 0 100
0 143 0 0 0 0 0 0 0 0 0 20 11 36 0 0 0 100
0 111 0 0 0 0 0 0 0 0 0 19 4 5 0 0 0 99
0 111 0 0 0 0 0 0 0 0 0 24 6 6 0 0 0 100
0 111 0 0 0 0 0 0 0 0 0 42 10 4 0 0 0 100
0 111 0 0 0 0 0 0 0 0 0 3 1 6 0 0 0 100
3 111 0 0 0 0 0 0 0 0 0 263 57 5 0 0 0 100

vmstat 5 200
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr rm s0 s1 s2 in sy cs us sy id
0 0 0 39429784 31169736 19 94 0 33 33 0 0 0 0 0 52 1665 3742 1331 0 0 100
0 0 0 39425768 31165392 30 128 0 13 13 0 0 0 0 0 8 1926 10266 1915 0 0 100
0 0 0 39425712 31165424 146 226 0 142 142 0 0 0 0 0 17 1633 5231 1350 0 0 100
0 0 0 39423680 31164952 40 262 0 241 241 0 0 0 0 0 37 1838 5427 1584 0 0 100
0 0 0 39421672 31163688 10 59 0 2 2 0 0 0 0 0 0 1541 2021 1164 0 0 100
0 0 0 39419568 31161488 59 289 0 17 17 0 0 0 0 0 12 1971 9501 2057 0 0 100
0 0 0 39417416 31159296 32 143 0 11 11 0 0 0 0 0 2 1498 3184 1147 0 0 100
0 0 0 39415360 31157216 9 59 0 0 0 0 0 0 0 0 0 1514 2051 1126 0 0 100
0 0 0 39413336 31155128 31 120 0 61 61 0 0 0 0 0 8 1658 10844 1217 0 0 99
snoop5.out | 110MB | 413kB/s | ETA: 00:31:16 | 12%


last pid: 6764; load avg: 0.26, 0.22, 0.19; up 0+23:33:41 18:28:48
80 processes: 79 sleeping, 1 on cpu
CPU states: 99.8% idle, 0.1% user, 0.1% kernel, 0.0% iowait, 0.0% swap
Kernel: 1583 ctxsw, 189 trap, 1727 intr, 4811 syscall, 59 flt, 8 pgout
Memory: 32G phys mem, 30G free mem, 12G total swap, 12G free swap

PID USERNAME LWP PRI NICE SIZE RES STATE TIME CPU COMMAND
5009 AutoMon 1 29 10 32M 30M sleep 104:53 0.05% PatrolAgent
6541 v821383 1 54 0 10M 7976K sleep 0:03 0.04% sshd
2583 root 1 158 -20 63M 61M sleep 29:29 0.03% seosd
6365 root 1 54 0 5128K 4136K sleep 0:02 0.01% vmstat
6550 v821383 1 59 0 3752K 2144K sleep 0:00 0.01% sftp-server
406 root 9 59 0 10M 9504K sleep 0:58 0.00% picld
6188 root 1 59 0 4296K 3480K cpu/104 0:01 0.00% top
# 11  
Old 03-12-2010
Opened a case with SUN - this is their final answer...


Quote:
Unfortunately, with the T5240 system that you are using, scp will see slowness.
This write up applies to T5240 also.

Below is write up from our sustaining alias :
The T2000/T5240 requires multithreaded security apps to get super speeds. If
the application is single threaded, it will be up to 15 times slower over the
same application on a non-SUN4V. The ssh program is single threaded, so slowness
is normal.


The cause for the decreased performance on the T2000 is a combination of
factors. The scp and sftp routines are single threaded. When a single
threaded application is run in the multi-core cpu that is in the T1000
and T2000 it can perform less optimally than it would on the traditional
single threaded cpu in systems such as the V210, v240, v480. When a
single threaded routine such and the one for scp is run in the Niagara
cpu in the T2000 platform, it will not uses the 4 threads in the core and
as a result, perform less optimally. It does not utilize the full
resources of the core/cpu. The optimal performance on a T1000 or T2000
is when a multithreaded process is executed.

The transfer rate seen with scp (and sftp) in this situation is what
would and can be expected per my discussions with the ssh software
engineering group. To obtain a faster transfer rate when transferring
files to the T2000 the customer would want to use a method such as ftp
that transferred at a faster rate:

There would be no changes available to scp at this time.
# 12  
Old 03-12-2010
Too bad you focused so much on the Solaris release and didn't told in the first place you were using such different server models.
# 13  
Old 03-12-2010
Yea - of course, I also just found out that SUN's version of ssh sucks.

I threw F-secure on the server, replacing SUN ssh, and it flies! Giving the kind of throughput the application folks expected. So, is F-secure so much better (using multi-thread )? I find that hard to believe.

I think SUN just doesn't bother to check their own software/hardware or bother to see what they are giving the customer is worth it...and then just stall, give lame answers and don't bother truly helping the customer. "Yea, it's sun spots that causing those issues...wait until it's dark out and try it again!"

So - final results - setting the tcp_host_param will up the send/receive packets and F-secure will work with that to give better throughput versus using SUN's ssh.

Thanks all who took notice and helped.
# 14  
Old 03-14-2010
Quote:
Originally Posted by RTM
Yea - of course, I also just found out that SUN's version of ssh sucks.
Sun version is the same openssh everyone bundles.

Quote:
I threw F-secure on the server, replacing SUN ssh, and it flies! Giving the kind of throughput the application folks expected. So, is F-secure so much better (using multi-thread )? I find that hard to believe.
Instead of ranting and name calling without a clue, you'd better investigate why it goes faster with F-secure.
Possible reasons would be:
  • parallelized cryptography, why do you think it to be hard to believe ? There is actually a well known patch to ssh that implement multi-threaded cyphering: look for MT-AES-CTR in High Performance Enabled SSH/SCP [PSC]
  • faster encryption algorithm selection (Solaris use triple-des by default which is the most secure but slower).
  • Using UltraSPARC T2 integrated hardware crypto support.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to set timeout for dev/tcp while checking hostname and port?

I have a command to check the status of hostname and port number, echo > /dev/tcp/hostname/80 echo $? 0 success case echo > /dev/tcp/hostname/809999 I got the output ------------------- connection timed out It took almost 4 minutes to time out,,, how can I set it to 10 seconds? my... (2 Replies)
Discussion started by: sam@sam
2 Replies

2. Solaris

Solaris 9 ndd -set issues

Hello forum, I have a Solaris 9 Sun Fire v240 server and Sun Fire v440 Recently we made changes and installed a new switch which both of them are connected to it. Cisco Catalyst 3750. Now the Sun Server v240 is having problems with the network. It was supposed to run at 1000mbs speed. ndd... (10 Replies)
Discussion started by: br1an
10 Replies

3. Red Hat

Os not coming up after i set mount -o remount,rw /dev/hda8

on RHEL 5.3 i did mount -o remount,rw /dev/hda8 ( this is /tmp directory ) now OS not coming up. How to resolve ?? ---------- Post updated at 04:57 PM ---------- Previous update was at 03:36 PM ---------- one of my friend told me that you have changed sticky bit permissions on /tmp... (6 Replies)
Discussion started by: rehantayyab82
6 Replies

4. SCO

/dev/inet/tcp not listening in SCO 6.

While in SCO Openserver 5.0.7, Sybase listened to /dev/inet/tcp, the same is not working in SCO Openserver 6. The Network card is however active and pinging fine. What can be the reason? What is the way out? An early response will be appreciated. Thank you Regards TCG (2 Replies)
Discussion started by: thecobolguy
2 Replies

5. Solaris

ndd /dev/tcp help

Solaris 10 server (SunOS 5.10 Generic_137137_09) I have a services file configured in /etc in there windows clients connect to my server on port 6034-6037 when I do the following netstat | grep TestServices it pulls all the connections active for those ports so right now I have 10 clients... (3 Replies)
Discussion started by: deaconf19
3 Replies

6. Solaris

ndd matters

Hi, I would like to know whether there is any config file that i can refer to for the result of 'ndd -get /dev/tcp tcp_time_wait_interval'? When i man 'ndd', there is one statement which is -> Each driver chooses which parameters to make visible using ndd. Does it answering my question above... (3 Replies)
Discussion started by: honmin
3 Replies

7. Solaris

What is /dev/tty /dev/null and /dev/console

Hi, Anyone can help My solaris 8 system has the following /dev/null , /dev/tty and /dev/console All permission are lrwxrwxrwx Can this be change to a non-world write ?? any impact ?? (12 Replies)
Discussion started by: civic2005
12 Replies

8. Solaris

ndd help

Hi Guys, I need help with ndd. I was going through network FAQ but i have more questions then answers regarding ndd. #ndd -set /dev/hme instance 0 #ndd -set /dev/hme adv_100fdx_cap 1 #ndd -set /dev/hme adv_100hdx_cap 0 #ndd -set /dev/hme adv_10fdx_cap 0 #ndd -set /dev/hme adv_10hdx_cap 0... (2 Replies)
Discussion started by: nitinkgoud
2 Replies

9. IP Networking

ndd and le1

I am trying to set an interface to 100/Full, but the command I use are getting rejected. I think it is the last argument, but I don't know how to find the correct values. I am trying to use the following script, but change hme to le . echo "Setting hme interface 1: 100mb/full-duplex..." ... (2 Replies)
Discussion started by: bbrandeb49
2 Replies

10. UNIX for Dummies Questions & Answers

How Do I set up a UNix dev environment

Hello, I am totally new to Unix. My current contract requires me to build an intranet site (nothing fancy, no forms, no cgi scripts, no search engine) for a unix platform. I develop on an NT environment using dreamweaver. I am considering buying Red Hat Linux, install that on the NT... (1 Reply)
Discussion started by: alam
1 Replies
Login or Register to Ask a Question