LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 07-26-2004, 04:59 AM   #1
altu
LQ Newbie
 
Registered: Jul 2004
Distribution: Redhat
Posts: 4

Rep: Reputation: 0
Req. Shell script: Network performance test


Hello all,

This is my first post, but I've been going through this list a lot, and it has really helped me in many occasions.

I would like to come up with a script to test the network performance between:

1. 2 Sun clusters
2. 1 Sun cluster and a windows workstation

I don't want to involve any third party programs. I just want to use programs local to both systems. Pings, tracerts, FTPs are OK.

I want something that can tell me the thoroughput. I want to use it as a benchmarking tool for determining TCP and UDP performance between the 2 systems.

I would also like to know the procedure for raising network limits under Solaris. I'm aware that the ndd variables (tcp_max_buf, tcp_xmit_hiwat, tcp_recv_hiwat) can be set, but how?

Please help.

Thank you.
 
Old 07-26-2004, 08:33 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,773

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
If your goal is only about the throughput, standard ftp is already giving you this measure after each transfer:
ex: 1148932 bytes received in 0.13 seconds (8944.62 Kbytes/s)
The numbers show the workload, the payload is always higher.

For udp, perhaps a timed nfs copy will do the job.

Of course, watch your disk load while testing to be sure you really measure network and not disk performance. To avoid the issue, the simplest way is to work on /tmp (tmpfs), and assure the system has enough RAM (no paging).

About changing network driver's variables, an example of the syntax to use is:

# ndd -set /dev/tcp tcp_xmit_hiwat 65536

Beware that you can easily degrade vs improve a system by wrongly "tuning" it.
 
Old 07-27-2004, 12:40 AM   #3
altu
LQ Newbie
 
Registered: Jul 2004
Distribution: Redhat
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you for your prompt response.

I'm using this ftp script for the throughput measurement:

#!/bin/bash

HOSTNAME= xxx.xxx.xxx.xxx

ftp $HOSTNAME << !
bin
pipe
put "| dd if=/dev/zero bs=32k count=10000" /dev/null
bye
!

It helps. I have'nt been able to test the timed nfs copy yet.

I think I've seen a shell script out there somewhere that does what I want, but I can't seem to remember where.

Any more help would be appreciated.

Thank you, again.
 
Old 07-27-2004, 04:24 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,773

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
For nfs, I don't think the trick of using /dev/null or /dev/zero as a remote file would work, so if you want to avoid disk interference, what you can do is sharing tmpfs directories on the remote host like this:

share -F nfs -o rw -d "/tmp" /tmp

then:

time dd if=/dev/zero bs=32k count=10000 of=/net/remote/tmp/320MB

will give you the UDP time, as long as you start your nfs server with the option to lock it in UDP (-p udp i think, or in /etc/default/nfs if this file exists, on solaris 9 maybe and 10 for sure)

You can also use tftp for udp benchmarks.
 
Old 07-28-2004, 12:07 AM   #5
altu
LQ Newbie
 
Registered: Jul 2004
Distribution: Redhat
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you, once again.

I'm going to try your method. It looks fine to me, and I hope to have the results of my tests soon.

I appreciate your help.

Thank you.
 
Old 08-08-2004, 09:51 PM   #6
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
I would suggest nsar it is available at http://www.sunfreeware.com . You can go all out and have mrtg going as well http://people.ee.ethz.ch/~oetiker/webtools/mrtg/
 
Old 08-08-2004, 11:45 PM   #7
altu
LQ Newbie
 
Registered: Jul 2004
Distribution: Redhat
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you, neo77777.

I'm always looking for better tools or scripts that might help me with the original task.

I'll be checking out the tools that you've mentioned. However, mrtg might be an overkill.

Thank you, and I appreciate you help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 05:32 PM
Shell Script to shutdown network computers? Brnzwngs Linux - Networking 6 09-11-2005 10:28 AM
how to test if user is root or not in a shell script? dr_zayus69 Programming 3 08-17-2005 03:00 AM
Shell script to test my shell alltime Programming 5 04-22-2005 07:24 PM
[Req]: How to config WebSvr & DNS Svr from console by Bash shell script CiF Linux - Networking 2 03-22-2005 12:31 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 01:51 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration