<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: NFS write very slow NFS read fast in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929933#M85277</link>
    <description>I have run into that problem several times.&lt;BR /&gt;It results when the duplex on the connection&lt;BR /&gt;is Half Duplex on one side and Full Duplex on&lt;BR /&gt;the other.  Transfers work well in one &lt;BR /&gt;direction only.  &lt;BR /&gt;&lt;BR /&gt;The solution I recommend is to enable &lt;BR /&gt;autonegotiation at the switch and server.&lt;BR /&gt;&lt;BR /&gt;If you must have the duplex hard-coded, then&lt;BR /&gt;load the driver with the appropriate options&lt;BR /&gt;just before configuring it.  Don't load in&lt;BR /&gt;/etc/modules, instead use a pre-up entry&lt;BR /&gt;in /etc/network/interfaces to load the &lt;BR /&gt;module when you are configuring it.  &lt;BR /&gt;It appears that some switches will fall back&lt;BR /&gt;to Half-Duplex if there is no traffic &lt;BR /&gt;for a while after the line falls back&lt;BR /&gt;even if they are hard coded to 100FD.&lt;BR /&gt;</description>
    <pubDate>Thu, 29 Sep 2005 09:01:50 GMT</pubDate>
    <dc:creator>Bill Thorsteinson</dc:creator>
    <dc:date>2005-09-29T09:01:50Z</dc:date>
    <item>
      <title>NFS write very slow NFS read fast</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929923#M85267</link>
      <description>I have a share on a Linux server which is used for a large DATA storage.&lt;BR /&gt;It worked perfectly until we moved our servers to a new location.&lt;BR /&gt;We had some network topology changes but I cn't explain why now all the clients that try to write on the NFS share are very slow ! in the mean time reading is still fast...&lt;BR /&gt;&lt;BR /&gt;I use on the client side:&lt;BR /&gt;merlin.lusis:/TANGO/LIVRAISON_HP /home/hector/merlin nfs user,async,rsize=8192,wsize=8192,hard 0 0&lt;BR /&gt;and on the server side:&lt;BR /&gt;/TANGO/LIVRAISON_HP/ *(async,rw,no_root_squash,insecure,no_wdelay) &lt;BR /&gt;&lt;BR /&gt;Have any idea ?&lt;BR /&gt;Thanx</description>
      <pubDate>Wed, 28 Sep 2005 11:27:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929923#M85267</guid>
      <dc:creator>Laurent Laperrousaz</dc:creator>
      <dc:date>2005-09-28T11:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: NFS write very slow NFS read fast</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929924#M85268</link>
      <description>What is the configuration of the volume that is exported via NFS. If its raid 5 one would expect slow write performance due to how many disks every write needs to go to.&lt;BR /&gt;&lt;BR /&gt;Further, run some nfsstat commands during write operations. You might see something useful you can post here.&lt;BR /&gt;&lt;BR /&gt;I think your export is cool except the no_root_squash is a little dangerous, but that is not a performance issue.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 28 Sep 2005 12:56:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929924#M85268</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-09-28T12:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: NFS write very slow NFS read fast</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929925#M85269</link>
      <description>please post your nfsstat output to this message.&lt;BR /&gt;&lt;BR /&gt;also capture top output during writes&lt;BR /&gt;&lt;BR /&gt;also would need nfs version number and linux kernel version or distro.</description>
      <pubDate>Wed, 28 Sep 2005 13:51:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929925#M85269</guid>
      <dc:creator>Donny Jekels</dc:creator>
      <dc:date>2005-09-28T13:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: NFS write very slow NFS read fast</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929926#M85270</link>
      <description>no it's just a fast IDE disk with no raid at all!&lt;BR /&gt;&lt;BR /&gt;I will try nfsstat on both sides and post the results&lt;BR /&gt;&lt;BR /&gt;The no_root_squash is to be changed I agree!</description>
      <pubDate>Wed, 28 Sep 2005 13:52:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929926#M85270</guid>
      <dc:creator>Laurent Laperrousaz</dc:creator>
      <dc:date>2005-09-28T13:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: NFS write very slow NFS read fast</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929927#M85271</link>
      <description>Try doing a put and get using ftp. Verify the transfer speed and compare them.&lt;BR /&gt;&lt;BR /&gt;Also, verify the netstat -ni output, check for packet errors and collisions. You may be having a speed negotiation problem.</description>
      <pubDate>Wed, 28 Sep 2005 13:54:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929927#M85271</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-09-28T13:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: NFS write very slow NFS read fast</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929928#M85272</link>
      <description>I'd also run sar on the disk itself, sar -d and see what the data looks like during a write. IDE performance has come up lately but SCSI still out does it at the low end.&lt;BR /&gt;&lt;BR /&gt;The key for Sherlock Holme's here is that things worked perfectly until we moved our servers to a new location.&lt;BR /&gt;&lt;BR /&gt;Perhaps its a network bottleneck. What has changed about the location? Routers different? Firewall different? Something changed and it may not be your system.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 28 Sep 2005 13:59:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929928#M85272</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-09-28T13:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: NFS write very slow NFS read fast</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929929#M85273</link>
      <description>Server nfs v3:&lt;BR /&gt;null       getattr    setattr    lookup     access     readlink   &lt;BR /&gt;15      0% 274155 15% 1658    0% 1238931 69% 16212   0% 426     0% &lt;BR /&gt;read       write      create     mkdir      symlink    mknod      &lt;BR /&gt;63351   3% 90650   5% 1193    0% 124     0% 0       0% 0       0% &lt;BR /&gt;remove     rmdir      rename     link       readdir    readdirplus&lt;BR /&gt;1982    0% 262     0% 234     0% 0       0% 49      0% 5349    0% &lt;BR /&gt;fsstat     fsinfo     pathconf   commit     &lt;BR /&gt;81156   4% 8       0% 87      0% 3152    0% &lt;BR /&gt;&lt;BR /&gt;lookup are high but I don't know what they correspond to!&lt;BR /&gt;&lt;BR /&gt;SEP: that's the point what has changed! we changed the network mask to enlarge the LAN:&lt;BR /&gt;mask was 255.255.255.0 and is now 255.255.248.0&lt;BR /&gt;the client and the server are on the same network (no router, the client is a HP-UX V11.0 or a linux box mandrake 10.1)&lt;BR /&gt;I experimented the same tranfers using samba and then it works perfectly and fast.&lt;BR /&gt;So it is not a network issue.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Sep 2005 14:35:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929929#M85273</guid>
      <dc:creator>Laurent Laperrousaz</dc:creator>
      <dc:date>2005-09-28T14:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: NFS write very slow NFS read fast</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929930#M85274</link>
      <description>That nfsstat output is not very helpfull, use the -c option. Also, is not always good a big rsize and wsize.&lt;BR /&gt;&lt;BR /&gt;Follow the instructions here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://nfs.sourceforge.net/nfs-howto/performance.html" target="_blank"&gt;http://nfs.sourceforge.net/nfs-howto/performance.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;And here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://publib.boulder.ibm.com/infocenter/pseries/index.jsp?topic=/com.ibm.aix.doc/aixbman/prftungd/nfscliprfmon.htm" target="_blank"&gt;http://publib.boulder.ibm.com/infocenter/pseries/index.jsp?topic=/com.ibm.aix.doc/aixbman/prftungd/nfscliprfmon.htm&lt;/A&gt;</description>
      <pubDate>Wed, 28 Sep 2005 15:07:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929930#M85274</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-09-28T15:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: NFS write very slow NFS read fast</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929931#M85275</link>
      <description>here are the client side nfsstat result.&lt;BR /&gt;concerning the buffer size I used the size preconised by the nfs.sourceforge.net!&lt;BR /&gt;and indeed itt improved a bit the time to write a file on the nfs share.&lt;BR /&gt;&lt;BR /&gt;hector@hpisim:/home/hector&amp;gt;nfsstat -cn&lt;BR /&gt;&lt;BR /&gt;Client nfs:&lt;BR /&gt;calls                   badcalls                clgets                  &lt;BR /&gt;1036825                 170                     1036825                 &lt;BR /&gt;cltoomany               &lt;BR /&gt;0                       &lt;BR /&gt;Version 2: (152 calls)&lt;BR /&gt;null                    getattr                 setattr                 &lt;BR /&gt;0 0%                    69 45%                  0 0%                    &lt;BR /&gt;root                    lookup                  readlink                &lt;BR /&gt;0 0%                    81 53%                  0 0%                    &lt;BR /&gt;read                    wrcache                 write                   &lt;BR /&gt;0 0%                    0 0%                    0 0%                    &lt;BR /&gt;create                  remove                  rename                  &lt;BR /&gt;0 0%                    0 0%                    0 0%                    &lt;BR /&gt;link                    symlink                 mkdir                   &lt;BR /&gt;0 0%                    0 0%                    0 0%                    &lt;BR /&gt;rmdir                   readdir                 statfs                  &lt;BR /&gt;0 0%                    1 0%                    1 0%                    &lt;BR /&gt;Version 3: (1036673 calls)&lt;BR /&gt;null                    getattr                 setattr                 &lt;BR /&gt;0 0%                    170817 16%              591 0%                  &lt;BR /&gt;lookup                  access                  readlink                &lt;BR /&gt;806884 77%              5774 0%                 425 0%                  &lt;BR /&gt;read                    write                   create                  &lt;BR /&gt;22694 2%                26095 2%                130 0%                  &lt;BR /&gt;mkdir                   symlink                 mknod                   &lt;BR /&gt;10 0%                   0 0%                    0 0%                    &lt;BR /&gt;remove                  rmdir                   rename                  &lt;BR /&gt;124 0%                  9 0%                    3 0%                    &lt;BR /&gt;link                    readdir                 readdir+                &lt;BR /&gt;0 0%                    5 0%                    1931 0%                 &lt;BR /&gt;fsstat                  fsinfo                  pathconf                &lt;BR /&gt;34 0%                   1 0%                    44 0%                   &lt;BR /&gt;commit                  &lt;BR /&gt;1102 0%</description>
      <pubDate>Wed, 28 Sep 2005 17:13:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929931#M85275</guid>
      <dc:creator>Laurent Laperrousaz</dc:creator>
      <dc:date>2005-09-28T17:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: NFS write very slow NFS read fast</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929932#M85276</link>
      <description>I finally found what happened:&lt;BR /&gt;We had a big number of packet receive errors on  the eth0 device. That has been solved by rebooting the server...&lt;BR /&gt;I thought that the problem was on the wire but after changing it, it was still bad.&lt;BR /&gt;Only a hardware reset on the device caused a good behaviour of the network interface.&lt;BR /&gt;Still I don't understand what happened, I 'm still worrying why it happened (and how)</description>
      <pubDate>Thu, 29 Sep 2005 07:54:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929932#M85276</guid>
      <dc:creator>Laurent Laperrousaz</dc:creator>
      <dc:date>2005-09-29T07:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: NFS write very slow NFS read fast</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929933#M85277</link>
      <description>I have run into that problem several times.&lt;BR /&gt;It results when the duplex on the connection&lt;BR /&gt;is Half Duplex on one side and Full Duplex on&lt;BR /&gt;the other.  Transfers work well in one &lt;BR /&gt;direction only.  &lt;BR /&gt;&lt;BR /&gt;The solution I recommend is to enable &lt;BR /&gt;autonegotiation at the switch and server.&lt;BR /&gt;&lt;BR /&gt;If you must have the duplex hard-coded, then&lt;BR /&gt;load the driver with the appropriate options&lt;BR /&gt;just before configuring it.  Don't load in&lt;BR /&gt;/etc/modules, instead use a pre-up entry&lt;BR /&gt;in /etc/network/interfaces to load the &lt;BR /&gt;module when you are configuring it.  &lt;BR /&gt;It appears that some switches will fall back&lt;BR /&gt;to Half-Duplex if there is no traffic &lt;BR /&gt;for a while after the line falls back&lt;BR /&gt;even if they are hard coded to 100FD.&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Sep 2005 09:01:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929933#M85277</guid>
      <dc:creator>Bill Thorsteinson</dc:creator>
      <dc:date>2005-09-29T09:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: NFS write very slow NFS read fast</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929934#M85278</link>
      <description>But when I asked if you had errors in netstat -ni you said no, and that where no hardware errors, and that other transfers methods worked fine.&lt;BR /&gt;&lt;BR /&gt;If the problem was the hardware, why other transfer methods was not affected?. The protocol maybe?</description>
      <pubDate>Thu, 29 Sep 2005 10:44:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929934#M85278</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-09-29T10:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: NFS write very slow NFS read fast</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929935#M85279</link>
      <description>Duplex mismatches only result in lost packets when both sides of the wire try to talk at the same time.  If the applications in question are single-packet request/response - eg ping - then one will not see the "problem" with a duplex mismatch.&lt;BR /&gt;&lt;BR /&gt;It is possible that link-level errors were only detected at the switch, in which case netstat would not show much.  It may also be the case that the link-level errrors detected by the driver were not propagated up to netstat?  Ethtool might be a good thing to use in addition to netstat.&lt;BR /&gt;&lt;BR /&gt;If there were packet losses, one would expect to see retransmissions recorded by the upper layer protocol(s) - TCP, or NFS in this case.&lt;BR /&gt;&lt;BR /&gt;Some boilerplate on duplex:&lt;BR /&gt;&lt;BR /&gt;How Autoneg is supposed to work:&lt;BR /&gt;&lt;BR /&gt;When both sides of the link are set to autoneg, they will "negotiate"&lt;BR /&gt;the duplex setting and select full duplex if both sides can do&lt;BR /&gt;full-duplex.&lt;BR /&gt;&lt;BR /&gt;If one side is hardcoded and not using autoneg, the autoneg process&lt;BR /&gt;will "fail" and the side trying to autoneg is required by spec to use&lt;BR /&gt;half-duplex mode.&lt;BR /&gt;&lt;BR /&gt;If one side is using half-duplex, and the other is using full-duplex,&lt;BR /&gt;sorrow and woe is the usual result.&lt;BR /&gt;&lt;BR /&gt;So, the following table shows what will happen given various settings&lt;BR /&gt;on each side:&lt;BR /&gt;&lt;BR /&gt;                 Auto       Half       Full&lt;BR /&gt;&lt;BR /&gt;   Auto        Happiness   Lucky      Sorrow&lt;BR /&gt;&lt;BR /&gt;   Half        Lucky       Happiness  Sorrow&lt;BR /&gt;&lt;BR /&gt;   Full        Sorrow      Sorrow     Happiness&lt;BR /&gt;&lt;BR /&gt;Happiness means that there is a good shot of everything going well.&lt;BR /&gt;Lucky means that things will likely go well, but not because you did&lt;BR /&gt;anything correctly :) Sorrow means that there _will_ be a duplex&lt;BR /&gt;mis-match.&lt;BR /&gt;&lt;BR /&gt;When there is a duplex mismatch, on the side running half-duplex you&lt;BR /&gt;will see various errors and probably a number of late collisions. On&lt;BR /&gt;the side running full-duplex you will see things like FCS errors.&lt;BR /&gt;Note that those errors are not necessarily conclusive, they are simply&lt;BR /&gt;indicators.&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Sep 2005 12:01:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929935#M85279</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2005-09-29T12:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: NFS write very slow NFS read fast</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929936#M85280</link>
      <description>For Ivan:&lt;BR /&gt;I did not say I ran netstat -in but right, I tried transfers with samba that did not appear to be slow.&lt;BR /&gt;That is why for a while I stopped checking the  low level...&lt;BR /&gt;I was wrong.&lt;BR /&gt;&lt;BR /&gt;Thanx to everyone for their contributions&lt;BR /&gt;&lt;BR /&gt;I close the thread</description>
      <pubDate>Fri, 30 Sep 2005 04:38:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929936#M85280</guid>
      <dc:creator>Laurent Laperrousaz</dc:creator>
      <dc:date>2005-09-30T04:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: NFS write very slow NFS read fast</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929937#M85281</link>
      <description>By rechecking the frame errors with "ifconfig" I finally discovered that the origin of my problem was related to IP protocol negociation.&lt;BR /&gt;&lt;BR /&gt;Lots of useful information were provided here.&lt;BR /&gt;&lt;BR /&gt;Thanx again&lt;BR /&gt;&lt;BR /&gt;Laurent</description>
      <pubDate>Fri, 30 Sep 2005 04:40:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-write-very-slow-nfs-read-fast/m-p/4929937#M85281</guid>
      <dc:creator>Laurent Laperrousaz</dc:creator>
      <dc:date>2005-09-30T04:40:44Z</dc:date>
    </item>
  </channel>
</rss>

