slow file opens on nfs mount across high-latency network
Subsystems (2)
I have searched through the mail lists and google and have not found material describing the nfs file open threshold effect that I am experiencing.
I have been experimenting with opening files on NFS mounts over varying network latencies. I notice that there seems to be a threshold on the number of concurrent nfs file opens as network latency increases. Up to and including the threshold, nfs file open performance is fine. After the threshold of concurrent opens, performance degrades at a linear rate.
For example, the graph in the attached files shows this threshold effect for various network latencies:
- 0ms network latency - no max limit
- 20ms network latency - 40 maximum concurrent opens
- 40ms network latency - 20 maximum concurrent opens
- 80ms network latency - 15 maximum concurrent opens
- 120ms network latency - 5 maximum concurrent opens
What would cause this "hockey stick" threshold effect shown in the attached file?
Are there any settings that would change this effect?
Here are the stats of my experiment:
- testing using Redhat Enterprise AS servers V3 connected via a 100Mbps switch
- inserting latency with nist net
- experiment process spawns X number of threads set to each open a file on an NFS mount, the time taken for each file open is recorded
- adjusting rsize, wsize does not affect "hockey stick" threshold effect
- adjusting /proc/sys/net/core/rmem* does not affect "hockey stick" threshold effect
- adjusting number of nfsd processes does not affect "hockey stick" threshold effect
Thanks in advance for any tips or directions where I can look for more information on this topic.
Regards,
Anthony Howe
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Quoted 42 lines · Anthony Howe
I have searched through the mail lists and google and have not found material describing the nfs file open threshold effect that I am experiencing.
I have been experimenting with opening files on NFS mounts over varying network latencies. I notice that there seems to be a threshold on the number of concurrent nfs file opens as network latency increases. Up to and including the threshold, nfs file open performance is fine. After the threshold of concurrent opens, performance degrades at a linear rate.
For example, the graph in the attached files shows this threshold effect for various network latencies:
- 0ms network latency - no max limit
- 20ms network latency - 40 maximum concurrent opens
- 40ms network latency - 20 maximum concurrent opens
- 80ms network latency - 15 maximum concurrent opens
- 120ms network latency - 5 maximum concurrent opensWhat would cause this "hockey stick" threshold effect shown in the attached file?
Are there any settings that would change this effect?Here are the stats of my experiment:
- testing using Redhat Enterprise AS servers V3 connected via a 100Mbps switch
- inserting latency with nist net
- experiment process spawns X number of threads set to each open a file on an NFS mount, the time taken for each file open is recorded
- adjusting rsize, wsize does not affect "hockey stick" threshold effect
- adjusting/proc/sys/net/core/rmem*does not affect "hockey stick" threshold effect
- adjusting number of nfsd processes does not affect "hockey stick" threshold effectThanks in advance for any tips or directions where I can look for more information on this topic.
Quoted 8 lines
Regards,
Anthony Howe
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
do you have tcpdumps taken at all these data points? It kind of sounds to me like your getting a geared slowdown from additional congestion caused by rpc retransmits (i.e., on a high latency link, you'll wind up with more rpc retransmits, resulting in more congestion, resulting in more lost packets, resulting in more retransmits, etc.).
Regards
Neil
Signature · 18 lines
/*************************************************** *Neil Horman *Software Engineer *Red Hat, Inc. *[email protected] *gpg keyid: 1024D / 0x92A74FA1 *http://pgp.mit.edu ***************************************************/ ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ NFS maillist - [email protected] https://lists.sourceforge.net/lists/listinfo/nfs
Quoted 56 lines · Neil Horman
Quoted 42 lines · Anthony Howe
I have searched through the mail lists and google and have not found material describing the nfs file open threshold effect that I am experiencing.
I have been experimenting with opening files on NFS mounts over varying network latencies. I notice that there seems to be a threshold on the number of concurrent nfs file opens as network latency increases. Up to and including the threshold, nfs file open performance is fine. After the threshold of concurrent opens, performance degrades at a linear rate.
For example, the graph in the attached files shows this threshold effect for various network latencies:
- 0ms network latency - no max limit
- 20ms network latency - 40 maximum concurrent opens
- 40ms network latency - 20 maximum concurrent opens
- 80ms network latency - 15 maximum concurrent opens
- 120ms network latency - 5 maximum concurrent opensWhat would cause this "hockey stick" threshold effect shown in the attached file?
Are there any settings that would change this effect?Here are the stats of my experiment:
- testing using Redhat Enterprise AS servers V3 connected via a 100Mbps switch
- inserting latency with nist net
- experiment process spawns X number of threads set to each open a file on an NFS mount, the time taken for each file open is recorded
- adjusting rsize, wsize does not affect "hockey stick" threshold effect
- adjusting/proc/sys/net/core/rmem*does not affect "hockey stick" threshold effect
- adjusting number of nfsd processes does not affect "hockey stick" threshold effectThanks in advance for any tips or directions where I can look for more information on this topic.
Quoted 9 lines
Regards,
Anthony Howe
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Quoted 6 lines
do you have tcpdumps taken at all these data points? It kind of sounds to me like your getting a geared slowdown from additional congestion caused by rpc retransmits (i.e., on a high latency link, you'll wind up with more rpc retransmits, resulting in more congestion, resulting in more lost packets, resulting in more retransmits, etc.).
Some questions --
These are mounts done using the NFSv3 protocol? Over TCP or over UDP?
Each thread is opening an independent file? In independent directories or in a common directory?
Thanx...
ps
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Quoted 64 lines
Quoted 56 lines · Neil Horman
Quoted 41 lines · Anthony Howe
I have searched through the mail lists and google and
have not found material describing the nfs file open threshold effect that I am experiencing.I have been experimenting with opening files on NFS mounts over varying network latencies. I notice that there seems to be a threshold on the number of concurrent nfs file opens as network latency
increases. Up to and including the threshold, nfs
file open performance is fine. After the threshold of concurrent opens, performance degrades at a linear rate.For example, the graph in the attached files shows this threshold effect for various network latencies:
- 0ms network latency - no max limit
- 20ms network latency - 40 maximum concurrent opens
- 40ms network latency - 20 maximum concurrent opens
- 80ms network latency - 15 maximum concurrent opens
- 120ms network latency - 5 maximum concurrent opensWhat would cause this "hockey stick" threshold effect shown in the attached file?
Are there any settings that would change this effect?Here are the stats of my experiment:
- testing using Redhat Enterprise AS servers V3 connected via a 100Mbps switch
- inserting latency with nist net
- experiment process spawns X number of threads set to each open a file on an NFS mount, the time taken for each file open is recorded
- adjusting rsize, wsize does not affect "hockey stick" threshold effect
- adjusting/proc/sys/net/core/rmem*does not affect "hockey stick" threshold effect
- adjusting number of nfsd processes does not affect "hockey stick" threshold effectThanks in advance for any tips or directions where I can look for more information on this topic.
Quoted 10 lines
Regards,
Anthony Howe
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.comQuoted 6 lines
do you have tcpdumps taken at all these data points? It kind of sounds to me like your getting a geared slowdown from additional congestion caused by rpc retransmits (i.e., on a high latency link, you'll wind up with more rpc retransmits, resulting in more congestion, resulting in more lost packets, resulting in more retransmits, etc.).
Quoted 5 lines
Some questions --
These are mounts done using the NFSv3 protocol? Over TCP or over UDP?
Each thread is opening an independent file? In independent directories or
in a common directory?
Quoted 4 lines
Thanx...
psWe are using the NFSv3 protocol over TCP. Here the options for both the client and the server:
- client options "rw, noexec, nosuid, nodev, noatime, hard, intr,tcp"
- server options "rw, aysnc, wdelay, all_squash, root_squash,anonuid=500, anongid=500"
Each thread is opening an independent file from the same common nfs directory. So 100 threads will mean 100 separate files will be created.
(I am going to do some tcpdumps to see if there are a buildup of rpc retransmits)
Thanks,
Anthony
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
ty den 28.06.2005 Klokka 11:30 (-0400) skreiv Anthony Howe:
Quoted 2 lines
What would cause this "hockey stick" threshold effect shown in the attached file?
Have you cross-checked your graph with the figures from "nfsstat"?
Cheers,
Trond
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Quoted 75 lines
Neil Horman wrote:
=20Quoted 5 lines · Anthony Howe
=20
Quoted 2 lines
I have searched through the mail lists and google and have not found material describing the nfs file open=20
threshold effect=20
Quoted 51 lines
Quoted 41 lines
that I am experiencing.
I have been experimenting with opening files on NFS mounts over varying network latencies. I notice that there seems to be a threshold on the number of
concurrent nfs file opens as network latency
increases. Up to and including the threshold, nfs
file open performance is fine. After the threshold of concurrent=20 opens, performance degrades at a linear rate.For example, the graph in the attached files shows this threshold effect for various network latencies:
- 0ms network latency - no max limit
- 20ms network latency - 40 maximum concurrent opens
- 40ms network latency - 20 maximum concurrent opens
- 80ms network latency - 15 maximum concurrent opens
- 120ms network latency - 5 maximum concurrent opensWhat would cause this "hockey stick" threshold effect shown in the attached file?
Are there any settings that would change this effect?Here are the stats of my experiment:
- testing using Redhat Enterprise AS servers V3 connected via a 100Mbps switch
- inserting latency with nist net
- experiment process spawns X number of threads set to each open a file on an NFS mount, the time taken for each file open is recorded
- adjusting rsize, wsize does not affect "hockey stick" threshold effect
- adjusting/proc/sys/net/core/rmem*does not affect "hockey stick" threshold effect
- adjusting number of nfsd processes does not affect "hockey stick" threshold effectThanks in advance for any tips or directions where I can look for more information on this topic.
Regards,
Quoted 8 lines
Anthony Howe
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com=20
=20Quoted 1 line
do you have tcpdumps taken at all these data points? It=20
kind of sounds=20
Quoted 2 lines
to me like your getting a geared slowdown from additional congestion=20 caused by rpc retransmits (i.e., on a high latency link,=20
you'll wind up=20
Quoted 1 line
with more rpc retransmits, resulting in more congestion,=20
resulting in=20
Quoted 2 lines
more lost packets, resulting in more retransmits, etc.).
Some questions --
=20
These are mounts done using the NFSv3 protocol? Over TCP or over UDP? =20
Each thread is opening an independent file? In independent=20 directories or in a common directory?
=20
Quoted 4 lines
Thanx...=20
ps
=20
I have found a solution (work around) to the latency problem that I described in the above posting. The solution seems to be to add more = mounts
to the same nfs share and spread the threads evenly among the mounts. =20
This solution is highlighted by the graph:
http://ahowe_ca.tripod.com/nfsperformance2.pdf. The graph shows the performance of 40 threads each performing file opens across an nfs = share.
Each thread repeats 10 times opening a file for write and closing it 10 times. The x-axis is various roundtrip network latencies. The y-axis = is
the mean time to open a file across the nfs mount. Each line represents = a
different number of mount points. The top line is one mount point, and = 40
threads concurrently calling file opens on this mount. The bottom line represents 40 mounts to the same share, each thread with its own line. = From
this graph I can come to the following conclusions:
1. Evenly distributing file access threads across many NFS mounts to the same share reduces the effects of latency.
2. There seems to be resource limit per mount point. The higher the = network
latency the faster this limit is reached. This explains the hockey = stick
effect shown in graph: http://ahowe_ca.tripod.com/nfsperformance.pdf.
3. This resource limit is not related to the hard limit of 256 read or = write
operations per mount point since we are only using 40 threads.
4. Removing all network latency eliminates this resource problem and 1 = mount
or 40 mounts display the same performance.
Does anyone know what would be causing this resource limit? And is there = any
way to improve it so that I don't have to add more mounts to reduce the effects of latency?
Anthony
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs