{"id":621,"date":"2012-01-13T14:56:20","date_gmt":"2012-01-13T14:56:20","guid":{"rendered":"http:\/\/poojanwagh.opalstacked.com\/techblog\/?p=621"},"modified":"2012-01-13T14:56:20","modified_gmt":"2012-01-13T14:56:20","slug":"samba-freebsd-8-2-benchmarks-pre-upgrade-to-freebsd-9-0","status":"publish","type":"post","link":"https:\/\/tech.poojanblog.com\/blog\/unix-linux\/samba-freebsd-8-2-benchmarks-pre-upgrade-to-freebsd-9-0\/","title":{"rendered":"Samba FreeBSD 8.2 benchmarks (pre-upgrade to FreeBSD 9.0)"},"content":{"rendered":"<p>I&#8217;m about to upgrade to FreeBSD. While I csup the latest RELENG-9.0 branch, I&#8217;m looking at my Samba performance on 8.2.<\/p>\n<p>I&#8217;m measuring a copy of <code>FreeBSD-8.2-RELEASE-i386-dvd1.iso<\/code> to the Samba server using the following batch file (taken from <a title=\"stack overflow\" href=\"http:\/\/stackoverflow.com\/questions\/673523\/how-to-measure-execution-time-of-command-in-windows-command-line\">here<\/a>):<\/p>\n<code><\/p>\n<p>@echo off<\/p>\n<p>set starttime=%TIME%<br \/>\nset startcsec=%STARTTIME:~9,2%<br \/>\nset startsecs=%STARTTIME:~6,2%<br \/>\nset startmins=%STARTTIME:~3,2%<br \/>\nset starthour=%STARTTIME:~0,2%<br \/>\nset \/a starttime=(%starthour%*60*60*100)+(%startmins%*60*100)+(%startsecs%*100)+<br \/>\n(%startcsec%)<\/p>\n<p>:TimeThis<br \/>\ncopy C:\\Users\\Poojan\\Desktop\\FreeBSD-8.2-RELEASE-i386-dvd1.iso.xz \\\\SERVER\\Poojan\\Downloads<\/p>\n<p>set endtime=%time%<br \/>\nset endcsec=%endTIME:~9,2%<br \/>\nset endsecs=%endTIME:~6,2%<br \/>\nset endmins=%endTIME:~3,2%<br \/>\nset endhour=%endTIME:~0,2%<br \/>\nif %endhour% LSS %starthour% set \/a endhour+=24<br \/>\nset \/a endtime=(%endhour%*60*60*100)+(%endmins%*60*100)+(%endsecs%*100)+(%endcsec%)<\/p>\n<p>set \/a timetaken= ( %endtime% &#8211; %starttime% )<br \/>\nset \/a timetakens= %timetaken% \/ 100<br \/>\nset timetaken=%timetakens%.%timetaken:~-2%<\/p>\n<p>echo.<br \/>\necho Took: %timetaken% sec.<\/p>\n<p><\/code>\n<code><\/p>\n<p>C:\\Users\\Poojan\\Desktop&gt;time_copy.bat<br \/>\n1 file(s) copied.<\/p>\n<p>Took: 77.34 sec.<\/p>\n<p><\/code>\n<p>That&#8217;s a 1751164811 byte file, so that&#8217;s 21.59 MiB\/s. To receive:<\/p>\n<code><\/p>\n<p>@echo off<\/p>\n<p>set starttime=%TIME%<br \/>\nset startcsec=%STARTTIME:~9,2%<br \/>\nset startsecs=%STARTTIME:~6,2%<br \/>\nset startmins=%STARTTIME:~3,2%<br \/>\nset starthour=%STARTTIME:~0,2%<br \/>\nset \/a starttime=(%starthour%*60*60*100)+(%startmins%*60*100)+(%startsecs%*100)+<br \/>\n(%startcsec%)<\/p>\n<p>:TimeThis<br \/>\ncopy \\\\SERVER\\Downloads\\FreeBSD-9.0-RELEASE-amd64-dvd1\\FreeBSD-9.0-RELEASE-amd64-dvd1.iso\u00a0 C:\\Users\\Poojan\\Desktop<br \/>\nset endtime=%time%<br \/>\nset endcsec=%endTIME:~9,2%<br \/>\nset endsecs=%endTIME:~6,2%<br \/>\nset endmins=%endTIME:~3,2%<br \/>\nset endhour=%endTIME:~0,2%<br \/>\nif %endhour% LSS %starthour% set \/a endhour+=24<br \/>\nset \/a endtime=(%endhour%*60*60*100)+(%endmins%*60*100)+(%endsecs%*100)+(%endcsec%)<\/p>\n<p>set \/a timetaken= ( %endtime% &#8211; %starttime% )<br \/>\nset \/a timetakens= %timetaken% \/ 100<br \/>\nset timetaken=%timetakens%.%timetaken:~-2%<\/p>\n<p>echo.<br \/>\necho Took: %timetaken% sec.<\/p>\n<p><\/code>\n<code><\/p>\n<p>C:\\Users\\Poojan\\Desktop&gt;time_recv.bat<br \/>\n1 file(s) copied.<\/p>\n<p>Took: 109.23 sec.<\/p>\n<p><\/code>\n<p>This is a 2,388,531,200 byte file, so that&#8217;s 20.85 MiB\/s.<\/p>\n<p>I&#8217;ll repeat these later, when the csup is done&#8211;just in case the download on the server is hurting things.<\/p>\n<p>OK: it&#8217;s done. Re-running:<\/p>\n<code><\/p>\n<p>C:\\Users\\Poojan\\Desktop&gt;time_recv.bat<br \/>\n1 file(s) copied.<\/p>\n<p>Took: 52.72 sec.<\/p>\n<p>C:\\Users\\Poojan\\Desktop&gt;time_recv.bat<br \/>\n1 file(s) copied.<\/p>\n<p>Took: 43.23 sec.<\/p>\n<p><\/code>\n<p>So, that&#8217;s 43.2 MiB\/s and 52.69 MiB\/s. Trying it again, I get 42.09 MiB\/s.<\/p>\n<code><\/p>\n<p>C:\\Users\\Poojan\\Desktop&gt;time_send.bat<br \/>\n1 file(s) copied.<\/p>\n<p>Took: 73.38 sec.<\/p>\n<p>C:\\Users\\Poojan\\Desktop&gt;time_send.bat<br \/>\n1 file(s) copied.<\/p>\n<p>Took: 71.85 sec.<\/p>\n<p><\/code>\n<p>So, these are a bit more consistent: 22.76 MiB\/s and 23.24 MiB\/s.\u00a0 Running it a third time gives 16.4 MiB, but I was running gstat, top, etc. while that was going.<\/p>\n<div class='wp_likes' id='wp_likes_post-621'><a class='like' href=\"javascript:wp_likes.like(621);\" title='Like' ><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/tech.poojanblog.com\/blog\/wp-content\/plugins\/wp-likes\/images\/like.png\" alt='' border='0'\/><\/a><span class='text'><b>2<\/b> people like this post.<\/span><\/p>\n<div class='like' ><a href=\"javascript:wp_likes.like(621);\">Like<\/a><\/div>\n<div class='unlike' ><a href=\"javascript:wp_likes.unlike(621);\">Unlike<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m about to upgrade to FreeBSD. While I csup the latest RELENG-9.0 branch, I&#8217;m looking at my Samba performance on 8.2. I&#8217;m measuring a copy of to the Samba server using the following batch file (taken from here): That&#8217;s a 1751164811 byte file, so that&#8217;s 21.59 MiB\/s. To receive: This is a 2,388,531,200 byte file, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[174,173,13,175,3],"class_list":["post-621","post","type-post","status-publish","format-standard","hentry","category-unix-linux","tag-benchmark","tag-iozone","tag-samba","tag-speed","tag-zfs"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/comments?post=621"}],"version-history":[{"count":6,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/621\/revisions"}],"predecessor-version":[{"id":636,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/621\/revisions\/636"}],"wp:attachment":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/media?parent=621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/categories?post=621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/tags?post=621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}