kern/127659: tmpfs memory leak

Dylan Cochran a134qaed at gmail.com
Fri Sep 26 16:40:03 UTC 2008


>Number:         127659
>Category:       kern
>Synopsis:       tmpfs memory leak
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 26 16:40:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Dylan Cochran
>Release:        7.0-RELEASE
>Organization:
N/A
>Environment:
FreeBSD netdrive.lan. 7.0-RELEASE-p4 FreeBSD 7.0-RELEASE-p4 #0: Tue Sep  2 19:32:35 UTC 2008     root at i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
A tmpfs filesystem containing a rrds log (via gmetad) and a newsyslog rotated verbose error log seems to be leaking memory at a constant rate (4K per second) while being unaccounted for in the actual filesystem. 

netdrive# df -h
Filesystem                                  Size    Used   Avail Capacity  Mounted on
tmpfs                                       1.1G    631M    504M    56%    /tmp


netdrive# du -hd 0 /tmp/
2.6M    /tmp/

netdrive# fstat -f /tmp/.
USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W

The memory df claims is being used is allocated, as the total used space matches the used space plus the running process's working set.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list