Solaris / OpenSolarisThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,786
Rep:
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.
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,786
Rep:
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.