From hg@cally.n2wx.ampr.org  Sat Jan  2 07:55:54 1999
Received: from bbs.mpcs.com (bbs.mpcs.com [209.101.88.2])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA27931
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 2 Jan 1999 07:55:52 -0800 (PST)
          (envelope-from hg@cally.n2wx.ampr.org)
Received: from pickle.n2wx.ampr.org (0@cc1017255-a.srst1.fl.home.com [24.3.122.197])
	by bbs.mpcs.com (8.8.8/8.8.8/MPCS spamzap) with ESMTP id KAA16112
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 2 Jan 1999 10:55:13 -0500
Received: (from root@localhost) by pickle.n2wx.ampr.org (8.8.8/8.8.2/n2wx) id KAA21595 for FreeBSD-gnats-submit@freebsd.org; Sat, 2 Jan 1999 10:55:11 -0500 (EST)
Received: from cally.south.mpcs.com (cally.n2wx.ampr.org [172.16.0.6])
	by pickle.n2wx.ampr.org (8.8.8/8.8.8/n2wx) with ESMTP id KAA21584
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 2 Jan 1999 10:54:26 -0500 (EST)
Received: (from hg@localhost) by cally.south.mpcs.com (8.9.1/8.8.Beta.5a) id KAA10476; Sat, 2 Jan 1999 10:54:25 -0500 (EST)
Message-Id: <199901021554.KAA10476@cally.south.mpcs.com>
Date: Sat, 2 Jan 1999 10:54:25 -0500 (EST)
From: hgoldste@bbs.mpcs.com
Reply-To: hgoldste@bbs.mpcs.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: <Synopsis of the problem (one line)> bogus high rpc.statd VSZ in ps
X-Send-Pr-Version: 3.2

>Number:         9278
>Category:       conf
>Synopsis:       bogus high rpc.statd VSZ in ps
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan  2 08:00:00 PST 1999
>Closed-Date:    Sun Jan 3 14:30:00 PST 1999
>Last-Modified:  Sun Jan  3 14:32:59 PST 1999
>Originator:     Howard Goldstein
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:

cally:~$ uname -a
FreeBSD cally.south.mpcs.com 3.0-CURRENT FreeBSD 3.0-CURRENT #2: Wed Dec  9 22:24:29 EST 1998     hg@cally.south.mpcs.com:/usr/src/sys/compile/CALLY  i386
cally:~$ ldd /usr/sbin/rpc.statd 
/usr/sbin/rpc.statd:
        librpcsvc.so.2 => /usr/lib/librpcsvc.so.2 (0x28053000)
        libc.so.3 => /usr/lib/libc.so.3 (0x2805a000)

Builtworld from cvsup'd  sources from about 00z 9 dec 98.

from rc.conf:
nfs_server_enable="YES"         # This host is an NFS server (or NO).
nfs_server_flags="-u -t -n 4"   # Flags to nfsd (if enabled).
mountd_flags="-r -n"            # Flags to mountd (if NFS server enabled).
nfs_reserved_port_only="NO"     # Provide NFS only on secure port (or NO).
rpc_lockd_enable="NO"           # Run NFS rpc.lockd (*broken!*) if nfs_server.
rpc_statd_enable="YES"          # Run NFS rpc.statd if nfs_server (or NO

	

>Description:

ps reports extremely high (> 260MB) and bogus VSZ usage for the 
rpc.statd daemon:

cally:~$ ps lwxa | grep statd
    0   127     1   0   2  0 262968  292 select Is    ??    0:00.00 rpc.statd
cally:~$ 

	
Brian Tao  <taob@nbc.netcom.ca> noted this in a post to freebsd-current
back in Feb of 98

>How-To-Repeat:

Set in rc.conf:
rpc_statd_enable="YES"

nfs_server  probably needs to be on
	

>Fix:
	
	

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: steve 
Responsible-Changed-When: Sat Jan 2 12:24:34 PST 1999 
Responsible-Changed-Why:  
Misfiled PR. 
State-Changed-From-To: open->closed 
State-Changed-By: dt 
State-Changed-When: Sun Jan 3 14:30:00 PST 1999 
State-Changed-Why:  
This value is not bogus. It is correct virtual size of rpc.statd. rpc.statd mmap 
a large file. 
>Unformatted:
