Bug 7975

Summary: mountd: memory/xtab grows without bound
Product: [Retired] Red Hat Linux Reporter: Robert Millner <rmillner>
Component: knfsdAssignee: Cristian Gafton <gafton>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-02-05 02:49:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robert Millner 1999-12-23 18:39:21 UTC
Running something like:

mkdir -p /mnt/nfs
while true
do
    if mount server:/path /mnt/nfs
    then
        find /mnt/nfs &> /dev/null
        umount /mnt/nfs
    else
        break
    fi
done

causes xtab to fill with identical entries.  Rpc.mountd's memory usage
grows without bound.  I suspect that (though I should do some more
debugging to be sure) that mountd is allocating a structure and stamping an
entry into xtab but never de-allocating that structure when unmounted.  I
have no idea if its proper behavior to have xtab behave that way but its
really silly to me.

This happens with knfsd-1.4.7-7 and kernel-2.2.12-20 (SMP) as well as our
in-house 2.2.13 kernel RPM.

Comment 1 Cristian Gafton 2000-02-05 02:48:59 UTC
I suspect that this is a problem in glibc's nss modules. Try disabling the
nisplus service from /etc/nsswitch.conf

The glibc bug is fioxed in the current rawhide