Linux NFS development
 help / color / mirror / Atom feed
* extremely long time for exportfs to display
@ 2008-05-23  0:41 Murata, Dennis
       [not found] ` <620E93B2E5CC3B46BD811165E3335B87011F8E9C-9/h0XwadXgnyjpQT3Si/rsM9+qvyE0V4QQ4Iyu8u01E@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Murata, Dennis @ 2008-05-23  0:41 UTC (permalink / raw)
  To: linux-nfs

Very recently we have seen a very serious slowdown with the exportfs
command on a file server.  Usually the exportfs -r command or even just
the exportfs command to display the exported directories is very quick.
Now it can take 20 minutes to display the exported directories.
An strace shows a lookup at /etc/hosts, from yp, and from dns.  The
hosts lookup in /etc/nsswitch is files nis dns, so this is as expected,
the time it is taking is not.
The yp slave that the server is bound to seems to be having some
problems, could this be the issue?

Wayne

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

* Re: extremely long time for exportfs to display
       [not found] ` <620E93B2E5CC3B46BD811165E3335B87011F8E9C-9/h0XwadXgnyjpQT3Si/rsM9+qvyE0V4QQ4Iyu8u01E@public.gmane.org>
@ 2008-05-23 15:20   ` J. Bruce Fields
  2008-05-23 20:38     ` Murata, Dennis
  0 siblings, 1 reply; 3+ messages in thread
From: J. Bruce Fields @ 2008-05-23 15:20 UTC (permalink / raw)
  To: Murata, Dennis; +Cc: linux-nfs

On Thu, May 22, 2008 at 05:41:05PM -0700, Murata, Dennis wrote:
> Very recently we have seen a very serious slowdown with the exportfs
> command on a file server.  Usually the exportfs -r command or even just
> the exportfs command to display the exported directories is very quick.
> Now it can take 20 minutes to display the exported directories.
> An strace shows a lookup at /etc/hosts, from yp, and from dns.  The
> hosts lookup in /etc/nsswitch is files nis dns, so this is as expected,
> the time it is taking is not.

Have you run strace with something like -t to work out exactly where the
time is going?

--b.

> The yp slave that the server is bound to seems to be having some
> problems, could this be the issue?
> 
> Wayne
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* RE: extremely long time for exportfs to display
  2008-05-23 15:20   ` J. Bruce Fields
@ 2008-05-23 20:38     ` Murata, Dennis
  0 siblings, 0 replies; 3+ messages in thread
From: Murata, Dennis @ 2008-05-23 20:38 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: linux-nfs

A little history, I have tested the exports file on two servers, one in
production one a test server.  The two servers are modified RHEL4.2.
	production - kernel-smp-2.6.9-67.EL.x86_64
                  nfs-utils-1.0.6-84.EL4.x86_64
                  nfs-utils-lib-1.0.6-8.z1.x86_64
                  util-linux-2.12a-16.EL4.29.x86_64

     test       - kernel-smp-2.6.9-67.0.4.EL.x86_64
                  nfs-utils-1.0.6-84.EL4.x86_64
                  nfs-utils-lib-1.0.6-8.z1.x86_64
                  util-linux-2.12a-16.EL4.29.x86_64

The test server has a slightly newer kernel.  The exports file is large,
186 lines, some lines with 20+ workstation entries.
using strace -t, the two servers look at /etc/resolv.conf, do an lstat
on the exported directories, I am double checking not to see if it is
all directories or not.
On the production server, after the lstat on the directories, there is a
call to open /etc/nsswitch.conf, /etc/host.conf, /etc/hosts, and
/var/yp/binding/domainname.  All of the extra time in within this piece.
On the test server, there never is a call to open nsswitch.conf,
/etc/host.conf, /etc/hosts, or/var/yp/binding/domainname.
I have the strace of the execution of exportfs if needed.

Wayne
> -----Original Message-----
> From: J. Bruce Fields [mailto:bfields@fieldses.org] 
> Sent: Friday, May 23, 2008 10:21 AM
> To: Murata, Dennis
> Cc: linux-nfs@vger.kernel.org
> Subject: Re: extremely long time for exportfs to display
> 
> On Thu, May 22, 2008 at 05:41:05PM -0700, Murata, Dennis wrote:
> > Very recently we have seen a very serious slowdown with the 
> exportfs 
> > command on a file server.  Usually the exportfs -r command or even 
> > just the exportfs command to display the exported 
> directories is very quick.
> > Now it can take 20 minutes to display the exported directories.
> > An strace shows a lookup at /etc/hosts, from yp, and from dns.  The 
> > hosts lookup in /etc/nsswitch is files nis dns, so this is as 
> > expected, the time it is taking is not.
> 
> Have you run strace with something like -t to work out 
> exactly where the time is going?
> 
> --b.
> 
> > The yp slave that the server is bound to seems to be having some 
> > problems, could this be the issue?
> > 
> > Wayne
> > --
> > To unsubscribe from this list: send the line "unsubscribe 
> linux-nfs" 
> > in the body of a message to majordomo@vger.kernel.org More 
> majordomo 
> > info at  http://vger.kernel.org/majordomo-info.html
> 

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

end of thread, other threads:[~2008-05-23 20:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-23  0:41 extremely long time for exportfs to display Murata, Dennis
     [not found] ` <620E93B2E5CC3B46BD811165E3335B87011F8E9C-9/h0XwadXgnyjpQT3Si/rsM9+qvyE0V4QQ4Iyu8u01E@public.gmane.org>
2008-05-23 15:20   ` J. Bruce Fields
2008-05-23 20:38     ` Murata, Dennis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox