LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-16-2016, 03:22 PM   #1
tryptych
LQ Newbie
 
Registered: Feb 2016
Posts: 1

Rep: Reputation: Disabled
SMB benchmarks


I am testing the difference between SMB 1.0, 2.1, and 3.0

I am interested in how fast my client (CentOS 7) can read from enterprise class storage over SMB. I am using mount.cifs to force SMB to negotiate the different protocols by using the vers=3.0 option.

I mount using all three versions of SMB, then I do tests like so:

Code:
dd if=/mnt/smb3.0/mystorage/testfile of=/dev/zero bs=1024k count=8000
dd if=/mnt/smb2.1/mystorage/testfile of=/dev/zero bs=1024k count=8000
dd if=/mnt/smb1.0/mystorage/testfile of=/dev/zero bs=1024k count=8000
This works great and provides useful information. But I want to now test in different ways, for example: with rsync. But I don't want to have to worry about the speed of my storage on the client being a bottleneck; I want to use /dev/null to transfer the file into a blackhole like I did with /dev/zero in the dd tests.

Code:
rsync -av /mnt/smb3.0/mystorage/testfile /dev/null
The problem is that after about 15 seconds it comes back with :

Code:
rsync : write failed on "/dev/null": No space left on device
What? How can /dev/null run out of space??? Same thing happens if I use /dev/zero. Interestingly, if I now do an ls /dev the null or zero link is gone after this. Which has some interesting side affects on the o/s and requires a reboot to recover from (after the reboot /dev/null is recreated).

Can anyone suggest how I can get rsync to transfer into /dev/null, or something similar, just so I can see the speeds it gets? Are there any other useful tests I can run to test the speed of the protocol (I am not interested in speed of the storage and don't want it interfering).

Last edited by tryptych; 11-16-2016 at 03:31 PM.
 
Old 11-16-2016, 04:14 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,737

Rep: Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921
You can not use /dev/null as a directory which is what rsync is trying to do. I'm not sure exactly what is happening but since /dev/ is a virtual filesystem and you are trying to write to /dev/null as a directory the whole thing gets messed up (a very technical term...).

The only idea I have at the moment is to create a tmpfs for your destination directory. How big depends on the amount of memory so your results may vary.
 
  


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
[SOLVED] SMB Shares dont work when SMB is run as a service! CentOS 6 finnsloss Linux - Networking 1 10-14-2011 09:33 AM
smb.log / smb.conf problem (printcap) on VU+DUO tuner using Samba xlarge Linux - Newbie 0 01-04-2011 05:10 AM
Samba in Debian, smb.conf: smb passwd file = ?????????? henrnorl Linux - Software 1 10-06-2006 09:43 AM
Creating a SSL connection from smb clients to a smb server scottpioso General 0 11-17-2003 02:33 PM
making smb shares viewable from smb client via web browser scottpioso General 3 11-10-2003 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:13 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
Open Source Consulting | Domain Registration