Re: NFS and kernel cache



On Wed, 2006-12-20 at 16:21 -0600, Chris Adams wrote:
I'm copying a big chunk of data to a single file on an NFS server (in
this case, using ntfsclone to back up a NTFS partition). Both the
client and the server are on gigabit ethernet, and both are running FC6.

I see the disk LED come on solid for several seconds, then start
flickering, then go out for a second or two. If I watch the network
switch, it does the opposite: no traffic, then a burst of traffic.
Because of this, my total throughput is only about 200Mb/s.

My guess would be that the NFS client is letting a bunch of data queue
up, and that it doesn't start sending it until the disk has almost
filled the kernel buffers, so then the reads from the local disk stop
until the NFS client has written enough data to the server.

I also tried doing (the tr is in there to prevent a sparse file):

$ dd if=/dev/zero bs=1024k count=5000 | tr '\0' '\1' > /mnt/test/testfile

I can see the network start and stop on this. I do get about 320Mb/s,
but that's still a long way from what it should be.

Is there anything I can adjust to smooth out the network flow (and keep
this running to fill the network as much as possible)?
--
Chris Adams <cmadams@xxxxxxxxxx>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.

Ethernet only works well when the network is utilized about 50%. The
interface cards use various techniques to avoid overrunning the
networks, and the systems also cannot sustain long runs of data at
extremely high speeds due to processing overhead and other details. You
may see less than you believe due to various bits of overhead. The
headers, packetizing, routing info and so forth also eat into the total
transfer rate, but are not counted if you are only looking at the data
transfer rate. If you have heartbeat on going, that will be 800 to 1K
bits each one or two seconds as well, along with the attendant data
collisions and retransmissions. In addition, if the transmission is not
a block transmission, but packetized, there may be handshaking with each
packet which confirms correct reception and in essence a clear to send
reaction, again adding collisions and processing and routing overhead.

Hope this helps.

As to speed ups: 1. check that your system and routers have heartbeat
shut off (you really don't need it except for certain types of
networking issues and resolution and tracking.
2. Check the transfer method (i.e. block transfer vs packets). Choose
Block transfer if possible in your application.
3. Make sure your cables are correct length and that the connectors
are clean and not corroded or poorly attached.
4. If you router is wireless capable, but you are not using it, turn
off the wireless. If you cannot turn it off, then decrease the power so
no one will be likely to piggyback on it.
5. Check your routing and cabling to make sure it has minimal router
interfaces. i.e. direct connections if possible.
Finally, make sure your system is not running some background task
(such as yum updates) to eat up bandwidth.
YMMV
Regards,
Les H

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • RE: Lost my outlook contact... :(
    ... the network configuration is started from a web page located ... client computer, you will see a welcome page to invite you to start the ... local user profiles to the domain user profile. ... Before joining client computers to the network, ...
    (microsoft.public.windows.server.sbs)
  • Re: SMS 2.0 and SMS 2003 Running at same time in same domain.
    ... the clients are on the network. ... The operating system reported error 53: ... Possible cause: The client is offline. ... Verify that the client is connected to the network and that the SMS ...
    (microsoft.public.sms.setup)
  • RE: Printing from Win9x clients stops
    ... Open Server Management. ... then right-click the name of the computer running Windows Small Business ... >From the client computer: ... The Select Network Component Type ...
    (microsoft.public.windows.server.sbs)
  • RE: Wireless Security Notes and Findings (from this list and other places)
    ... There are two general areas of wireless security: Authentication and ... authentication standard that works with wireless networks. ... client computer runs a client program to connect to the network with a ...
    (Security-Basics)
  • Re: Small business thinking about backing up data, having a server and 2-3 users - is SBS200
    ... is networked to the Master with a crossover network cable. ... Master on the Master PC and Client on the Slave pc. ... Since this machine is a server is should handle the requests ok ... Most real firewall appliances have HTTP and SMTP proxy services that allow ...
    (microsoft.public.windows.server.sbs)