Bug 7975 - mountd: memory/xtab grows without bound
mountd: memory/xtab grows without bound
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: knfsd (Show other bugs)
6.1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Cristian Gafton
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-12-23 13:39 EST by Robert Millner
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-02-04 21:49:15 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Robert Millner 1999-12-23 13:39:21 EST
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-04 21:48:59 EST
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

Note You need to log in before you can comment on or make changes to this bug.