Re: rpc.mountd high cpu usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On , J. Bruce Fields wrote:
That sounds like somewhat of an extreme setup, and I suspect the current
behavior is by design, but I agree that we should fix it.  I'm not
volunteering for now....

Ow dear, I never thought that this would classified as an extreme setup :-) .

I think what happens is that exportfs flushes the kernel's export cache
at which point every use of an uncached export triggers an upcall to
mountd.  That upcall is probably visible in the strace as a read of a
file descriptor associated with /proc/net/sunrpc/nfsd.fh/content.

That upcall is handled by nfs-utils/utils/mountd/cache.c:nfsd_fh(),
which is given a filehandle fragment identifying the filesystem in
question and has to match it to an export.

That's done by match_fsid().  Which does do a stat of the export path,
but not of all the devices....  That's probably happening in one of the
libblkid calls in uuid_by_path()?  I wonder if there's something wrong
with libblkid configuration or with the way we're using it?

Is there any way I can help getting this fixed? My coding skills are limited but I am very willing to help in any way I can.

Greets,

Sander
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux