<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Unix on Rocasta Dot Com</title><link>https://www.rocasta.com/tags/unix/</link><description>Recent content in Unix on Rocasta Dot Com</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 26 Mar 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://www.rocasta.com/tags/unix/index.xml" rel="self" type="application/rss+xml"/><item><title>Diagnosing SMB Latency</title><link>https://www.rocasta.com/posts/2025-03-26-diagnose-smb-latency/</link><pubDate>Wed, 26 Mar 2025 00:00:00 +0000</pubDate><guid>https://www.rocasta.com/posts/2025-03-26-diagnose-smb-latency/</guid><description>&lt;div class="sect1"&gt;
&lt;h2 id="_diagnosing_the_problem"&gt;&lt;a class="anchor" href="#_diagnosing_the_problem"&gt;&lt;/a&gt;1. Diagnosing the Problem&lt;/h2&gt;
&lt;div class="sectionbody"&gt;
&lt;div class="olist arabic"&gt;
&lt;ol class="arabic"&gt;
&lt;li&gt;
&lt;p&gt;Check Network Speed&lt;/p&gt;
&lt;div class="ulist"&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Use &lt;code&gt;iperf3&lt;/code&gt; to measure network throughput between the two Macs.&lt;/p&gt;
&lt;div class="listingblock"&gt;
&lt;div class="content"&gt;
&lt;pre class="rouge highlight"&gt;&lt;code data-lang="shell"&gt;&lt;span class="c"&gt;# On Mac B (SMB Server)&lt;/span&gt;
iperf3 &lt;span class="nt"&gt;-s&lt;/span&gt;
&lt;span class="c"&gt;# On Mac A (Client)&lt;/span&gt;
iperf3 &lt;span class="nt"&gt;-c&lt;/span&gt; &amp;lt;Mac B&lt;span class="s1"&gt;&amp;#39;s IP&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If the speed is close to 1Gbps, the network is performing as expected.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If it’s significantly lower (e.g., below 500 Mbps), there may be a bottleneck in the network hardware or cabling.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Check Latency with &lt;code&gt;ping&lt;/code&gt;&lt;/p&gt;
&lt;div class="ulist"&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Use &lt;code&gt;ping&lt;/code&gt; to measure round-trip time between Mac A and Mac B.&lt;/p&gt;
&lt;div class="listingblock"&gt;
&lt;div class="content"&gt;
&lt;pre class="rouge highlight"&gt;&lt;code data-lang="shell"&gt;ping &lt;span class="nt"&gt;-c&lt;/span&gt; 10 &amp;lt;Mac B&lt;span class="s1"&gt;&amp;#39;s IP&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;</description></item></channel></rss>