Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Sep 2008 16:30:49 GMT
From:      Dylan Cochran <a134qaed@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/127659: tmpfs memory leak
Message-ID:  <200809261630.m8QGUnFl034878@www.freebsd.org>
Resent-Message-ID: <200809261640.m8QGe2aX049249@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809261630.m8QGUnFl034878>