Skip to content

Samba FreeBSD 8.2 benchmarks (pre-upgrade to FreeBSD 9.0)

I’m about to upgrade to FreeBSD. While I csup the latest RELENG-9.0 branch, I’m looking at my Samba performance on 8.2.

I’m measuring a copy of FreeBSD-8.2-RELEASE-i386-dvd1.iso to the Samba server using the following batch file (taken from here):

@echo off

set starttime=%TIME%
set startcsec=%STARTTIME:~9,2%
set startsecs=%STARTTIME:~6,2%
set startmins=%STARTTIME:~3,2%
set starthour=%STARTTIME:~0,2%
set /a starttime=(%starthour%*60*60*100)+(%startmins%*60*100)+(%startsecs%*100)+
(%startcsec%)

:TimeThis
copy C:\Users\Poojan\Desktop\FreeBSD-8.2-RELEASE-i386-dvd1.iso.xz \\SERVER\Poojan\Downloads

set endtime=%time%
set endcsec=%endTIME:~9,2%
set endsecs=%endTIME:~6,2%
set endmins=%endTIME:~3,2%
set endhour=%endTIME:~0,2%
if %endhour% LSS %starthour% set /a endhour+=24
set /a endtime=(%endhour%*60*60*100)+(%endmins%*60*100)+(%endsecs%*100)+(%endcsec%)

set /a timetaken= ( %endtime% – %starttime% )
set /a timetakens= %timetaken% / 100
set timetaken=%timetakens%.%timetaken:~-2%

echo.
echo Took: %timetaken% sec.

C:\Users\Poojan\Desktop>time_copy.bat
1 file(s) copied.

Took: 77.34 sec.

That’s a 1751164811 byte file, so that’s 21.59 MiB/s. To receive:

@echo off

set starttime=%TIME%
set startcsec=%STARTTIME:~9,2%
set startsecs=%STARTTIME:~6,2%
set startmins=%STARTTIME:~3,2%
set starthour=%STARTTIME:~0,2%
set /a starttime=(%starthour%*60*60*100)+(%startmins%*60*100)+(%startsecs%*100)+
(%startcsec%)

:TimeThis
copy \\SERVER\Downloads\FreeBSD-9.0-RELEASE-amd64-dvd1\FreeBSD-9.0-RELEASE-amd64-dvd1.iso  C:\Users\Poojan\Desktop
set endtime=%time%
set endcsec=%endTIME:~9,2%
set endsecs=%endTIME:~6,2%
set endmins=%endTIME:~3,2%
set endhour=%endTIME:~0,2%
if %endhour% LSS %starthour% set /a endhour+=24
set /a endtime=(%endhour%*60*60*100)+(%endmins%*60*100)+(%endsecs%*100)+(%endcsec%)

set /a timetaken= ( %endtime% – %starttime% )
set /a timetakens= %timetaken% / 100
set timetaken=%timetakens%.%timetaken:~-2%

echo.
echo Took: %timetaken% sec.

C:\Users\Poojan\Desktop>time_recv.bat
1 file(s) copied.

Took: 109.23 sec.

This is a 2,388,531,200 byte file, so that’s 20.85 MiB/s.

I’ll repeat these later, when the csup is done–just in case the download on the server is hurting things.

OK: it’s done. Re-running:

C:\Users\Poojan\Desktop>time_recv.bat
1 file(s) copied.

Took: 52.72 sec.

C:\Users\Poojan\Desktop>time_recv.bat
1 file(s) copied.

Took: 43.23 sec.

So, that’s 43.2 MiB/s and 52.69 MiB/s. Trying it again, I get 42.09 MiB/s.

C:\Users\Poojan\Desktop>time_send.bat
1 file(s) copied.

Took: 73.38 sec.

C:\Users\Poojan\Desktop>time_send.bat
1 file(s) copied.

Took: 71.85 sec.

So, these are a bit more consistent: 22.76 MiB/s and 23.24 MiB/s.  Running it a third time gives 16.4 MiB, but I was running gstat, top, etc. while that was going.

2 people like this post.

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*