Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-25-2003, 12:03 AM
|
#1
|
Senior Member
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334
Rep:
|
nfs write == super slow; read == super fast - problem?
brand new boxes running RH9 (downloaded a couple weeks ago, so it should be current) with integrated Intel GigE running on the PRO1000 drivers through a netgear 24-port unmanaged GigE switch (GigE on all ports). The boxes have single platter Hitachi 40GB HD's (8MB buffer, 7200 RPM) and 1GB of PC3200 RAM running dual channel. The FSB is running around 811 MHz with a 2.6 GHz Intel P4.
scp'ing a ~400MB file from one box to another takes about 15 seconds.
nfs reading the file takes about the same time
nfs writing the file takes about 12 minutes.
dd if=/dev/zero of=/mnt/home/testfile bs=16k count=256
takes just over 10 seconds (using the time command to judge)
I've tried changing the read & write block size from 8192 all the way to 32768 (I'm using nfs v2 & 3) - no change.
I've double checked the MTU settings (currently at 1500 on the card and via tracepath)
I've tried changing size of the socket input queue to 256K.
*To note: Every machine on my network is looking at 192.168.0.1 as a DNS server. 192.168.0.1 is not serving up DNS at the moment (new office - haven't setup a DNS server yet). Could this be causing problems? All machines in question have entries in eachother's hosts file.
I've disabled iptables. (didn't think that would make a difference)
Why is my nfs write going so slow?
edit:
/etc/exports on the server side is using the options: bg,noac,no_root_squash,no_subtree_checking,sync
I have five identical machines nfs mounted to one another (using different directories)
Last edited by BrianK; 11-25-2003 at 12:10 AM.
|
|
|
11-26-2003, 04:48 AM
|
#2
|
Senior Member
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334
Original Poster
Rep:
|
bump. anyone... anyone.... beuler... beuler?
I really don't know much about nfs - maybe I've overlooked something simple?
|
|
|
11-26-2003, 09:14 AM
|
#3
|
Member
Registered: Sep 2003
Location: GMT -08:00
Distribution: Ubuntu, RHEL/CentOS, Fedora
Posts: 234
Rep:
|
Well you seem to more about the network setup then I do but the one thing I would recommend changing is going from 'sync' to 'async'. From many of the sources I've read, you only need 'sync' if the data is crucial and must be preserved even if the system crashes. Since you're probably using a journaled filesystem (ext3) then data loss even for harddisk failure is fairly low anyhow.
Other then that, no idea. Very strange that you can get scp rw as fast and you get nfs ro.
|
|
|
11-28-2003, 06:30 PM
|
#4
|
LQ Newbie
Registered: May 2003
Location: Germany
Distribution: Gentoo
Posts: 16
Rep:
|
I am faceing a similiar problem.
I am just running a 100MBit network but my reading perfomance is ok but if I want to write something on the NFS server I have around 60kb/s (no joke).
FTP works like a charm with 10MB/s though.
NFS and Samba are mainly using UDP right?
Could this be the problem? Actually UDP should be slighty faster then.
I am kinda desperate and don't know what to try anymore.
I have a realtek 8169 Gigabit card but it's connected to a 100MBit network and so running only as a 100MBit card.
Any hints or suggestions would be very welcome.
|
|
|
08-23-2007, 11:59 PM
|
#5
|
LQ Newbie
Registered: Feb 2002
Posts: 9
Rep:
|
|
|
|
All times are GMT -5. The time now is 12:10 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|