All of lore.kernel.org
 help / color / mirror / Atom feed
* FYI: readdirplus responsiveness problem after 2.4 -> 2.6 client upgrade
@ 2005-07-11 16:51 Frank van Maarseveen
  2005-07-11 17:17 ` Trond Myklebust
  0 siblings, 1 reply; 3+ messages in thread
From: Frank van Maarseveen @ 2005-07-11 16:51 UTC (permalink / raw)
  To: Linux NFS mailing list

Server is tru64 (OSF1 server V5.1 1885 alpha) using advfs.

client:
After replacing a 2.4.29 kernel by a 2.6 (.11) we started to notice
unresponsiveness in bash command- and name completion once in a while.
This still persists in 2.6.12.2.

A few quick investigations pointed to the readdir -> readdirplus
change. The following tcpdump snippets illustrates this (first column
is differential time in usec with previous packet):

example 1:
------
000093 ip 230: client.3377456114 > server.nfs: 188 readdirplus fh 4079,976512/13921 512 bytes @ 0x000000000 (DF)
645029 ip 1514: server.nfs > client.3377456114: reply ok 1472 readdirplus (frag 19592:1480@0+)
000058 ip 778: server > client: udp (frag 19592:744@1480)
------

example 2:
------
000094 ip 230: client.743433202 > server.nfs: 188 readdirplus fh 4079,976512/404 512 bytes @ 0x000000000 (DF)
102655 ip 230: client.743433202 > server.nfs: 188 readdirplus fh 4079,976512/404 512 bytes @ 0x000000000 (DF)
205974 ip 230: client.743433202 > server.nfs: 188 readdirplus fh 4079,976512/404 512 bytes @ 0x000000000 (DF)
248905 ip 1514: server.nfs > client.743433202: reply ok 1472 readdirplus (frag 58739:1480@0+)
000085 ip 1106: server > client: udp (frag 58739:1072@1480)

000128 ip 1514: server.nfs > client.743433202: reply ok 1472 readdirplus (frag 58740:1480@0+)
000057 ip 230: client.760210418 > server.nfs: 188 readdirplus fh 4079,976512/404 512 bytes @ 0x0000001e4 (DF)
000028 ip 1106: server > client: udp (frag 58740:1072@1480)

000125 ip 1514: server.nfs > client.743433202: reply ok 1472 readdirplus (frag 58741:1480@0+)
000088 ip 1106: server > client: udp (frag 58741:1072@1480)

022016 ip 506: server.nfs > client.760210418: reply ok 464 readdirplus
------

AFAICS this only shows a (sometimes) slow responding server. In the second
example the client appears to be retransmitting much sooner than in the
first example. Don't know if this can be true or that the differential
timestamps are fooling me.

In practice there are a significant number of cases without retransmission
when the server appears unresponsive to the user with readdirplus. Since
it is induced by bash name completion it is very visible to the user:
occasionally command-completion takes 3..10 seconds now to give an idea.
Name completion for arguments is hurt too sometimes.

A quick peek into the source suggested:

-	reduce NFS_LIMIT_READDIRPLUS?
-	"recognize" name-completion kind of use and revert
	NFS_INO_ADVISE_RDPLUS?

Other options (except replacing the server)?

-- 
Frank


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-07-12 15:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-11 16:51 FYI: readdirplus responsiveness problem after 2.4 -> 2.6 client upgrade Frank van Maarseveen
2005-07-11 17:17 ` Trond Myklebust
2005-07-12 15:56   ` Frank van Maarseveen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.