<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

      <title>Comments on: one-way scp?</title>
      <link>http://ask.metafilter.com/39844/oneway-scp/</link>
      <description>Comments on Ask MetaFilter post one-way scp?</description>
	  	  <pubDate>Fri, 09 Jun 2006 07:38:16 -0800</pubDate>
      <lastBuildDate>Fri, 09 Jun 2006 07:38:16 -0800</lastBuildDate>
      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>

<item>
  	<title>Question: one-way scp?</title>
  	<link>http://ask.metafilter.com/39844/oneway-scp</link>	
  	<description>Linux to Mac SSH connection: Why is scp so much slower in one direction? &lt;br /&gt;&lt;br /&gt; I have a home wireless network of two Linux machines (a laptop and a desktop) and a G4 Mac mini. Between the two Linux machines I get a transfer rate of around 2.0MB/s in both directions using scp, and from the Mac to either of the Linux machines about the same. &lt;br&gt;
&lt;br&gt;
The problem is with scp&apos;ing stuff &lt;i&gt;to&lt;/i&gt; the Mac mini. The rate starts out about 700KB/s, then settles down to about 400KB/s within a few seconds.&lt;br&gt;
&lt;br&gt;
I also set up a Samba share on the Linux boxes, and I&apos;m seeing the same slowdown using regular cp to/from the Mac.&lt;br&gt;
&lt;br&gt;
Any ideas?</description>
  	<guid isPermaLink="false">post:ask.metafilter.com,2008:site.39844</guid>
  	<pubDate>Fri, 09 Jun 2006 07:25:33 -0800</pubDate>
  	<dc:creator>ciaron</dc:creator>
	
	<category>scp</category>
	
	<category>linux</category>
	
	<category>mac</category>
	
	<category>networking</category>
	
	<category>ssh</category>
	
</item>
<item>
  	<title>By: edd</title>
  	<link>http://ask.metafilter.com/39844/oneway-scp#614628</link>	
  	<description>Not sure myself, but &lt;a href=&quot;http://forums.macosxhints.com/showthread.php?t=53812&amp;highlight=slow+scp&quot;&gt;you&apos;re not the first one with this problem&lt;/a&gt;.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.39844-614628</guid>
  	<pubDate>Fri, 09 Jun 2006 07:38:16 -0800</pubDate>
  	<dc:creator>edd</dc:creator>
</item>
<item>
  	<title>By: public</title>
  	<link>http://ask.metafilter.com/39844/oneway-scp#614637</link>	
  	<description>Can you post the output of scp with the -v flag on? Feel free to obscure IP addresses and things if they are sensitive. I imagine that it might have something to do with the encyption scheme being used and the speed of decryption on the Mac Mini. -v should tell us exactly what encryption method you are using.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Hopefully it is using blowfish as that&apos;s the fastest one SSH usually supports I believe.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.39844-614637</guid>
  	<pubDate>Fri, 09 Jun 2006 07:44:31 -0800</pubDate>
  	<dc:creator>public</dc:creator>
</item>
<item>
  	<title>By: edd</title>
  	<link>http://ask.metafilter.com/39844/oneway-scp#614641</link>	
  	<description>public: that wouldn&apos;t explain why the same is seen on samba connections though, would it?</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.39844-614641</guid>
  	<pubDate>Fri, 09 Jun 2006 07:47:28 -0800</pubDate>
  	<dc:creator>edd</dc:creator>
</item>
<item>
  	<title>By: public</title>
  	<link>http://ask.metafilter.com/39844/oneway-scp#614646</link>	
  	<description>edd: Yes I failed to read the question entirely :P In which case, I have no idea. I don&apos;t tend to ever transfer files *to* my Apple hardware. Unless you count downloading but my cable maxes out at 450KB/s anyway.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.39844-614646</guid>
  	<pubDate>Fri, 09 Jun 2006 07:50:09 -0800</pubDate>
  	<dc:creator>public</dc:creator>
</item>
<item>
  	<title>By: edd</title>
  	<link>http://ask.metafilter.com/39844/oneway-scp#614652</link>	
  	<description>Oh... try turning off ipv6 in System Preferences (Network &amp;gt; Configure IPv6 &amp;gt; Off).</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.39844-614652</guid>
  	<pubDate>Fri, 09 Jun 2006 07:55:16 -0800</pubDate>
  	<dc:creator>edd</dc:creator>
</item>
<item>
  	<title>By: ciaron</title>
  	<link>http://ask.metafilter.com/39844/oneway-scp#614664</link>	
  	<description>I already thought of IPv6 - it&apos;s off at both ends.&lt;br&gt;
&lt;br&gt;
(I won&apos;t post the scp -v output directly - sounds like it may not be relevant. In case it&apos;s helpful, I&apos;ve got it here:&lt;br&gt;
&lt;a href=&quot;http://ciaron.dyndns.org/files/output.linux&quot;&gt;scp from Linux&lt;/a&gt;, &lt;a href=&quot;http://ciaron.dyndns.org/files/output.mac&quot;&gt;scp from Mac&lt;/a&gt;)</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.39844-614664</guid>
  	<pubDate>Fri, 09 Jun 2006 08:06:30 -0800</pubDate>
  	<dc:creator>ciaron</dc:creator>
</item>
<item>
  	<title>By: majick</title>
  	<link>http://ask.metafilter.com/39844/oneway-scp#614675</link>	
  	<description>Try &lt;a href=&quot;http://dsd.lbl.gov/TCP-tuning/MacOSX.html&quot;&gt;adjusting the sysctls&lt;/a&gt;.  The Darwin TCP implementation is pretty slow and featureless, and Apple&apos;s default tuning values are rather conservative.  There&apos;s only so much you can do about that, unfortunately.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.39844-614675</guid>
  	<pubDate>Fri, 09 Jun 2006 08:16:16 -0800</pubDate>
  	<dc:creator>majick</dc:creator>
</item>
<item>
  	<title>By: Mr. Six</title>
  	<link>http://ask.metafilter.com/39844/oneway-scp#614708</link>	
  	<description>Have you tried Apple&apos;s &lt;a href=&quot;http://www.apple.com/support/downloads/broadbandtuner10.html&quot;&gt;Broadband Tuner&lt;/a&gt;?</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.39844-614708</guid>
  	<pubDate>Fri, 09 Jun 2006 08:54:13 -0800</pubDate>
  	<dc:creator>Mr. Six</dc:creator>
</item>
<item>
  	<title>By: mendel</title>
  	<link>http://ask.metafilter.com/39844/oneway-scp#614714</link>	
  	<description>Check for errors in &amp;quot;ifconfig&amp;quot; output at both ends. (I don&apos;t use OS X, so someone else can correct me if the right place for error counters in OS X isn&apos;t &amp;quot;ifconfig&amp;quot; output.) On Linux, at least, you&apos;ll see something like&lt;br&gt;
&lt;pre&gt;RX packets:57217 errors:0 dropped:0 overruns:0 frame:0&lt;br&gt;TX packets:49802 errors:0 dropped:0 overruns:0 carrier:0&lt;/pre&gt;except maybe all those 0s won&apos;t be 0s. Also check for Ethernet autonegotiation problems. In Linux, you can do that with &amp;quot;mii-tool&amp;quot; or &amp;quot;ethtool&amp;quot;. They give you output like&lt;br&gt;
&lt;pre&gt;eth0: negotiated 100baseTx-FD flow-control, link ok&lt;/pre&gt;and&lt;br&gt;
&lt;pre&gt;Speed: 100Mb/s&lt;br&gt;Duplex: Full&lt;br&gt;Auto-negotiation: on&lt;/pre&gt;respectively. If you see something there that &lt;i&gt;isn&apos;t&lt;/i&gt; 100 MB full duplex, unless you&apos;re on an old non-switching hub, then there is something amiss with the way your devices are autonegotiating. Unfortunately I don&apos;t know the OS X equivalent.&lt;br&gt;
&lt;br&gt;
Both the scp and samba data transfers are asymmetrical (big chunk of data sent; tiny ack returned) so errors occurring at one end wouldn&apos;t necessarily slow things down in both directions.&lt;br&gt;
&lt;br&gt;
I wouldn&apos;t go adjusting things until you&apos;ve diagnosed the problem, though, and the first place I&apos;d look to diagnose the problem is at the ethernet and IP levels.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.39844-614714</guid>
  	<pubDate>Fri, 09 Jun 2006 09:01:21 -0800</pubDate>
  	<dc:creator>mendel</dc:creator>
</item>
<item>
  	<title>By: George_Spiggott</title>
  	<link>http://ask.metafilter.com/39844/oneway-scp#614785</link>	
  	<description>A number of people have found that the samba socket options defaults on some Linux distributions aren&apos;t compatible with an OSX client -- this results in big slowdowns when transferring files from the Linux machine to the Mac.  I&apos;m not sure of the reasons but this seems to fix it.  If in smb.conf you see the options &lt;br&gt;
&lt;br&gt;
&lt;tt&gt;SO_SNDBUF=4096 SO_RCVBUF=4096&lt;/tt&gt; &lt;br&gt;
&lt;br&gt;
remove them (leave the other socket options alone), restart the samba daemons and see if that improves it.  It won&apos;t help with the scp problem but this has helped a lot of people with samba.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.39844-614785</guid>
  	<pubDate>Fri, 09 Jun 2006 10:32:15 -0800</pubDate>
  	<dc:creator>George_Spiggott</dc:creator>
</item>

    </channel>
</rss>
